the_garage 2.0.2 → 2.0.3

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: c8c6bf379ddbe1548bde79ead4f1c04689c14f39
4
- data.tar.gz: 35587c8a135ab92f9906d39883dc25459ff3e1cf
3
+ metadata.gz: 99630344263372cbbc03bbb368b252f8dd4b0ad7
4
+ data.tar.gz: 4964f4f54a1904eeb14313d8f6830ab36a7b346b
5
5
  SHA512:
6
- metadata.gz: f05074b1692976f7e60bb3a3146afecee9cfd41bf406db349f4a081b010f9c2d948c2de8632efe6ea2b99fca380cd5ca873b326a3691b03adb3c539631d6f6b9
7
- data.tar.gz: 2d7d165bdd22fb0296bab19840c863904095596caaf7ee9e0b151d6b35c44c0af8fca7a778be9a02be6e5584c9a256180adaded56270a62e579fe9adda4980a0
6
+ metadata.gz: 191aa740289c4fd51763f25d5697909c0e1076585598d20b1c9730369c20a91a3c8bcdba752ca96f0c94c0b025d11f84a287d3a08df0cdeddcb5318cb47fe1b7
7
+ data.tar.gz: 92d938a94a78c38813109bd5bae630c9724f8e36d9adbdd6ee0d66c370bef783aa0ac8ae6571582d311dd6daa628f20e28985aa8e29d7e975d3cf4744c527180
@@ -157,7 +157,7 @@ module Garage::Representer
157
157
  end
158
158
 
159
159
  def encode_value(value, responder, selector)
160
- if !value.nil? && value.respond_to?(:represent!)
160
+ if value.is_a?(Garage::Representer)
161
161
  responder.encode_to_hash(value, partial: true, selector: selector)
162
162
  elsif primitive?(value)
163
163
  value
@@ -1,3 +1,3 @@
1
1
  module Garage
2
- VERSION = '2.0.2'
2
+ VERSION = '2.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the_garage
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tatsuhiko Miyagawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-18 00:00:00.000000000 Z
11
+ date: 2016-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -269,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
269
  version: '0'
270
270
  requirements: []
271
271
  rubyforge_project:
272
- rubygems_version: 2.4.5.1
272
+ rubygems_version: 2.5.1
273
273
  signing_key:
274
274
  specification_version: 4
275
275
  summary: Garage Platform Engine