hyperresource 0.1.9.4 → 0.1.9.5

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: dbbf6ab86efd5ba75dc1c7831f92336b7cfbee64
4
- data.tar.gz: 72b1877082068c781f3730fc95977cd3b09f60bc
3
+ metadata.gz: 297e7456b1c2ea2b42d9ed4ca690f98a90c5e33a
4
+ data.tar.gz: 4e89207bc9ab1bfaf0148ff99e57517bf1c80414
5
5
  SHA512:
6
- metadata.gz: 1750d932e5ee8499dd146e52a31090d02809a68b1141d5aed3aaaede921366a33f4a81634b98d960ce083cddf7c28331c873b6386eb64f3681e6b5b4c1c217b6
7
- data.tar.gz: 5399981c4f2c35b440f4029168392753371244580c4804ba84a044edee22b878a072f38448d0c0b6c6d49436a74bb9cb558f906e05af312cc4eb68fdda1621c7
6
+ metadata.gz: 14720ef3ba836d285ae6b0b0ed2e9577c307538a12f833cfbed99f519f38a45e7c0e7c65ae2e55cf6f0725aa07d2be0e675db5c296de7c63babe8713c73b034d
7
+ data.tar.gz: dc6f658a981ac5b2f5e9596e677aac6f4b2ae45f712ce10fe39eecc69045f3e66beea8a90208034fee8de071cd9bbc513b0cb6d828658fba1f86acd92c5fa0c1
@@ -44,8 +44,15 @@ class HyperResource
44
44
  end
45
45
 
46
46
  def method_missing(method, *args) # :nodoc:
47
- return self[method] if self[method]
48
- raise NoMethodError, "undefined method `#{method}' for #{self.inspect}"
47
+ unless self[method]
48
+ raise NoMethodError, "undefined method `#{method}' for #{self.inspect}"
49
+ end
50
+
51
+ if args.count > 0
52
+ self[method].where(*args)
53
+ else
54
+ self[method]
55
+ end
49
56
  end
50
57
 
51
58
  end
@@ -1,4 +1,4 @@
1
1
  class HyperResource
2
- VERSION = '0.1.9.4'
3
- VERSION_DATE = '2013-10-07'
2
+ VERSION = '0.1.9.5'
3
+ VERSION_DATE = '2013-10-11'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyperresource
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9.4
4
+ version: 0.1.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Gamache
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-07 00:00:00.000000000 Z
11
+ date: 2013-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uri_template
@@ -118,17 +118,17 @@ executables: []
118
118
  extensions: []
119
119
  extra_rdoc_files: []
120
120
  files:
121
- - lib/hyper_resource/links.rb
121
+ - lib/hyper_resource/adapter/hal_json.rb
122
122
  - lib/hyper_resource/adapter.rb
123
+ - lib/hyper_resource/attributes.rb
124
+ - lib/hyper_resource/exceptions.rb
125
+ - lib/hyper_resource/link.rb
126
+ - lib/hyper_resource/links.rb
123
127
  - lib/hyper_resource/modules/http.rb
124
128
  - lib/hyper_resource/modules/utils.rb
125
129
  - lib/hyper_resource/objects.rb
126
130
  - lib/hyper_resource/response.rb
127
- - lib/hyper_resource/adapter/hal_json.rb
128
131
  - lib/hyper_resource/version.rb
129
- - lib/hyper_resource/link.rb
130
- - lib/hyper_resource/exceptions.rb
131
- - lib/hyper_resource/attributes.rb
132
132
  - lib/hyper_resource.rb
133
133
  - lib/hyperresource.rb
134
134
  homepage: https://github.com/gamache/hyperresource
@@ -151,8 +151,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  requirements: []
153
153
  rubyforge_project:
154
- rubygems_version: 2.0.0.rc.2
154
+ rubygems_version: 2.0.3
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: Extensible hypermedia client for Ruby
158
158
  test_files: []
159
+ has_rdoc: true