we-call 0.7.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -4
- data/Appraisals +10 -2
- data/Gemfile +2 -0
- data/README.md +3 -2
- data/lib/we/call/connection.rb +5 -5
- data/lib/we/call/version.rb +1 -1
- data/we-call.gemspec +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f561aa7ce01d274aa7bea158b4aeff4e948b5485
|
4
|
+
data.tar.gz: a19d7d9cd3cfc07f9336feaa1263715a08402cf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee5cd0110bb138997c67de8ca25a67fc1fdbaf96468a02826c39603514b74b4a269a1a3969ae99c41269b81d4b53cf1fd10c71d61ee158953e0b59d8149c2b9f
|
7
|
+
data.tar.gz: e85fcf9d2ac16f24a1049d98d928658191c96dc402e5dd78326e44b6c3fc36a3179af4baa1433c25ee6447b6e8eb559246193d227687b4363113adb94c2d0ab8
|
data/.travis.yml
CHANGED
@@ -6,18 +6,21 @@ before_script:
|
|
6
6
|
script:
|
7
7
|
- bundle exec appraisal rspec
|
8
8
|
gemfiles:
|
9
|
-
- faraday_0.9.gemfile
|
10
9
|
- faraday_0.10.gemfile
|
11
10
|
- faraday_0.11.gemfile
|
12
11
|
- faraday_0.12.gemfile
|
13
12
|
- faraday_0.13.gemfile
|
13
|
+
- faraday_0.15.gemfile
|
14
|
+
- faraday_0.14.gemfile
|
14
15
|
- rails_4.2.gemfile
|
15
16
|
- rails_5.0.gemfile
|
16
17
|
- rails_5.1.gemfile
|
18
|
+
- rails_5.2.gemfile
|
17
19
|
rvm:
|
18
|
-
- 2.2
|
19
|
-
- 2.3
|
20
|
-
- 2.4
|
20
|
+
- 2.2
|
21
|
+
- 2.3
|
22
|
+
- 2.4
|
23
|
+
- 2.5
|
21
24
|
- ruby-head
|
22
25
|
matrix:
|
23
26
|
allow_failures:
|
data/Appraisals
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
appraise "faraday-0.15" do
|
2
|
+
gem "faraday", "~> 0.15.0"
|
3
|
+
end
|
4
|
+
|
5
|
+
appraise "faraday-0.14" do
|
6
|
+
gem "faraday", "~> 0.14.0"
|
7
|
+
end
|
8
|
+
|
1
9
|
appraise "faraday-0.13" do
|
2
10
|
gem "faraday", "~> 0.13.0"
|
3
11
|
end
|
@@ -14,8 +22,8 @@ appraise "faraday-0.10" do
|
|
14
22
|
gem "faraday", "~> 0.10.0"
|
15
23
|
end
|
16
24
|
|
17
|
-
appraise "
|
18
|
-
gem "
|
25
|
+
appraise "rails-5.2" do
|
26
|
+
gem "rails", "~> 5.2.0"
|
19
27
|
end
|
20
28
|
|
21
29
|
appraise "rails-5.1" do
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -122,9 +122,10 @@ Easy! Check your logs for `user_agent=service-name; app_name=service-name;` The
|
|
122
122
|
|
123
123
|
## Requirements
|
124
124
|
|
125
|
-
- **Ruby:** v2.2 - v2.
|
126
|
-
- **Faraday:** v0.
|
125
|
+
- **Ruby:** v2.2 - v2.5
|
126
|
+
- **Faraday:** v0.10 - v0.15
|
127
127
|
|
128
|
+
_**Note:** Other versions of Faraday may work, but we can't test against all of them forever._
|
128
129
|
|
129
130
|
## TODO
|
130
131
|
|
data/lib/we/call/connection.rb
CHANGED
@@ -110,14 +110,14 @@ module We
|
|
110
110
|
end
|
111
111
|
|
112
112
|
def setup_sunset_middleware(faraday)
|
113
|
-
|
114
|
-
if config.detect_deprecations ==
|
115
|
-
|
116
|
-
|
113
|
+
options = { rollbar: :auto }
|
114
|
+
if config.detect_deprecations == :active_support
|
115
|
+
options = options.merge({ active_support: true })
|
117
116
|
# Pass something that might be a logger or anything with a warn method
|
118
117
|
elsif config.detect_deprecations.respond_to?(:warn)
|
119
|
-
|
118
|
+
options = options.merge({ logger: config.detect_deprecations })
|
120
119
|
end
|
120
|
+
options
|
121
121
|
end
|
122
122
|
|
123
123
|
# @return [String] Environment (usually 'development', 'staging', 'production', etc.)
|
data/lib/we/call/version.rb
CHANGED
data/we-call.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_dependency "typhoeus", "~> 1.3"
|
24
24
|
spec.add_dependency "faraday", ">= 0.9.0", "< 1"
|
25
25
|
spec.add_dependency "faraday_middleware", '~> 0.10'
|
26
|
-
spec.add_dependency "faraday-sunset",
|
26
|
+
spec.add_dependency "faraday-sunset", '~> 0.2'
|
27
27
|
|
28
28
|
spec.add_development_dependency "appraisal", "~> 2.0"
|
29
29
|
spec.add_development_dependency "coveralls", '~> 0.7'
|
@@ -33,5 +33,5 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_development_dependency "rspec", "~> 3.5"
|
34
34
|
spec.add_development_dependency "simplecov", '~> 0.15'
|
35
35
|
spec.add_development_dependency "hashie", "~> 3.5"
|
36
|
-
spec.add_development_dependency "vcr", '~>
|
36
|
+
spec.add_development_dependency "vcr", '~> 4.0'
|
37
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: we-call
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WeWork Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -64,14 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: 0.
|
67
|
+
version: '0.2'
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 0.
|
74
|
+
version: '0.2'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: appraisal
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -190,14 +190,14 @@ dependencies:
|
|
190
190
|
requirements:
|
191
191
|
- - "~>"
|
192
192
|
- !ruby/object:Gem::Version
|
193
|
-
version: '
|
193
|
+
version: '4.0'
|
194
194
|
type: :development
|
195
195
|
prerelease: false
|
196
196
|
version_requirements: !ruby/object:Gem::Requirement
|
197
197
|
requirements:
|
198
198
|
- - "~>"
|
199
199
|
- !ruby/object:Gem::Version
|
200
|
-
version: '
|
200
|
+
version: '4.0'
|
201
201
|
description: Handles conventions of making calls to other services, with required
|
202
202
|
metadata for tracking calls between services, deprecations of endpoints, trace IDs,
|
203
203
|
throttling, etc.
|
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
248
|
version: '0'
|
249
249
|
requirements: []
|
250
250
|
rubyforge_project:
|
251
|
-
rubygems_version: 2.6.
|
251
|
+
rubygems_version: 2.6.14
|
252
252
|
signing_key:
|
253
253
|
specification_version: 4
|
254
254
|
summary: Making healthy, happy HTTP calls
|