nestful 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 method_name =~ /(?:=|\?)$/ && attributes.include?($`)
132
+ elsif attributes.include?(method_name.sub(/[=\?]\Z/, ''))
133
133
  true
134
134
  else
135
135
  super
@@ -1,3 +1,3 @@
1
1
  module Nestful
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
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.2
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-06 00:00:00.000000000 Z
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: 2056816628448923571
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: 2056816628448923571
70
+ hash: -556066746735068730
71
71
  requirements: []
72
72
  rubyforge_project:
73
73
  rubygems_version: 1.8.24