rest-client-components 1.4.0 → 1.5.0

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: f7699627b62f66d04bd42c9de6ae5280bf29995a
4
- data.tar.gz: aa01f906645dcac141c504964a55d9c872b3808d
3
+ metadata.gz: 0663bedaa5589584793a94c9e1a518aaa596c54e
4
+ data.tar.gz: ad90658e5abf7bf9c5c44fadd9f504d591df44f1
5
5
  SHA512:
6
- metadata.gz: cbbd3251a190706d7d36a2537894d77bc377e96319bb44984bdcdc936bbdce81cbf5af4465f764b140539777d1b76a60cc5c6e5fffb8dd9ea3e6a0356f3506e2
7
- data.tar.gz: 9e86f4fa99f894a38dcbd3d85c83970d2eb7e220687fa9dacdccf018bc30cfa383b931e5e36a482de3d60c66aab815596ebd2be043d9236c94fc0db85558ae49
6
+ metadata.gz: 7d0e6e2b11182761e056ff3adb010aa0bb706062cbfafbf6b25f111d85781bc452c06aa6cf30f99a905029893358b368366da04bc21c0d89f35bb4c8a8578a4b
7
+ data.tar.gz: 4a27a07c640b75c579e1deb96457a4264ec94b90ca60698306f2c6b7808d055d83839f9b193d5914b418b910cf303614483bef7f063108c219caf2a130e78ae5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.5.0
@@ -13,9 +13,10 @@ module RestClient
13
13
  net_http_response = RestClient::MockNetHTTPResponse.new(body, status, header)
14
14
  content = ""
15
15
  net_http_response.body.each{|line| content << line}
16
+ request = env['restclient.hash'][:request]
16
17
  response = case RestClient::Response.method(:create).arity
17
- when 4 then RestClient::Response.create(content, net_http_response, {}, self)
18
- else RestClient::Response.create(content, net_http_response, {})
18
+ when 4 then RestClient::Response.create(content, net_http_response, request, self)
19
+ else RestClient::Response.create(content, net_http_response, request)
19
20
  end
20
21
  if block = env['restclient.hash'][:block]
21
22
  block.call(response)
@@ -1,12 +1,6 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
- # stub: rest-client-components 1.3.0 ruby lib
6
-
7
1
  Gem::Specification.new do |s|
8
2
  s.name = "rest-client-components"
9
- s.version = "1.4.0"
3
+ s.version = "1.5.0"
10
4
 
11
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
6
  s.require_paths = ["lib"]
@@ -34,6 +28,7 @@ Gem::Specification.new do |s|
34
28
  s.homepage = "http://github.com/crohr/rest-client-components"
35
29
  s.rubygems_version = "2.4.5"
36
30
  s.summary = "RestClient on steroids ! Easily add one or more Rack middleware around RestClient to add functionalities such as transparent caching (Rack::Cache), transparent logging, etc."
31
+ s.license = "MIT"
37
32
 
38
33
  if s.respond_to? :specification_version then
39
34
  s.specification_version = 4
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest-client-components
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Rohr
@@ -88,7 +88,8 @@ files:
88
88
  - spec/components_spec.rb
89
89
  - spec/spec_helper.rb
90
90
  homepage: http://github.com/crohr/rest-client-components
91
- licenses: []
91
+ licenses:
92
+ - MIT
92
93
  metadata: {}
93
94
  post_install_message:
94
95
  rdoc_options: []
@@ -106,11 +107,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
107
  version: '0'
107
108
  requirements: []
108
109
  rubyforge_project:
109
- rubygems_version: 2.2.2
110
+ rubygems_version: 2.6.11
110
111
  signing_key:
111
112
  specification_version: 4
112
113
  summary: RestClient on steroids ! Easily add one or more Rack middleware around RestClient
113
114
  to add functionalities such as transparent caching (Rack::Cache), transparent logging,
114
115
  etc.
115
116
  test_files: []
116
- has_rdoc: