aboutsummaryrefslogtreecommitdiff
path: root/vendor/certificate_authority
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-10-28 23:42:29 -0700
committerelijah <elijah@riseup.net>2014-10-28 23:42:29 -0700
commitead1110d69470c191447e4420b3751a035357b06 (patch)
tree1cbfbfdecd3c75ae807acad75ada711d51c97a21 /vendor/certificate_authority
parentde1cd23905852cbdfdc39249ffa871c6ab0f22f0 (diff)
downloadleap_cli-ead1110d69470c191447e4420b3751a035357b06.tar.gz
leap_cli-ead1110d69470c191447e4420b3751a035357b06.tar.bz2
make certificate authority only load the parts of activemodel it needs, so that all of activesupport doesn't get loaded.
Diffstat (limited to 'vendor/certificate_authority')
-rw-r--r--vendor/certificate_authority/lib/certificate_authority.rb6
-rw-r--r--vendor/certificate_authority/lib/certificate_authority/serial_number.rb2
2 files changed, 7 insertions, 1 deletions
diff --git a/vendor/certificate_authority/lib/certificate_authority.rb b/vendor/certificate_authority/lib/certificate_authority.rb
index a697c1b..33def35 100644
--- a/vendor/certificate_authority/lib/certificate_authority.rb
+++ b/vendor/certificate_authority/lib/certificate_authority.rb
@@ -2,7 +2,11 @@ $:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) ||
#Exterior requirements
require 'openssl'
-require 'active_model'
+require 'active_model/callbacks'
+require 'active_model/naming'
+require 'active_model/translation'
+require 'active_model/validations'
+require 'active_model/serialization'
#Internal modules
require 'certificate_authority/signing_entity'
diff --git a/vendor/certificate_authority/lib/certificate_authority/serial_number.rb b/vendor/certificate_authority/lib/certificate_authority/serial_number.rb
index 143c144..b9a43cc 100644
--- a/vendor/certificate_authority/lib/certificate_authority/serial_number.rb
+++ b/vendor/certificate_authority/lib/certificate_authority/serial_number.rb
@@ -1,3 +1,5 @@
+require 'securerandom'
+
module CertificateAuthority
class SerialNumber
include ActiveModel::Validations