faraday_middleware-circuit_breaker 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0183813e3f33b1488951d3da7f958fb767cd483
4
- data.tar.gz: fd175219034a378135773072438614392a583392
3
+ metadata.gz: 9cc5d50226438b045787ae339702f4b8d93d80fc
4
+ data.tar.gz: ef7c5039f7bc7f83033eeee83eedb4558406e9f3
5
5
  SHA512:
6
- metadata.gz: ad670e91d0be1eadd145e8cb51cf795e952aac7b09fe9bbba0399db8a87a381a47a3594880c3c561629db16de6bad86d001d28fc3cce81629fec9451bc787a64
7
- data.tar.gz: 5e67a83e2035dd6f1d1fcd70ef4ccff4d8398da1ed94098c4f1f5a0ddd1f77c2a45403f18a61dae727dd92fd97c5e7d12ba9ec752c3865dc29644bb7fad02eae
6
+ metadata.gz: 5d4d16f05f94dbf64a7dfcb15cbe55b843ec634e9d205ef9402a190e3e8dd3f6b69e517ce71807d478c165e39e8d0621d5c7e9f2bddbaadb027995dc176e7c4b
7
+ data.tar.gz: 2e55277a94873bb0183f701b04b5d0a18ce2b1833a0c26223a8ec9feb4900cedd70e6d6dacba2c6a6be7467cad2e1a39833e3182497de717aa3acfff6b2ac868
@@ -0,0 +1,3 @@
1
+ # 0.2.0
2
+
3
+ * Introduces sentry/raven notifier
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 Pierre-Louis Gottfrois
3
+ Copyright (c) 2015 TextMaster SA
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -7,11 +7,11 @@ Gem::Specification.new do |spec|
7
7
  spec.name = "faraday_middleware-circuit_breaker"
8
8
  spec.version = FaradayMiddleware::CircuitBreaker::VERSION
9
9
  spec.authors = ["Pierre-Louis Gottfrois"]
10
- spec.email = ["pierrelouis.gottfrois@gmail.com"]
10
+ spec.email = ["pierre-louis@textmaster.com"]
11
11
 
12
12
  spec.summary = %q{Middleware to apply circuit breaker pattern.}
13
13
  spec.description = %q{A Faraday Middleware to handle spotty web services.}
14
- spec.homepage = "http://textmaster.com"
14
+ spec.homepage = "https://github.com/textmaster/faraday_middleware-circuit_breaker"
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_dependency 'faraday', '~> 0.9'
23
- spec.add_dependency 'stoplight', '~> 1.2'
23
+ spec.add_dependency 'stoplight', '~> 2.1'
24
24
 
25
25
  spec.add_development_dependency 'bundler', '~> 1.10'
26
26
  spec.add_development_dependency 'rake', '~> 10.0'
@@ -19,7 +19,7 @@ module FaradayMiddleware
19
19
  Stoplight(env.url.to_s) do
20
20
  @app.call(env)
21
21
  end
22
- .with_timeout(option_set.timeout)
22
+ .with_cool_off_time(option_set.timeout)
23
23
  .with_threshold(option_set.threshold)
24
24
  .with_fallback { |e| option_set.fallback.call(env, e) }
25
25
  .run
@@ -36,6 +36,8 @@ module FaradayMiddleware
36
36
  Stoplight::Light.default_notifiers += [Stoplight::Notifier::Logger.new(value)]
37
37
  when :honeybadger
38
38
  Stoplight::Light.default_notifiers += [Stoplight::Notifier::Honeybadger.new(value)]
39
+ when :raven
40
+ Stoplight::Light.default_notifiers += [Stoplight::Notifier::Raven.new(value)]
39
41
  when :hip_chat
40
42
  Stoplight::Light.default_notifiers += [Stoplight::Notifier::HipChat.new(value[:client], value[:room])]
41
43
  when :slack
@@ -1,5 +1,5 @@
1
1
  module FaradayMiddleware
2
2
  module CircuitBreaker
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday_middleware-circuit_breaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre-Louis Gottfrois
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-03 00:00:00.000000000 Z
11
+ date: 2016-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.2'
33
+ version: '2.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.2'
40
+ version: '2.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -82,7 +82,7 @@ dependencies:
82
82
  version: '0'
83
83
  description: A Faraday Middleware to handle spotty web services.
84
84
  email:
85
- - pierrelouis.gottfrois@gmail.com
85
+ - pierre-louis@textmaster.com
86
86
  executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
@@ -90,6 +90,7 @@ files:
90
90
  - ".gitignore"
91
91
  - ".rspec"
92
92
  - ".travis.yml"
93
+ - CHANGELOG.md
93
94
  - Gemfile
94
95
  - LICENSE.txt
95
96
  - README.md
@@ -101,7 +102,7 @@ files:
101
102
  - lib/faraday_middleware/circuit_breaker/middleware.rb
102
103
  - lib/faraday_middleware/circuit_breaker/option_set.rb
103
104
  - lib/faraday_middleware/circuit_breaker/version.rb
104
- homepage: http://textmaster.com
105
+ homepage: https://github.com/textmaster/faraday_middleware-circuit_breaker
105
106
  licenses:
106
107
  - MIT
107
108
  metadata: {}
@@ -121,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
122
  version: '0'
122
123
  requirements: []
123
124
  rubyforge_project:
124
- rubygems_version: 2.4.8
125
+ rubygems_version: 2.5.1
125
126
  signing_key:
126
127
  specification_version: 4
127
128
  summary: Middleware to apply circuit breaker pattern.