active_utils 2.2.3 → 3.3.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +5 -5
  2. data/.github/probots.yml +2 -0
  3. data/.travis.yml +39 -3
  4. data/CHANGELOG.md +92 -0
  5. data/CONTRIBUTING.md +32 -0
  6. data/Gemfile +1 -1
  7. data/README.md +30 -16
  8. data/active_utils.gemspec +4 -1
  9. data/gemfiles/Gemfile.activesupport-master +4 -0
  10. data/gemfiles/Gemfile.activesupport42 +4 -0
  11. data/gemfiles/Gemfile.activesupport50 +4 -0
  12. data/gemfiles/Gemfile.activesupport52 +4 -0
  13. data/lib/active_utils/{common/connection.rb → connection.rb} +9 -3
  14. data/lib/active_utils/{common/country.rb → country.rb} +18 -3
  15. data/lib/active_utils/currency_code.rb +56 -0
  16. data/lib/active_utils/{common/error.rb → error.rb} +8 -6
  17. data/lib/active_utils/{common/network_connection_retries.rb → network_connection_retries.rb} +27 -11
  18. data/lib/active_utils/{common/post_data.rb → post_data.rb} +1 -1
  19. data/lib/active_utils/{common/posts_data.rb → posts_data.rb} +19 -10
  20. data/lib/active_utils/{common/requires_parameters.rb → requires_parameters.rb} +1 -1
  21. data/lib/active_utils/{common/validateable.rb → validateable.rb} +1 -1
  22. data/lib/active_utils/version.rb +1 -1
  23. data/lib/active_utils.rb +17 -16
  24. data/lib/certs/cacert.pem +1701 -2393
  25. data/test/test_helper.rb +7 -4
  26. data/test/unit/connection_test.rb +43 -15
  27. data/test/unit/country_test.rb +19 -0
  28. data/test/unit/network_connection_retries_test.rb +88 -11
  29. data/test/unit/post_data_test.rb +6 -6
  30. data/test/unit/posts_data_test.rb +19 -4
  31. data/test/unit/validateable_test.rb +1 -1
  32. metadata +38 -41
  33. checksums.yaml.gz.sig +0 -0
  34. data/lib/active_utils/common/currency_code.rb +0 -50
  35. data/lib/active_utils/common/utils.rb +0 -20
  36. data/test/unit/utils_test.rb +0 -7
  37. data.tar.gz.sig +0 -1
  38. metadata.gz.sig +0 -1
@@ -1,4 +1,4 @@
1
- module ActiveMerchant #:nodoc:
1
+ module ActiveUtils #:nodoc:
2
2
  module RequiresParameters #:nodoc:
3
3
  def requires!(hash, *params)
4
4
  params.each do |param|
@@ -1,4 +1,4 @@
1
- module ActiveMerchant #:nodoc:
1
+ module ActiveUtils #:nodoc:
2
2
  module Validateable #:nodoc:
3
3
  def valid?
4
4
  errors.clear
@@ -1,3 +1,3 @@
1
1
  module ActiveUtils
2
- VERSION = "2.2.3"
2
+ VERSION = "3.3.19"
3
3
  end
data/lib/active_utils.rb CHANGED
@@ -1,21 +1,22 @@
1
+ require 'active_support'
1
2
  require 'active_support/core_ext/hash/indifferent_access'
2
3
  require 'active_support/core_ext/hash/conversions'
3
4
  require 'active_support/core_ext/class/attribute'
4
5
 
5
- module ActiveMerchant
6
- autoload :NetworkConnectionRetries, 'active_utils/common/network_connection_retries'
7
- autoload :Connection, 'active_utils/common/connection'
8
- autoload :Country, 'active_utils/common/country'
9
- autoload :CountryCode, 'active_utils/common/country'
10
- autoload :ActiveMerchantError, 'active_utils/common/error'
11
- autoload :ConnectionError, 'active_utils/common/error'
12
- autoload :RetriableConnectionError, 'active_utils/common/error'
13
- autoload :ResponseError, 'active_utils/common/error'
14
- autoload :ClientCertificateError, 'active_utils/common/error'
15
- autoload :PostData, 'active_utils/common/post_data'
16
- autoload :PostsData, 'active_utils/common/posts_data'
17
- autoload :RequiresParameters, 'active_utils/common/requires_parameters'
18
- autoload :Utils, 'active_utils/common/utils'
19
- autoload :Validateable, 'active_utils/common/validateable'
20
- autoload :CurrencyCode, 'active_utils/common/currency_code'
6
+ require 'active_utils/error'
7
+ require 'active_utils/version'
8
+
9
+ module ActiveUtils
10
+ autoload :NetworkConnectionRetries, 'active_utils/network_connection_retries'
11
+ autoload :Connection, 'active_utils/connection'
12
+ autoload :Country, 'active_utils/country'
13
+ autoload :CountryCode, 'active_utils/country'
14
+ autoload :InvalidCountryCodeError, 'active_utils/country'
15
+ autoload :CountryCodeFormatError, 'active_utils/country'
16
+ autoload :PostData, 'active_utils/post_data'
17
+ autoload :PostsData, 'active_utils/posts_data'
18
+ autoload :RequiresParameters, 'active_utils/requires_parameters'
19
+ autoload :Validateable, 'active_utils/validateable'
20
+ autoload :CurrencyCode, 'active_utils/currency_code'
21
+ autoload :InvalidCurrencyCodeError, 'active_utils/currency_code'
21
22
  end