money_s3 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca2b59d440f8a43c7432c0001b67b5d5d844997b
4
- data.tar.gz: 2009e7a6620744674e145c219179f76a8ac3e32d
3
+ metadata.gz: '0689401f08d11d07b343d9a9e9fa6a2a4c146613'
4
+ data.tar.gz: 1806460c47be0c044fe16c9184cd2cd6fe980999
5
5
  SHA512:
6
- metadata.gz: 45beebb8cc5b5a3cdcf002140b90f0e6206d3f8341f6973949737d5c6f357f195615ca0aab0390b5ef9d4ceb75389406cc358d298d007d0afce98ddab5057855
7
- data.tar.gz: 1709cd55aa484803f57ff1bfb50ba87339aa35899fbb24f3b2f10af540ded49d19de2df368e1dbf61cdb3b2dff6d0dae7ca1284b99bb07e977fe70dfed18e5b4
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
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "money_s3"
6
- spec.version = '0.7.0'
6
+ spec.version = '0.8.0'
7
7
  spec.authors = ["Premysl Donat"]
8
8
  spec.email = ["pdonat@seznam.cz"]
9
9
 
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.7.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-26 00:00:00.000000000 Z
11
+ date: 2018-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ox