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.
- checksums.yaml +5 -5
- data/.github/probots.yml +2 -0
- data/.travis.yml +39 -3
- data/CHANGELOG.md +92 -0
- data/CONTRIBUTING.md +32 -0
- data/Gemfile +1 -1
- data/README.md +30 -16
- data/active_utils.gemspec +4 -1
- data/gemfiles/Gemfile.activesupport-master +4 -0
- data/gemfiles/Gemfile.activesupport42 +4 -0
- data/gemfiles/Gemfile.activesupport50 +4 -0
- data/gemfiles/Gemfile.activesupport52 +4 -0
- data/lib/active_utils/{common/connection.rb → connection.rb} +9 -3
- data/lib/active_utils/{common/country.rb → country.rb} +18 -3
- data/lib/active_utils/currency_code.rb +56 -0
- data/lib/active_utils/{common/error.rb → error.rb} +8 -6
- data/lib/active_utils/{common/network_connection_retries.rb → network_connection_retries.rb} +27 -11
- data/lib/active_utils/{common/post_data.rb → post_data.rb} +1 -1
- data/lib/active_utils/{common/posts_data.rb → posts_data.rb} +19 -10
- data/lib/active_utils/{common/requires_parameters.rb → requires_parameters.rb} +1 -1
- data/lib/active_utils/{common/validateable.rb → validateable.rb} +1 -1
- data/lib/active_utils/version.rb +1 -1
- data/lib/active_utils.rb +17 -16
- data/lib/certs/cacert.pem +1701 -2393
- data/test/test_helper.rb +7 -4
- data/test/unit/connection_test.rb +43 -15
- data/test/unit/country_test.rb +19 -0
- data/test/unit/network_connection_retries_test.rb +88 -11
- data/test/unit/post_data_test.rb +6 -6
- data/test/unit/posts_data_test.rb +19 -4
- data/test/unit/validateable_test.rb +1 -1
- metadata +38 -41
- checksums.yaml.gz.sig +0 -0
- data/lib/active_utils/common/currency_code.rb +0 -50
- data/lib/active_utils/common/utils.rb +0 -20
- data/test/unit/utils_test.rb +0 -7
- data.tar.gz.sig +0 -1
- metadata.gz.sig +0 -1
data/lib/active_utils/version.rb
CHANGED
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
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
autoload :
|
10
|
-
autoload :
|
11
|
-
autoload :
|
12
|
-
autoload :
|
13
|
-
autoload :
|
14
|
-
autoload :
|
15
|
-
autoload :PostData, 'active_utils/
|
16
|
-
autoload :PostsData, 'active_utils/
|
17
|
-
autoload :RequiresParameters, 'active_utils/
|
18
|
-
autoload :
|
19
|
-
autoload :
|
20
|
-
autoload :
|
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
|