sidekiq-throttled 0.7.2 → 0.7.3

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: 3802ab6e7e994bd8faa55662720249224b8e6c6b
4
- data.tar.gz: b1a33d3471eec53203d4f5e652e750fb88587f19
3
+ metadata.gz: 84ceb88578f276b9161f1efa7428e46204da69e7
4
+ data.tar.gz: f57a36074d1d25b43125735f1a7fc8249d130533
5
5
  SHA512:
6
- metadata.gz: b8d0bdd85bfeb292e4a52f4186d34667f4e0866af137fbefd258ee662e227297f7508542c64a658a045c5cac95bd37141d8587e623c2ba99d97d9e9d96940ad2
7
- data.tar.gz: 7b705aa1272d5fd0f499d318678b5700ef75e84e8aed3fb41accbd39cb2679fd6ea8d711225ecbea4b5c4499fd1c4d910a4f0510321f4dd60d7aae2eed510f30
6
+ metadata.gz: f1f1e6086b2d493361a1413abecccdfaef578660f72fd6d46f41dc636fb143039cb54968eec7e497a12a43a70f6f1b74d78d573497f9d6141b1d390ee14677e7
7
+ data.tar.gz: b2bbc09d00d09c49ad5653d4eec477fb05049ac2423a3637cfdc5aae80d11e3808fd081fa9144757ff3f392ed45618f958e50ed0d4e264f844d6dd7960012f57
@@ -50,3 +50,4 @@ gemfile:
50
50
  - gemfiles/sidekiq_4.0.gemfile
51
51
  - gemfiles/sidekiq_4.1.gemfile
52
52
  - gemfiles/sidekiq_4.2.gemfile
53
+ - gemfiles/sidekiq_5.0.gemfile
data/Appraisals CHANGED
@@ -9,3 +9,7 @@ end
9
9
  appraise "sidekiq-4.2" do
10
10
  gem "sidekiq", "~> 4.2.0"
11
11
  end
12
+
13
+ appraise "sidekiq-5.0" do
14
+ gem "sidekiq", "~> 5.0.0"
15
+ end
data/CHANGES.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.7.3 (2017-06-26)
2
+
3
+ * [#34](https://github.com/sensortower/sidekiq-throttled/issues/34)
4
+ Fix reset button for sidekiq `>= 4.2`.
5
+ ([@ixti])
6
+
7
+
1
8
  ## 0.7.2 (2017-04-02)
2
9
 
3
10
  * Fix summary bar fixer on sidekiq 4.2+.
data/README.md CHANGED
@@ -180,6 +180,7 @@ This library aims to support work with following [Sidekiq][sidekiq] versions:
180
180
  * Sidekiq 4.0.x
181
181
  * Sidekiq 4.1.x
182
182
  * Sidekiq 4.2.x
183
+ * Sidekiq 5.0.x
183
184
 
184
185
 
185
186
  ## Contributing
@@ -0,0 +1,29 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal"
6
+ gem "rake"
7
+ gem "redis-namespace", :require => false
8
+ gem "rspec"
9
+ gem "rubocop", "~> 0.47.0", :require => false
10
+ gem "sidekiq", "~> 5.0.0"
11
+
12
+ group :development do
13
+ gem "byebug"
14
+ gem "guard", :require => false
15
+ gem "guard-rspec", :require => false
16
+ gem "guard-rubocop", :require => false
17
+ end
18
+
19
+ group :test do
20
+ gem "capybara"
21
+ gem "coveralls", :require => false
22
+ gem "poltergeist"
23
+ gem "rack-test"
24
+ gem "simplecov", ">= 0.9"
25
+ gem "sinatra", "~> 1.4", ">= 1.4.6"
26
+ gem "timecop"
27
+ end
28
+
29
+ gemspec :path => "../"
@@ -3,6 +3,6 @@
3
3
  module Sidekiq
4
4
  module Throttled
5
5
  # Gem version
6
- VERSION = "0.7.2"
6
+ VERSION = "0.7.3"
7
7
  end
8
8
  end
@@ -50,7 +50,7 @@ module Sidekiq
50
50
  def register_throttled_tab(app)
51
51
  app.get("/throttled") { erb THROTTLED_TPL.dup }
52
52
 
53
- app.delete("/throttled/:id") do
53
+ app.post("/throttled/:id/reset") do
54
54
  Registry.get(params[:id], &:reset!)
55
55
  redirect "#{root_path}throttled"
56
56
  end
@@ -20,9 +20,8 @@
20
20
  <%= Sidekiq::Throttled::Web::Stats.new(strategy.threshold).to_html %>
21
21
  </td>
22
22
  <td style="vertical-align:middle;text-align:center;">
23
- <form action="<%= root_path %>throttled/<%= CGI.escape name %>" method="post">
23
+ <form action="<%= root_path %>throttled/<%= CGI.escape name %>/reset" method="post">
24
24
  <%= csrf_tag %>
25
- <input type="hidden" name="_method" value="delete" />
26
25
  <button class="btn btn-danger" type="submit">Reset</button>
27
26
  </form>
28
27
  </td>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-throttled
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey V Zapparov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-02 00:00:00.000000000 Z
11
+ date: 2017-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
@@ -62,6 +62,7 @@ files:
62
62
  - gemfiles/sidekiq_4.0.gemfile
63
63
  - gemfiles/sidekiq_4.1.gemfile
64
64
  - gemfiles/sidekiq_4.2.gemfile
65
+ - gemfiles/sidekiq_5.0.gemfile
65
66
  - lib/sidekiq/throttled.rb
66
67
  - lib/sidekiq/throttled/communicator.rb
67
68
  - lib/sidekiq/throttled/communicator/callbacks.rb
@@ -112,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
113
  version: '0'
113
114
  requirements: []
114
115
  rubyforge_project:
115
- rubygems_version: 2.6.11
116
+ rubygems_version: 2.6.12
116
117
  signing_key:
117
118
  specification_version: 4
118
119
  summary: Concurrency and threshold throttling for Sidekiq.