money_s3 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/money_s3/hash_with_attributes.rb +6 -2
- data/lib/money_s3/string_with_attributes.rb +2 -2
- data/money_s3.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0689401f08d11d07b343d9a9e9fa6a2a4c146613'
|
4
|
+
data.tar.gz: 1806460c47be0c044fe16c9184cd2cd6fe980999
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 634d793d46aa92f85713744b35c8bc337e4890ccae5b60c6453e44e74f4eeb9c96151a1a6a1b3429f61d8cc824fbd6a0a8c8e9eac0e150763ec37be0bf007167
|
7
|
+
data.tar.gz: e11e3c31dcb171e8689005cbcad36214c99f34a74cb7c92c16f84d9b68ff38ca6277e2c70da664d94430e3decd99e6823bc1703cb413e83c6569a77ec4b0fcb5
|
@@ -18,8 +18,8 @@ module MoneyS3
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def ==(other)
|
21
|
-
if other.respond_to? :attributes
|
22
|
-
value == other && other.attributes == attributes
|
21
|
+
if other.respond_to?(:value) && other.respond_to?(:attributes)
|
22
|
+
value == other.value && other.attributes == attributes
|
23
23
|
else
|
24
24
|
value == other
|
25
25
|
end
|
@@ -36,5 +36,9 @@ module MoneyS3
|
|
36
36
|
def []=(key, key_value)
|
37
37
|
value[key] = key_value
|
38
38
|
end
|
39
|
+
|
40
|
+
def dig(*attrs)
|
41
|
+
value.dig(*attrs)
|
42
|
+
end
|
39
43
|
end
|
40
44
|
end
|
@@ -18,8 +18,8 @@ module MoneyS3
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def ==(other)
|
21
|
-
if other.respond_to? :attributes
|
22
|
-
value == other && other.attributes == attributes
|
21
|
+
if other.respond_to?(:value) && other.respond_to?(:attributes)
|
22
|
+
value == other.value && other.attributes == attributes
|
23
23
|
else
|
24
24
|
value == other
|
25
25
|
end
|
data/money_s3.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: money_s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Premysl Donat
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ox
|