active_utils 3.0.0.pre1 → 3.0.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52b08057a0372077beee8d9d8a1b8d2df4a53c8b
4
- data.tar.gz: eddbc9913b5c7521eb1c02cdb344aa2d8277459a
3
+ metadata.gz: c4c3b947ecf0454c6071d2d8a20b7782f0de5d7f
4
+ data.tar.gz: 4ac3a861bca6ad6899612ed6dd338afb366bc047
5
5
  SHA512:
6
- metadata.gz: cab1b3034ee27f787086d691eff7386f19a0301d9eedd507e730654c422ebfb91028721c86a19d51d30c833e26eae40e7f951ca2fcb51d36ef7b3eea82d7dd04
7
- data.tar.gz: 175adeb2a5a6beef0da8e7c444259e7f6632a0da5cf1d9560d781ff12de293ada2ea6403039ce49d9ca57156a412d3067e0b2884008516f6404993c0df61c256
6
+ metadata.gz: 906e8cc8ab975a891574c135c3dd2c0d8b221d143315b51efce2a8809ec7cbe8045d8ad412898ed4fd3e947e440c33ee25a99ece2dcef98a3e9b6ea453a734d6
7
+ data.tar.gz: 2f41fdf4dd698d0a8adc081edc90abe7a9dc240e3c9f6e0a3b2d5411b1a8679fdf908d8770a839ec43cf02d683e481e36ecf995c654c85c654697bed7ffd6c0e
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/active_utils.rb CHANGED
@@ -1,6 +1,6 @@
1
+ require 'active_support'
1
2
  require 'active_support/core_ext/hash/indifferent_access'
2
3
  require 'active_support/core_ext/hash/conversions'
3
- require 'active_support/deprecation'
4
4
  require 'active_support/core_ext/class/attribute'
5
5
 
6
6
  module ActiveUtils
@@ -1,3 +1,3 @@
1
1
  module ActiveUtils
2
- VERSION = "3.0.0.pre1"
2
+ VERSION = "3.0.0.pre2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.pre1
4
+ version: 3.0.0.pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
@@ -121,17 +121,6 @@ files:
121
121
  - Rakefile
122
122
  - active_utils.gemspec
123
123
  - lib/active_utils.rb
124
- - lib/active_utils/common/connection.rb
125
- - lib/active_utils/common/country.rb
126
- - lib/active_utils/common/currency_code.rb
127
- - lib/active_utils/common/error.rb
128
- - lib/active_utils/common/network_connection_retries.rb
129
- - lib/active_utils/common/post_data.rb
130
- - lib/active_utils/common/posts_data.rb
131
- - lib/active_utils/common/requires_parameters.rb
132
- - lib/active_utils/common/utils.rb
133
- - lib/active_utils/common/validateable.rb
134
- - lib/active_utils/common/version.rb
135
124
  - lib/active_utils/connection.rb
136
125
  - lib/active_utils/country.rb
137
126
  - lib/active_utils/currency_code.rb
@@ -140,7 +129,6 @@ files:
140
129
  - lib/active_utils/post_data.rb
141
130
  - lib/active_utils/posts_data.rb
142
131
  - lib/active_utils/requires_parameters.rb
143
- - lib/active_utils/utils.rb
144
132
  - lib/active_utils/validateable.rb
145
133
  - lib/active_utils/version.rb
146
134
  - lib/certs/cacert.pem
@@ -153,7 +141,6 @@ files:
153
141
  - test/unit/network_connection_retries_test.rb
154
142
  - test/unit/post_data_test.rb
155
143
  - test/unit/posts_data_test.rb
156
- - test/unit/utils_test.rb
157
144
  - test/unit/validateable_test.rb
158
145
  homepage: http://github.com/shopify/active_utils
159
146
  licenses:
metadata.gz.sig CHANGED
Binary file
@@ -1,4 +0,0 @@
1
- require "active_utils/active_merchant_shim"
2
-
3
- ActiveUtils::Utils.deprecated(ActiveUtils::MOVED_FILE_MESSAGE)
4
- require "active_utils/connection"
@@ -1,4 +0,0 @@
1
- require "active_utils/active_merchant_shim"
2
-
3
- ActiveUtils::Utils.deprecated(ActiveUtils::MOVED_FILE_MESSAGE)
4
- require "active_utils/country"
@@ -1,4 +0,0 @@
1
- require "active_utils/active_merchant_shim"
2
-
3
- ActiveUtils::Utils.deprecated(ActiveUtils::MOVED_FILE_MESSAGE)
4
- require "active_utils/currency_code"
@@ -1,4 +0,0 @@
1
- require "active_utils/active_merchant_shim"
2
-
3
- ActiveUtils::Utils.deprecated(ActiveUtils::MOVED_FILE_MESSAGE)
4
- require "active_utils/error"
@@ -1,4 +0,0 @@
1
- require "active_utils/active_merchant_shim"
2
-
3
- ActiveUtils::Utils.deprecated(ActiveUtils::MOVED_FILE_MESSAGE)
4
- require "active_utils/network_connection_retries"
@@ -1,4 +0,0 @@
1
- require "active_utils/active_merchant_shim"
2
-
3
- ActiveUtils::Utils.deprecated(ActiveUtils::MOVED_FILE_MESSAGE)
4
- require "active_utils/post_data"
@@ -1,4 +0,0 @@
1
- require "active_utils/active_merchant_shim"
2
-
3
- ActiveUtils::Utils.deprecated(ActiveUtils::MOVED_FILE_MESSAGE)
4
- require "active_utils/posts_data"
@@ -1,4 +0,0 @@
1
- require "active_utils/active_merchant_shim"
2
-
3
- ActiveUtils::Utils.deprecated(ActiveUtils::MOVED_FILE_MESSAGE)
4
- require "active_utils/requires_parameters"
@@ -1,4 +0,0 @@
1
- require "active_utils/active_merchant_shim"
2
-
3
- ActiveUtils::Utils.deprecated(ActiveUtils::MOVED_FILE_MESSAGE)
4
- require "active_utils/utils"
@@ -1,4 +0,0 @@
1
- require "active_utils/active_merchant_shim"
2
-
3
- ActiveUtils::Utils.deprecated(ActiveUtils::MOVED_FILE_MESSAGE)
4
- require "active_utils/validateable"
@@ -1,4 +0,0 @@
1
- require "active_utils/active_merchant_shim"
2
-
3
- ActiveUtils::Utils.deprecated(ActiveUtils::MOVED_FILE_MESSAGE)
4
- require "active_utils/version"
@@ -1,20 +0,0 @@
1
- require 'securerandom'
2
-
3
- module ActiveUtils #:nodoc:
4
- module Utils #:nodoc:
5
- def generate_unique_id
6
- SecureRandom.hex(16)
7
- end
8
- module_function :generate_unique_id
9
-
10
- def deprecated(message)
11
- warning = Kernel.caller[1] + message
12
- if respond_to?(:logger) && logger.present?
13
- logger.warn(warning)
14
- else
15
- warn(warning)
16
- end
17
- end
18
- module_function :deprecated
19
- end
20
- end
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class UtilsTest < Minitest::Test
4
- def test_unique_id_should_be_32_chars_and_alphanumeric
5
- assert_match /^\w{32}$/, ActiveUtils::Utils.generate_unique_id
6
- end
7
- end