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: 3f0b710977f827bb7d5698d80989ce066d532dac
4
- data.tar.gz: 036d21d808eaf17e83dc0c0dcaaa61e03f2b1005
3
+ metadata.gz: 0f794c3108d0607c5a6cd7170ad63ec5b72d158d
4
+ data.tar.gz: c254ccdeb95a90451d2648fe2c593fb2fb11e63e
5
5
  SHA512:
6
- metadata.gz: 13aeb2fd10f632f1b7e99f2cf4ecb7bdfcc8d4856b719ad7cd1ef0a8ffb7640b7a057f2267e2fa03754f77ac56f97fbb349c6491407f6caed487c214a0c262e0
7
- data.tar.gz: 4866c6e3d44c15591953ff9f7a096a902466e347d8c5505bb2f9d8a3b07f281a18d5027a85285d228b0796ca2f909ff64aa550916ad2ca4962e741fd1e42ec5e
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 = ["RestfulResource/#{VERSION}"]
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(' ')
@@ -1,3 +1,3 @@
1
1
  module RestfulResource
2
- VERSION = '2.2.3'
2
+ VERSION = '2.2.4'
3
3
  end
@@ -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.3
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-03-08 00:00:00.000000000 Z
12
+ date: 2018-04-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler