diff --git a/lib/as2.rb b/lib/as2.rb index 8d9c967..f7d55fb 100644 --- a/lib/as2.rb +++ b/lib/as2.rb @@ -1,5 +1,3 @@ -require 'openssl' -require 'mail' require 'securerandom' require 'as2/config' require 'as2/server' diff --git a/lib/as2/client.rb b/lib/as2/client.rb index 299c132..74d382b 100644 --- a/lib/as2/client.rb +++ b/lib/as2/client.rb @@ -1,4 +1,6 @@ +require 'mail' require 'net/http' +require 'openssl' module As2 class Client diff --git a/lib/as2/config.rb b/lib/as2/config.rb index d82733e..bf3e41d 100644 --- a/lib/as2/config.rb +++ b/lib/as2/config.rb @@ -1,4 +1,6 @@ +require 'openssl' require 'uri' + module As2 module Config def self.build_certificate(input) diff --git a/lib/as2/server.rb b/lib/as2/server.rb index 750fc6f..2320471 100644 --- a/lib/as2/server.rb +++ b/lib/as2/server.rb @@ -1,6 +1,8 @@ -require 'rack' require 'logger' +require 'openssl' +require 'rack' require 'stringio' + require 'as2/mime_generator' require 'as2/message'