nestful 1.0.2 → 1.0.3
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.
- data/lib/nestful/resource.rb +2 -2
- data/lib/nestful/version.rb +1 -1
- metadata +4 -4
data/lib/nestful/resource.rb
CHANGED
|
@@ -125,11 +125,11 @@ module Nestful
|
|
|
125
125
|
|
|
126
126
|
alias_method :respond_to_without_attributes?, :respond_to?
|
|
127
127
|
|
|
128
|
-
def respond_to?(method)
|
|
128
|
+
def respond_to?(method, include_priv = false)
|
|
129
129
|
method_name = method.to_s
|
|
130
130
|
if attributes.nil?
|
|
131
131
|
super
|
|
132
|
-
elsif
|
|
132
|
+
elsif attributes.include?(method_name.sub(/[=\?]\Z/, ''))
|
|
133
133
|
true
|
|
134
134
|
else
|
|
135
135
|
super
|
data/lib/nestful/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nestful
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-05-
|
|
12
|
+
date: 2013-05-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description:
|
|
15
15
|
email:
|
|
@@ -58,7 +58,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
58
58
|
version: '0'
|
|
59
59
|
segments:
|
|
60
60
|
- 0
|
|
61
|
-
hash:
|
|
61
|
+
hash: -556066746735068730
|
|
62
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
none: false
|
|
64
64
|
requirements:
|
|
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
67
67
|
version: '0'
|
|
68
68
|
segments:
|
|
69
69
|
- 0
|
|
70
|
-
hash:
|
|
70
|
+
hash: -556066746735068730
|
|
71
71
|
requirements: []
|
|
72
72
|
rubyforge_project:
|
|
73
73
|
rubygems_version: 1.8.24
|