jsonapi-resources 0.0.3 → 0.0.4

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: f19bd8952d6f9ad375cdd0771b95ea66b7f58bd4
4
- data.tar.gz: 0f3ee0a42a392f2f3569997473b1f504618a3d06
3
+ metadata.gz: 8d4cbc3730824bb1f4ad419724a0a472fd16d2e0
4
+ data.tar.gz: 7b30da4000a4c8996bd2e2eb2cc8288e9303b728
5
5
  SHA512:
6
- metadata.gz: 91600fddbd75792442e535374e131e878a133f087bc74103c41e6cf439c666657e9b6ed2b3c5abfbaf350b28b678acceb5a39b4b0050a31be553f844d83d951c
7
- data.tar.gz: 4699a968d96300ca0b24174ba308d7fcddf973b2fb4f93dd0693c5d39294804eaee80cf46158964752d371c1179d4c695ab2b447ba584c659d4902c98abeb2e3
6
+ metadata.gz: 00aa2506b52f8635e7f7c92ef5755bf2028c4229bdc55aef4dca8339151af3222f05f677b4b2d26af91e55ec3d04ce9bc765d4e2552691662936634cfed69bd1
7
+ data.tar.gz: 75e1b2f23fc2b9f8f046768cb213edd888b951ae3a490c2d5890381141674283ab8fe26c701cce6948e43e3c15978127eb1b9d9039e129d03c6cb79e7123500c
@@ -128,7 +128,7 @@ module JSONAPI
128
128
  def attribute(attr)
129
129
  @_attributes.add attr
130
130
  define_method attr do
131
- @object.method(attr).call
131
+ @object.send(attr)
132
132
  end unless method_defined?(attr)
133
133
 
134
134
  define_method "#{attr}=" do |value|
@@ -1,5 +1,5 @@
1
1
  module JSONAPI
2
2
  module Resources
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi-resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Gebhardt
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-25 00:00:00.000000000 Z
12
+ date: 2014-08-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler