footrest 0.5.3 → 0.5.5

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
- SHA1:
3
- metadata.gz: d90cd2fe4ddde8e1985ec60f1f1447ca0a702884
4
- data.tar.gz: 913f2e63743580ebdc0f4222b09bde60969acb13
2
+ SHA256:
3
+ metadata.gz: be977a54a8e40ac5206e41dde7e61f108041caebef68dd02e70bc7729cd827a8
4
+ data.tar.gz: '0958476e1cfba7825facf00d3f72067b666a16b66babc2c6e458dccbfae2335d'
5
5
  SHA512:
6
- metadata.gz: f9c31d958fb219775ee972ced3515faa054e6563617a89da529a29ec04b061bcbae9d04e1fc3290971559a165f8de74d87a215d901ee584300246501360fa329
7
- data.tar.gz: 3b73c2b03292cd5cae4af34a1e75982a459eaf5126f3063b109386d196729e8d348c47aedaf29e563d31c41fb45d63bb8c4966a12d7c2dbc32d8cd45932c2d80
6
+ metadata.gz: 140f2e7ec60b8841ca9148036456ef803cec9a042fdbd239094605f97ac16ecbaa9c9b3240e21594d4fd136ca4439c4c8fcc6dd211fb0e19250cfe33d8eba81a
7
+ data.tar.gz: 9770fe04f0f9ec7015bc8081c177fb17714b883ac530a7688b94652f54f052fbf6a6dbf088641a72bf2d92263c0ea32ee8339d599348b41be669346eaea2495e
@@ -10,8 +10,8 @@ module Footrest
10
10
  end
11
11
 
12
12
  # Store a Proc that receives the body and returns the parsed result.
13
- def self.define_parser(parser = nil)
14
- @parser = parser || Proc.new
13
+ def self.define_parser(parser = nil, &block)
14
+ @parser = parser || block
15
15
  end
16
16
 
17
17
  def self.inherited(subclass)
@@ -1,3 +1,3 @@
1
1
  module Footrest
2
- VERSION = '0.5.3' unless defined?(Footrest::VERSION)
2
+ VERSION = '0.5.5' unless defined?(Footrest::VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: footrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duane Johnson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-07-05 00:00:00.000000000 Z
12
+ date: 2023-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -187,14 +187,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
189
  requirements: []
190
- rubyforge_project:
191
- rubygems_version: 2.6.13
190
+ rubygems_version: 3.1.6
192
191
  signing_key:
193
192
  specification_version: 4
194
193
  summary: REST APIs
195
194
  test_files:
196
- - spec/footrest/client_spec.rb
197
195
  - spec/footrest/http_error_spec.rb
198
- - spec/footrest/pagination_spec.rb
196
+ - spec/footrest/client_spec.rb
199
197
  - spec/footrest/request_spec.rb
198
+ - spec/footrest/pagination_spec.rb
200
199
  - spec/spec_helper.rb