sidekiq-throttled 0.18.0 → 1.0.0.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/{README.md → README.adoc} +95 -114
  3. data/lib/sidekiq/throttled/basic_fetch.rb +55 -0
  4. data/lib/sidekiq/throttled/fetch.rb +3 -87
  5. data/lib/sidekiq/throttled/job.rb +1 -1
  6. data/lib/sidekiq/throttled/middleware.rb +3 -1
  7. data/lib/sidekiq/throttled/registry.rb +2 -5
  8. data/lib/sidekiq/throttled/strategy/concurrency.rb +2 -4
  9. data/lib/sidekiq/throttled/strategy/threshold.rb +2 -4
  10. data/lib/sidekiq/throttled/strategy.rb +10 -10
  11. data/lib/sidekiq/throttled/strategy_collection.rb +1 -1
  12. data/lib/sidekiq/throttled/version.rb +1 -1
  13. data/lib/sidekiq/throttled/web.rb +2 -45
  14. data/lib/sidekiq/throttled/worker.rb +1 -1
  15. data/lib/sidekiq/throttled.rb +16 -50
  16. metadata +17 -77
  17. data/.coveralls.yml +0 -1
  18. data/.github/dependabot.yml +0 -12
  19. data/.github/workflows/ci.yml +0 -52
  20. data/.gitignore +0 -12
  21. data/.rspec +0 -5
  22. data/.rubocop.yml +0 -20
  23. data/.rubocop_todo.yml +0 -68
  24. data/.travis.yml +0 -37
  25. data/.yardopts +0 -1
  26. data/Appraisals +0 -9
  27. data/CHANGES.md +0 -318
  28. data/Gemfile +0 -34
  29. data/Guardfile +0 -25
  30. data/Rakefile +0 -27
  31. data/gemfiles/sidekiq_6.4.gemfile +0 -33
  32. data/gemfiles/sidekiq_6.5.gemfile +0 -33
  33. data/lib/sidekiq/throttled/communicator/callbacks.rb +0 -72
  34. data/lib/sidekiq/throttled/communicator/exception_handler.rb +0 -25
  35. data/lib/sidekiq/throttled/communicator/listener.rb +0 -109
  36. data/lib/sidekiq/throttled/communicator.rb +0 -116
  37. data/lib/sidekiq/throttled/expirable_list.rb +0 -70
  38. data/lib/sidekiq/throttled/fetch/unit_of_work.rb +0 -83
  39. data/lib/sidekiq/throttled/patches/queue.rb +0 -18
  40. data/lib/sidekiq/throttled/queue_name.rb +0 -46
  41. data/lib/sidekiq/throttled/queues_pauser.rb +0 -152
  42. data/lib/sidekiq/throttled/testing.rb +0 -12
  43. data/lib/sidekiq/throttled/utils.rb +0 -19
  44. data/lib/sidekiq/throttled/web/queues.html.erb +0 -49
  45. data/lib/sidekiq/throttled/web/summary_fix.js +0 -10
  46. data/lib/sidekiq/throttled/web/summary_fix.rb +0 -35
  47. data/rubocop/layout.yml +0 -24
  48. data/rubocop/lint.yml +0 -41
  49. data/rubocop/metrics.yml +0 -4
  50. data/rubocop/performance.yml +0 -25
  51. data/rubocop/rspec.yml +0 -3
  52. data/rubocop/style.yml +0 -84
  53. data/sidekiq-throttled.gemspec +0 -36
  54. /data/{LICENSE.md → LICENSE} +0 -0
@@ -1,25 +0,0 @@
1
- Performance/AncestorsInclude:
2
- Enabled: true
3
-
4
- Performance/BigDecimalWithNumericArgument:
5
- Enabled: true
6
-
7
- Performance/RedundantSortBlock:
8
- Enabled: true
9
-
10
- Performance/RedundantStringChars:
11
- Enabled: true
12
-
13
- Performance/ReverseFirst:
14
- Enabled: true
15
-
16
- Performance/SortReverse:
17
- Enabled: true
18
-
19
- Performance/Squeeze:
20
- Enabled: true
21
-
22
- Performance/StringInclude:
23
- Enabled: true
24
-
25
-
data/rubocop/rspec.yml DELETED
@@ -1,3 +0,0 @@
1
- RSpec/ExampleLength:
2
- Enabled: true
3
- Max: 15
data/rubocop/style.yml DELETED
@@ -1,84 +0,0 @@
1
- Style/AccessorGrouping:
2
- Enabled: true
3
-
4
- Style/ArrayCoercion:
5
- Enabled: true
6
-
7
- Style/BisectedAttrAccessor:
8
- Enabled: true
9
-
10
- Style/CaseLikeIf:
11
- Enabled: true
12
-
13
- Style/Documentation:
14
- Enabled: false
15
-
16
- Style/ExplicitBlockArgument:
17
- Enabled: true
18
-
19
- Style/ExponentialNotation:
20
- Enabled: true
21
-
22
- Style/GlobalStdStream:
23
- Enabled: true
24
-
25
- Style/HashAsLastArrayItem:
26
- Enabled: true
27
-
28
- Style/HashEachMethods:
29
- Enabled: true
30
-
31
- Style/HashLikeCase:
32
- Enabled: true
33
-
34
- Style/HashSyntax:
35
- Enabled: true
36
- EnforcedStyle: hash_rockets
37
-
38
- Style/HashTransformKeys:
39
- Enabled: true
40
-
41
- Style/HashTransformValues:
42
- Enabled: true
43
-
44
- Style/OptionalBooleanParameter:
45
- Enabled: true
46
-
47
- Style/RedundantAssignment:
48
- Enabled: true
49
-
50
- Style/RedundantFetchBlock:
51
- Enabled: true
52
-
53
- Style/RedundantFileExtensionInRequire:
54
- Enabled: true
55
-
56
- Style/RedundantRegexpCharacterClass:
57
- Enabled: true
58
-
59
- Style/RedundantRegexpEscape:
60
- Enabled: true
61
-
62
- Style/RegexpLiteral:
63
- Enabled: true
64
- EnforcedStyle: percent_r
65
-
66
- Style/RescueStandardError:
67
- Enabled: true
68
- EnforcedStyle: implicit
69
-
70
- Style/SingleArgumentDig:
71
- Enabled: true
72
-
73
- Style/SlicingWithRange:
74
- Enabled: true
75
-
76
- Style/StringConcatenation:
77
- Enabled: true
78
-
79
- Style/StringLiterals:
80
- Enabled: true
81
- EnforcedStyle: double_quotes
82
-
83
- Style/YodaCondition:
84
- Enabled: false
@@ -1,36 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- lib = File.expand_path("lib", __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
-
6
- require "sidekiq/throttled/version"
7
-
8
- Gem::Specification.new do |spec|
9
- spec.name = "sidekiq-throttled"
10
- spec.version = Sidekiq::Throttled::VERSION
11
- spec.authors = ["Alexey Zapparov"]
12
- spec.email = ["alexey@zapparov.com"]
13
-
14
- spec.summary = "Concurrency and threshold throttling for Sidekiq."
15
- spec.description = "Concurrency and threshold throttling for Sidekiq."
16
- spec.homepage = "https://github.com/ixti/sidekiq-throttled"
17
- spec.license = "MIT"
18
-
19
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
20
- f.match %r{^(test|spec|features)/}
21
- end
22
-
23
- spec.metadata["rubygems_mfa_required"] = "true"
24
-
25
- spec.bindir = "exe"
26
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
- spec.require_paths = ["lib"]
28
-
29
- spec.required_ruby_version = ">= 2.7"
30
-
31
- spec.add_runtime_dependency "concurrent-ruby"
32
- spec.add_runtime_dependency "redis-prescription", "~> 2.2"
33
- spec.add_runtime_dependency "sidekiq", "~> 6.4"
34
-
35
- spec.add_development_dependency "bundler", ">= 2.0"
36
- end
File without changes