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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/active_utils.rb +1 -1
- data/lib/active_utils/version.rb +1 -1
- metadata +1 -14
- metadata.gz.sig +0 -0
- data/lib/active_utils/common/connection.rb +0 -4
- data/lib/active_utils/common/country.rb +0 -4
- data/lib/active_utils/common/currency_code.rb +0 -4
- data/lib/active_utils/common/error.rb +0 -4
- data/lib/active_utils/common/network_connection_retries.rb +0 -4
- data/lib/active_utils/common/post_data.rb +0 -4
- data/lib/active_utils/common/posts_data.rb +0 -4
- data/lib/active_utils/common/requires_parameters.rb +0 -4
- data/lib/active_utils/common/utils.rb +0 -4
- data/lib/active_utils/common/validateable.rb +0 -4
- data/lib/active_utils/common/version.rb +0 -4
- data/lib/active_utils/utils.rb +0 -20
- data/test/unit/utils_test.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4c3b947ecf0454c6071d2d8a20b7782f0de5d7f
|
4
|
+
data.tar.gz: 4ac3a861bca6ad6899612ed6dd338afb366bc047
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/lib/active_utils/version.rb
CHANGED
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.
|
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
|
data/lib/active_utils/utils.rb
DELETED
@@ -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
|