sidekiq_metered_exceptions 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9a51b45cb8ba0baa5bd485f34f0daf94583f87e6
4
+ data.tar.gz: 3eca51f15da353bb318e43f8ec911891d206e37d
5
+ SHA512:
6
+ metadata.gz: a127211e386065ed96a84eccb86ecd55031f1e1f6c356e5576e9721b4daa325d9d2de62fcce2a47b2278f547f995cda0d4ba4176296a8d908e1c412e69933c0f
7
+ data.tar.gz: 473c12878270eafa2471c3cee7bd0bbc6f6fcd598a176e244b9a5ef20104529556b48b39a38bc27e9dbe195f549fac1ab8ccb6e279871f241d65471789c4040d
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ sidekiq_metered_exceptions
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.3.3
data/Gemfile CHANGED
@@ -8,7 +8,8 @@ gem 'sidekiq'
8
8
  # Include everything needed to run rake, tests, features, etc.
9
9
  group :development do
10
10
  gem "minitest", ">= 0"
11
- gem "rdoc", "~> 3.12"
12
- gem "bundler", "~> 1.2.3"
13
- gem "jeweler", "~> 1.8.4"
11
+ gem "rdoc"
12
+ gem "bundler"
13
+ gem "jeweler"
14
+
14
15
  end
data/Gemfile.lock CHANGED
@@ -1,37 +1,80 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ addressable (2.5.0)
5
+ public_suffix (~> 2.0, >= 2.0.2)
6
+ builder (3.2.3)
4
7
  celluloid (0.14.1)
5
8
  timers (>= 1.0.0)
6
9
  connection_pool (1.1.0)
7
- git (1.2.5)
8
- jeweler (1.8.4)
9
- bundler (~> 1.0)
10
+ descendants_tracker (0.0.4)
11
+ thread_safe (~> 0.3, >= 0.3.1)
12
+ faraday (0.9.2)
13
+ multipart-post (>= 1.2, < 3)
14
+ git (1.3.0)
15
+ github_api (0.11.3)
16
+ addressable (~> 2.3)
17
+ descendants_tracker (~> 0.0.1)
18
+ faraday (~> 0.8, < 0.10)
19
+ hashie (>= 1.2)
20
+ multi_json (>= 1.7.5, < 2.0)
21
+ nokogiri (~> 1.6.0)
22
+ oauth2
23
+ hashie (3.4.6)
24
+ highline (1.7.8)
25
+ jeweler (2.3.2)
26
+ builder
27
+ bundler (>= 1.0)
10
28
  git (>= 1.2.5)
29
+ github_api (~> 0.11.0)
30
+ highline (>= 1.6.15)
31
+ nokogiri (>= 1.5.10)
32
+ psych (~> 2.2)
11
33
  rake
12
34
  rdoc
13
- json (1.8.0)
35
+ semver2
36
+ json (2.0.3)
37
+ jwt (1.5.6)
38
+ mini_portile2 (2.1.0)
14
39
  minitest (5.0.4)
15
- rake (10.0.4)
16
- rdoc (3.12.2)
17
- json (~> 1.4)
40
+ multi_json (1.12.1)
41
+ multi_xml (0.6.0)
42
+ multipart-post (2.0.0)
43
+ nokogiri (1.6.8.1)
44
+ mini_portile2 (~> 2.1.0)
45
+ oauth2 (1.3.0)
46
+ faraday (>= 0.8, < 0.11)
47
+ jwt (~> 1.0)
48
+ multi_json (~> 1.3)
49
+ multi_xml (~> 0.5)
50
+ rack (>= 1.2, < 3)
51
+ psych (2.2.2)
52
+ public_suffix (2.0.5)
53
+ rack (2.0.1)
54
+ rake (12.0.0)
55
+ rdoc (5.0.0)
18
56
  redis (3.0.4)
19
57
  redis-namespace (1.3.0)
20
58
  redis (~> 3.0.0)
59
+ semver2 (3.4.2)
21
60
  sidekiq (2.12.4)
22
61
  celluloid (>= 0.14.1)
23
62
  connection_pool (>= 1.0.0)
24
63
  json
25
64
  redis (>= 3.0)
26
65
  redis-namespace
66
+ thread_safe (0.3.5)
27
67
  timers (1.1.0)
28
68
 
29
69
  PLATFORMS
30
70
  ruby
31
71
 
32
72
  DEPENDENCIES
33
- bundler (~> 1.2.3)
34
- jeweler (~> 1.8.4)
73
+ bundler
74
+ jeweler
35
75
  minitest
36
- rdoc (~> 3.12)
76
+ rdoc
37
77
  sidekiq
78
+
79
+ BUNDLED WITH
80
+ 1.13.7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/lib/middleware.rb CHANGED
@@ -4,10 +4,10 @@ module SidekiqMeteredExceptions
4
4
  def call(worker, job, queue)
5
5
  begin
6
6
  yield
7
- rescue Exception => ex
7
+ rescue StandardError => ex
8
8
  # do not notify on the first occurrence of an exception
9
9
  raise(ex) if job['retry_count'] == nil || job['retry_count'] > 0
10
10
  end
11
11
  end
12
12
  end
13
- end
13
+ end
@@ -1,8 +1 @@
1
- require 'sidekiq'
2
1
  require 'middleware'
3
-
4
- ::Sidekiq.configure_server do |config|
5
- config.server_middleware do |chain|
6
- chain.add ::SidekiqMeteredExceptions::Middleware
7
- end
8
- end
@@ -2,23 +2,26 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: sidekiq_metered_exceptions 0.1.1 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
- s.name = "sidekiq_metered_exceptions"
8
- s.version = "0.1.0"
8
+ s.name = "sidekiq_metered_exceptions".freeze
9
+ s.version = "0.1.1"
9
10
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Nathan Woodhull"]
12
- s.date = "2013-06-18"
13
- s.description = "Some exceptions are transient, so notifying an admin is not useful."
14
- s.email = "woodhull@gmail.com"
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["Nathan Woodhull".freeze]
14
+ s.date = "2017-01-18"
15
+ s.description = "Some exceptions are transient, so notifying an admin is not useful.".freeze
16
+ s.email = "woodhull@gmail.com".freeze
15
17
  s.extra_rdoc_files = [
16
18
  "LICENSE.txt",
17
19
  "README.rdoc"
18
20
  ]
19
21
  s.files = [
20
22
  ".document",
21
- ".rvmrc",
23
+ ".ruby-gemset",
24
+ ".ruby-version",
22
25
  "Gemfile",
23
26
  "Gemfile.lock",
24
27
  "LICENSE.txt",
@@ -31,34 +34,33 @@ Gem::Specification.new do |s|
31
34
  "test/helper.rb",
32
35
  "test/test_sidekiq_metered_exceptions.rb"
33
36
  ]
34
- s.homepage = "http://github.com/woodhull/sidekiq_metered_exceptions"
35
- s.licenses = ["MIT"]
36
- s.require_paths = ["lib"]
37
- s.rubygems_version = "1.8.24"
38
- s.summary = "Only propagate sidekiq exceptions that have already been retried once."
37
+ s.homepage = "http://github.com/woodhull/sidekiq_metered_exceptions".freeze
38
+ s.licenses = ["MIT".freeze]
39
+ s.rubygems_version = "2.6.8".freeze
40
+ s.summary = "Only propagate sidekiq exceptions that have already been retried once.".freeze
39
41
 
40
42
  if s.respond_to? :specification_version then
41
- s.specification_version = 3
43
+ s.specification_version = 4
42
44
 
43
45
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
44
- s.add_runtime_dependency(%q<sidekiq>, [">= 0"])
45
- s.add_development_dependency(%q<minitest>, [">= 0"])
46
- s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
47
- s.add_development_dependency(%q<bundler>, ["~> 1.2.3"])
48
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
46
+ s.add_runtime_dependency(%q<sidekiq>.freeze, [">= 0"])
47
+ s.add_development_dependency(%q<minitest>.freeze, [">= 0"])
48
+ s.add_development_dependency(%q<rdoc>.freeze, [">= 0"])
49
+ s.add_development_dependency(%q<bundler>.freeze, [">= 0"])
50
+ s.add_development_dependency(%q<jeweler>.freeze, [">= 0"])
49
51
  else
50
- s.add_dependency(%q<sidekiq>, [">= 0"])
51
- s.add_dependency(%q<minitest>, [">= 0"])
52
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
53
- s.add_dependency(%q<bundler>, ["~> 1.2.3"])
54
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
52
+ s.add_dependency(%q<sidekiq>.freeze, [">= 0"])
53
+ s.add_dependency(%q<minitest>.freeze, [">= 0"])
54
+ s.add_dependency(%q<rdoc>.freeze, [">= 0"])
55
+ s.add_dependency(%q<bundler>.freeze, [">= 0"])
56
+ s.add_dependency(%q<jeweler>.freeze, [">= 0"])
55
57
  end
56
58
  else
57
- s.add_dependency(%q<sidekiq>, [">= 0"])
58
- s.add_dependency(%q<minitest>, [">= 0"])
59
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
60
- s.add_dependency(%q<bundler>, ["~> 1.2.3"])
61
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
59
+ s.add_dependency(%q<sidekiq>.freeze, [">= 0"])
60
+ s.add_dependency(%q<minitest>.freeze, [">= 0"])
61
+ s.add_dependency(%q<rdoc>.freeze, [">= 0"])
62
+ s.add_dependency(%q<bundler>.freeze, [">= 0"])
63
+ s.add_dependency(%q<jeweler>.freeze, [">= 0"])
62
64
  end
63
65
  end
64
66
 
metadata CHANGED
@@ -1,96 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq_metered_exceptions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
4
+ version: 0.1.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Nathan Woodhull
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-18 00:00:00.000000000 Z
11
+ date: 2017-01-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: sidekiq
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: minitest
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rdoc
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
- version: '3.12'
47
+ version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
- version: '3.12'
54
+ version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: bundler
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - ">="
68
60
  - !ruby/object:Gem::Version
69
- version: 1.2.3
61
+ version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
- version: 1.2.3
68
+ version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: jeweler
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ~>
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
- version: 1.8.4
75
+ version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ~>
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
- version: 1.8.4
82
+ version: '0'
94
83
  description: Some exceptions are transient, so notifying an admin is not useful.
95
84
  email: woodhull@gmail.com
96
85
  executables: []
@@ -99,8 +88,9 @@ extra_rdoc_files:
99
88
  - LICENSE.txt
100
89
  - README.rdoc
101
90
  files:
102
- - .document
103
- - .rvmrc
91
+ - ".document"
92
+ - ".ruby-gemset"
93
+ - ".ruby-version"
104
94
  - Gemfile
105
95
  - Gemfile.lock
106
96
  - LICENSE.txt
@@ -115,29 +105,25 @@ files:
115
105
  homepage: http://github.com/woodhull/sidekiq_metered_exceptions
116
106
  licenses:
117
107
  - MIT
108
+ metadata: {}
118
109
  post_install_message:
119
110
  rdoc_options: []
120
111
  require_paths:
121
112
  - lib
122
113
  required_ruby_version: !ruby/object:Gem::Requirement
123
- none: false
124
114
  requirements:
125
- - - ! '>='
115
+ - - ">="
126
116
  - !ruby/object:Gem::Version
127
117
  version: '0'
128
- segments:
129
- - 0
130
- hash: -37007965804888072
131
118
  required_rubygems_version: !ruby/object:Gem::Requirement
132
- none: false
133
119
  requirements:
134
- - - ! '>='
120
+ - - ">="
135
121
  - !ruby/object:Gem::Version
136
122
  version: '0'
137
123
  requirements: []
138
124
  rubyforge_project:
139
- rubygems_version: 1.8.24
125
+ rubygems_version: 2.6.8
140
126
  signing_key:
141
- specification_version: 3
127
+ specification_version: 4
142
128
  summary: Only propagate sidekiq exceptions that have already been retried once.
143
129
  test_files: []
data/.rvmrc DELETED
@@ -1,8 +0,0 @@
1
- rvm_install_on_use_flag=1
2
- rvm use --create ruby-1.9.3-p286-perf@sidekiq_metered_exceptions
3
-
4
- export RUBY_HEAP_MIN_SLOTS=1000000
5
- export RUBY_HEAP_SLOTS_INCREMENT=1000000
6
- export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
7
- export RUBY_GC_MALLOC_LIMIT=1000000000
8
- export RUBY_HEAP_FREE_MIN=500000