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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30bad41ed6b34f69292a161663ef04653ae592ec
4
- data.tar.gz: a8d187c323a32f8c73172ee0ab949f76540f3704
3
+ metadata.gz: f561aa7ce01d274aa7bea158b4aeff4e948b5485
4
+ data.tar.gz: a19d7d9cd3cfc07f9336feaa1263715a08402cf7
5
5
  SHA512:
6
- metadata.gz: 639f9f9c2c1d5d01435c0e3a293ae27236a48a83dd456438662c3829fcf04d0b032356b52a9af933b41c616420e84e3a879cd7df4418230ecea2977359006bd8
7
- data.tar.gz: e4aa1848b875d23a53510066e7b8ca199e7278a84d92fb76ed3e711e513546c978cdc0942e2888ff106e7225fdba4aa48da9c074b7fe6d1093b662ed6aa9bc82
6
+ metadata.gz: ee5cd0110bb138997c67de8ca25a67fc1fdbaf96468a02826c39603514b74b4a269a1a3969ae99c41269b81d4b53cf1fd10c71d61ee158953e0b59d8149c2b9f
7
+ data.tar.gz: e85fcf9d2ac16f24a1049d98d928658191c96dc402e5dd78326e44b6c3fc36a3179af4baa1433c25ee6447b6e8eb559246193d227687b4363113adb94c2d0ab8
@@ -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.7
19
- - 2.3.4
20
- - 2.4.1
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 "faraday-0.9" do
18
- gem "faraday", "~> 0.9.0"
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
@@ -1,4 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ ruby '~> 2.2'
4
+
3
5
  # Specify your gem's dependencies in we-call.gemspec
4
6
  gemspec
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.4
126
- - **Faraday:** v0.9 - v0.13
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
 
@@ -110,14 +110,14 @@ module We
110
110
  end
111
111
 
112
112
  def setup_sunset_middleware(faraday)
113
- # In v0.5.0 this was a bool switch, now it takes :active_support or an instance of a Logger
114
- if config.detect_deprecations == true || config.detect_deprecations == :active_support
115
- return { active_support: true }
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
- return { logger: config.detect_deprecations }
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.)
@@ -1,5 +1,5 @@
1
1
  module We
2
2
  module Call
3
- VERSION = "0.7.1"
3
+ VERSION = "0.8.0"
4
4
  end
5
5
  end
@@ -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", "~> 0.1.0"
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", '~> 3.0'
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.7.1
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-02-23 00:00:00.000000000 Z
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.1.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.1.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: '3.0'
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: '3.0'
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.8
251
+ rubygems_version: 2.6.14
252
252
  signing_key:
253
253
  specification_version: 4
254
254
  summary: Making healthy, happy HTTP calls