restful_resource 2.2.3 → 2.2.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f794c3108d0607c5a6cd7170ad63ec5b72d158d
|
4
|
+
data.tar.gz: c254ccdeb95a90451d2648fe2c593fb2fb11e63e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5185c025b8b3820d6a96756b93a3842422459450ea26eebbff02fe9303b4e89a16e9d94a6e8f2cc78df693f7e37b80202bdc9b8fa742db3fc816c7d09eccd8f
|
7
|
+
data.tar.gz: e0e62ac321625841fd0f911f1f2fa110ccee6242d7221fc78d7b9c349f8cd8d15ebaa2619a42904a0b3c207f37bd49a3581b490f917dc549a45b0e675e6b6c44
|
@@ -199,7 +199,8 @@ module RestfulResource
|
|
199
199
|
end
|
200
200
|
|
201
201
|
def build_user_agent(app_name)
|
202
|
-
parts = ["
|
202
|
+
parts = ["carwow/internal"]
|
203
|
+
parts << "RestfulResource/#{VERSION}"
|
203
204
|
parts << "(#{app_name})" if app_name
|
204
205
|
parts << "Faraday/#{Faraday::VERSION}"
|
205
206
|
parts.join(' ')
|
@@ -194,7 +194,7 @@ RSpec.describe RestfulResource::HttpClient do
|
|
194
194
|
|
195
195
|
it 'sets a default user-agent header' do
|
196
196
|
connection = faraday_connection do |stubs|
|
197
|
-
user_agent = "RestfulResource/#{RestfulResource::VERSION} Faraday/#{Faraday::VERSION}"
|
197
|
+
user_agent = "carwow/internal RestfulResource/#{RestfulResource::VERSION} Faraday/#{Faraday::VERSION}"
|
198
198
|
stubs.get('http://httpbin.org/get', { 'User-Agent' => user_agent }) { |env| [200, {}, nil] }
|
199
199
|
end
|
200
200
|
|
@@ -205,7 +205,7 @@ RSpec.describe RestfulResource::HttpClient do
|
|
205
205
|
|
206
206
|
it 'sets a default user-agent header including app name' do
|
207
207
|
connection = faraday_connection do |stubs|
|
208
|
-
user_agent = "RestfulResource/#{RestfulResource::VERSION} (my-app) Faraday/#{Faraday::VERSION}"
|
208
|
+
user_agent = "carwow/internal RestfulResource/#{RestfulResource::VERSION} (my-app) Faraday/#{Faraday::VERSION}"
|
209
209
|
stubs.get('http://httpbin.org/get', { 'User-Agent' => user_agent }) { |env| [200, {}, nil] }
|
210
210
|
end
|
211
211
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restful_resource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Santoro
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-04-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|