tainbox 1.0.0 → 1.0.1

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: b459f82b88de885cb962e19571471ccb4a0d8af2
4
- data.tar.gz: 1c3a37eb14e09eb5175714bbf4d1997d43b33d4b
3
+ metadata.gz: 363e986bb37cd4e76b357888de64c29575894704
4
+ data.tar.gz: cc053609b310491829cecd2e3582c24c2024e05d
5
5
  SHA512:
6
- metadata.gz: 670ef55e0098aff940d338026dad216770a316fd56da3abec04d20d3f08033dd25d0f16532decd662eda2ae47c53547b8f45db01e8a4b11a79755279038bc51f
7
- data.tar.gz: d6f9860bc73c8c79f9dafb1a06a270aaeaeb67b817efb2f19f0b4ca99d5d3c0c34dfb1e290887cbf54c1cadff078ea924ae415c4134b823bdb5988ea114be221
6
+ metadata.gz: 37611bee35ad713e04a7db1cbed5268db0a89c10e65c3dc5384298331912905035709fbe25f8e113bf82a510e4bac3e1edf0e335ccf6c728b9a75cf0c6485dd9
7
+ data.tar.gz: 42028d9a5a83ca2d220299e832b673d5ea8af6a7c32ebdfe57134d4791cfa5a9db087b45ae3b7e7f76d72cc6faaf946ab2887b61468707fd51b78eb7b3c64b0a
@@ -28,3 +28,8 @@
28
28
  ## 1.0.0
29
29
 
30
30
  * `as_json` support for tainbox objects
31
+
32
+ ## 1.0.1
33
+
34
+ * `as_json` implementation does not use `to_hash` to
35
+ avoid automatic casting from double star parameters
@@ -39,11 +39,11 @@ module Tainbox::InstanceMethods
39
39
  end
40
40
  end
41
41
 
42
- def to_hash
43
- attributes
44
- end
45
-
46
42
  def attribute_provided?(attribute)
47
43
  tainbox_provided_attributes.include?(attribute.to_sym)
48
44
  end
45
+
46
+ def as_json(*args)
47
+ attributes.as_json(*args)
48
+ end
49
49
  end
@@ -1,3 +1,3 @@
1
1
  module Tainbox
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tainbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Gubitskiy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-28 00:00:00.000000000 Z
11
+ date: 2016-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport