worker-glass 0.2.2 → 0.2.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: fcc6c104b3855647754341c7ff1fe674685f42f1
4
- data.tar.gz: 89fb4a1e82eae400a6b860f58eb1f0fee9f3c581
3
+ metadata.gz: 32e257ced6541016bfb2bd51880a321346478108
4
+ data.tar.gz: 98e54a43945d983553bad25f079115809f55ad3f
5
5
  SHA512:
6
- metadata.gz: 6303586d35ab1d3222fd08f47cb056d2f64f4f4e0ddc5086780010b3da600b53b186f002b37018770a1252bbcf423e4fce2c2fadc617fadb399f534ffd2a1dec
7
- data.tar.gz: 225389487ba4e39e696e853989f9ac165888ac75b32e9099bdbdfb2b3d4b48a0378387d66827f5de604b20346188f4521b4007cfaebd3bd815f24fab26777fc8
6
+ metadata.gz: 79523e14fca4fb07f97a258b8a88c9d4c23c0702110baf2fc99c87c5a6d5700b9b8d243e24a058287b395970a9801058b9d749e802e3df2bc3891266146eeb1d
7
+ data.tar.gz: 81b8b48c7807491c76a3fa42700fe9063c81ce7c75c387634f4b3dceb2f0eb4749a853ff1f858e734f660da97849e4f763638f55cd34cbde562c3a94da7ece64
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --require spec_helper
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.0
1
+ 2.4.1
data/.travis.yml CHANGED
@@ -1,7 +1,11 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.7
4
3
  - 2.2.3
5
4
  - 2.3.0
5
+ - 2.3.1
6
+ - 2.3.2
7
+ - 2.3.3
8
+ - 2.4.0
9
+ - 2.4.1
6
10
  script:
7
11
  - bundle exec rake
data/CHANGELOG.md CHANGED
@@ -1,7 +1,18 @@
1
1
  # WorkerGlass changelog
2
2
 
3
+ ## Unreleased
4
+ - Gem bump
5
+ - Ruby 2.4.1 as default
6
+ - Coditsu quality hookup
7
+ - Readme updates
8
+
3
9
  ## 0.2.2
4
- - Gem dump
10
+ - Gem dump x2
11
+ - Ruby 2.1.* support dropped
12
+ - ~~Ruby 2.3.3 as default~~
13
+ - Ruby 2.4.0 as default
14
+ - Ruby 2.2 as minimal version
15
+ - Added .rspec for default spec helper require
5
16
 
6
17
  ## 0.2.0
7
18
  - Renamed from SidekiqGlass to WorkerGlass because if now does not require Sidekiq anymore to work. It will provide additional worker functionalities to any type of backend processing layer as long as it has a #perform method.
data/Gemfile CHANGED
@@ -1,7 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  gemspec
4
6
 
5
7
  group :development, :test do
6
- gem 'polishgeeks-dev-tools'
8
+ gem 'rspec'
9
+ gem 'simplecov'
10
+ gem 'rake'
7
11
  end
data/Gemfile.lock CHANGED
@@ -1,100 +1,31 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- worker-glass (0.2.2)
4
+ worker-glass (0.2.3)
5
5
  activesupport
6
6
  null-logger
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (5.0.0)
11
+ activesupport (5.1.0)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (~> 0.7)
14
14
  minitest (~> 5.1)
15
15
  tzinfo (~> 1.1)
16
- addressable (2.4.0)
17
- ast (2.3.0)
18
- axiom-types (0.1.1)
19
- descendants_tracker (~> 0.0.4)
20
- ice_nine (~> 0.11.0)
21
- thread_safe (~> 0.3, >= 0.3.1)
22
- brakeman (3.3.3)
23
- bundler-audit (0.5.0)
24
- bundler (~> 1.2)
25
- thor (~> 0.18)
26
- codeclimate-engine-rb (0.3.1)
27
- virtus (~> 1.0)
28
- coderay (1.1.1)
29
- coercible (1.0.0)
30
- descendants_tracker (~> 0.0.1)
31
- colorize (0.8.1)
32
- concurrent-ruby (1.0.2)
33
- descendants_tracker (0.0.4)
34
- thread_safe (~> 0.3, >= 0.3.1)
35
- diff-lcs (1.2.5)
16
+ concurrent-ruby (1.0.5)
17
+ diff-lcs (1.3)
36
18
  docile (1.1.5)
37
- equalizer (0.0.11)
38
- erubis (2.7.0)
39
- faker (1.6.6)
40
- i18n (~> 0.5)
41
- flay (2.8.0)
42
- erubis (~> 2.7.0)
43
- path_expander (~> 1.0)
44
- ruby_parser (~> 3.0)
45
- sexp_processor (~> 4.0)
46
- flog (4.4.0)
47
- path_expander (~> 1.0)
48
- ruby_parser (~> 3.1, > 3.1.0)
49
- sexp_processor (~> 4.4)
50
- haml (4.0.7)
51
- tilt
52
- haml_lint (0.18.1)
53
- haml (~> 4.0)
54
- rake (>= 10, < 12)
55
- rubocop (>= 0.36.0)
56
- sysexits (~> 1.1)
57
- i18n (0.7.0)
58
- ice_nine (0.11.2)
59
- json (2.0.2)
60
- launchy (2.4.3)
61
- addressable (~> 2.3)
62
- method_source (0.8.2)
63
- minitest (5.9.0)
64
- null-logger (0.1.1)
65
- parser (2.3.1.2)
66
- ast (~> 2.2)
67
- path_expander (1.0.0)
68
- polishgeeks-dev-tools (1.3.2)
69
- brakeman
70
- bundler-audit
71
- faker
72
- haml_lint
73
- pry
74
- rspec
75
- rubocop
76
- rubocop-rspec
77
- rubycritic
78
- shoulda
79
- simplecov
80
- timecop
81
- yard
82
- powerpack (0.1.1)
83
- pry (0.10.4)
84
- coderay (~> 1.1.0)
85
- method_source (~> 0.8.1)
86
- slop (~> 3.4)
87
- rainbow (2.1.0)
88
- rake (11.2.2)
89
- reek (4.1.0)
90
- codeclimate-engine-rb (~> 0.3.1)
91
- parser (~> 2.3.1, >= 2.3.1.2)
92
- rainbow (~> 2.0)
19
+ i18n (0.8.1)
20
+ json (2.1.0)
21
+ minitest (5.10.1)
22
+ null-logger (0.1.3)
23
+ rake (12.0.0)
93
24
  rspec (3.5.0)
94
25
  rspec-core (~> 3.5.0)
95
26
  rspec-expectations (~> 3.5.0)
96
27
  rspec-mocks (~> 3.5.0)
97
- rspec-core (3.5.1)
28
+ rspec-core (3.5.4)
98
29
  rspec-support (~> 3.5.0)
99
30
  rspec-expectations (3.5.0)
100
31
  diff-lcs (>= 1.2.0, < 2.0)
@@ -103,60 +34,23 @@ GEM
103
34
  diff-lcs (>= 1.2.0, < 2.0)
104
35
  rspec-support (~> 3.5.0)
105
36
  rspec-support (3.5.0)
106
- rubocop (0.42.0)
107
- parser (>= 2.3.1.1, < 3.0)
108
- powerpack (~> 0.1)
109
- rainbow (>= 1.99.1, < 3.0)
110
- ruby-progressbar (~> 1.7)
111
- unicode-display_width (~> 1.0, >= 1.0.1)
112
- rubocop-rspec (1.5.1)
113
- rubocop (>= 0.41.2)
114
- ruby-progressbar (1.8.1)
115
- ruby_parser (3.8.2)
116
- sexp_processor (~> 4.1)
117
- rubycritic (2.9.2)
118
- colorize
119
- flay (= 2.8.0)
120
- flog (= 4.4.0)
121
- launchy (= 2.4.3)
122
- parser (= 2.3.1.2)
123
- reek (= 4.1.0)
124
- ruby_parser (~> 3.8)
125
- virtus (~> 1.0)
126
- sexp_processor (4.7.0)
127
- shoulda (3.5.0)
128
- shoulda-context (~> 1.0, >= 1.0.1)
129
- shoulda-matchers (>= 1.4.1, < 3.0)
130
- shoulda-context (1.2.1)
131
- shoulda-matchers (2.8.0)
132
- activesupport (>= 3.0.0)
133
- simplecov (0.12.0)
37
+ simplecov (0.14.1)
134
38
  docile (~> 1.1.0)
135
39
  json (>= 1.8, < 3)
136
40
  simplecov-html (~> 0.10.0)
137
41
  simplecov-html (0.10.0)
138
- slop (3.6.0)
139
- sysexits (1.2.0)
140
- thor (0.19.1)
141
- thread_safe (0.3.5)
142
- tilt (2.0.5)
143
- timecop (0.8.1)
144
- tzinfo (1.2.2)
42
+ thread_safe (0.3.6)
43
+ tzinfo (1.2.3)
145
44
  thread_safe (~> 0.1)
146
- unicode-display_width (1.1.0)
147
- virtus (1.0.5)
148
- axiom-types (~> 0.1)
149
- coercible (~> 1.0)
150
- descendants_tracker (~> 0.0, >= 0.0.3)
151
- equalizer (~> 0.0, >= 0.0.9)
152
- yard (0.9.5)
153
45
 
154
46
  PLATFORMS
155
47
  ruby
156
48
 
157
49
  DEPENDENCIES
158
- polishgeeks-dev-tools
50
+ rake
51
+ rspec
52
+ simplecov
159
53
  worker-glass!
160
54
 
161
55
  BUNDLED WITH
162
- 1.11.2
56
+ 1.14.6
data/README.md CHANGED
@@ -72,6 +72,7 @@ Worker3.perform_async(example1, example2, example3)
72
72
 
73
73
  * [Sidekiq](http://sidekiq.org/)
74
74
  * [Karafka framework](https://github.com/karafka/karafka)
75
+ * [Capistrano Karafka](https://github.com/karafka/capistrano-karafka)
75
76
  * [Waterdrop](https://github.com/karafka/waterdrop)
76
77
  * [Worker Glass](https://github.com/karafka/worker-glass)
77
78
  * [Envlogic](https://github.com/karafka/envlogic)
@@ -86,7 +87,11 @@ Make your feature addition or bug fix.
86
87
  Add tests for it. This is important so I don't break it in a future version unintentionally.
87
88
  Commit, do not mess with Rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull). Send me a pull request. Bonus points for topic branches.
88
89
 
89
- Each pull request must pass our quality requirements. To check if everything is as it should be, we use [PolishGeeks Dev Tools](https://github.com/polishgeeks/polishgeeks-dev-tools) that combine multiple linters and code analyzers. Please run:
90
+ [![coditsu](https://coditsu.io/assets/quality_bar.png)](https://coditsu.io)
91
+
92
+ Each pull request must pass our quality requirements. To check if everything is as it should be, we use [Coditsu](https://coditsu.io) that combinse multiple linters and code analyzers. Unfortunately, for now it is invite-only based, so just ping us and we will give you access to the quality results.
93
+
94
+ Please run:
90
95
 
91
96
  ```bash
92
97
  bundle exec rake
data/Rakefile CHANGED
@@ -1,18 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler'
2
4
  require 'bundler/gem_tasks'
3
5
  require 'rake'
4
- require 'polishgeeks-dev-tools'
5
-
6
- PolishGeeks::DevTools.setup do |config|
7
- config.brakeman = false
8
- config.haml_lint = false
9
- end
6
+ require 'rspec/core/rake_task'
10
7
 
11
- desc 'Self check using polishgeeks-dev-tools'
12
- task :check do
13
- PolishGeeks::DevTools::Runner.new.execute(
14
- PolishGeeks::DevTools::Logger.new
15
- )
16
- end
8
+ RSpec::Core::RakeTask.new(:spec)
17
9
 
18
- task default: :check
10
+ task default: :spec
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module WorkerGlass
2
4
  # Module enclosing all the errors that might be raised from this library
3
5
  module Errors
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module WorkerGlass
2
4
  # This module provides a reentrancy functionality for background processing engine
3
5
  # @note If will reraise a given error - it does not silence them
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module WorkerGlass
2
4
  # This module provides additional timeout functionality for background processing engine
3
5
  # @example Example usage with Sidekiq - will fail with timeout error after 10 seconds
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  # Main wrapper
3
4
  module WorkerGlass
4
5
  # Current version of WorkerGlass gem
5
- VERSION = '0.2.2'
6
+ VERSION = '0.2.3'
6
7
  end
data/lib/worker_glass.rb CHANGED
@@ -1,16 +1,19 @@
1
- %w(
1
+ # frozen_string_literal: true
2
+
3
+ %w[
2
4
  null_logger
5
+ timeout
3
6
  active_support/core_ext/class/attribute
4
- ).each { |lib| require lib }
7
+ ].each { |lib| require lib }
5
8
 
6
9
  base_path = File.dirname(__FILE__) + '/worker_glass'
7
10
 
8
- %w(
11
+ %w[
9
12
  version
10
13
  errors
11
14
  timeout
12
15
  reentrancy
13
- ).each { |lib| require File.join(base_path, lib) }
16
+ ].each { |lib| require File.join(base_path, lib) }
14
17
 
15
18
  # Background worker wrappers that provides optional timeout and after failure (reentrancy)
16
19
  module WorkerGlass
data/worker-glass.gemspec CHANGED
@@ -1,23 +1,26 @@
1
+ # frozen_string_literal: true
2
+
1
3
  lib = File.expand_path('../lib', __FILE__)
2
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
5
 
4
6
  require 'worker_glass/version'
5
7
 
6
8
  Gem::Specification.new do |spec|
7
- spec.name = "worker-glass"
9
+ spec.name = 'worker-glass'
8
10
  spec.version = WorkerGlass::VERSION
9
11
  spec.platform = Gem::Platform::RUBY
10
12
  spec.authors = ['Maciej Mensfeld', 'Pavlo Vavruk']
11
- spec.email = %w( maciej@mensfeld.pl pavlo.vavruk@gmail.com )
13
+ spec.email = %w[maciej@coditsu.io pavlo.vavruk@gmail.com]
12
14
  spec.summary = 'Timeout and Reentrancy for your background processing workers!'
13
- spec.description = 'Background worker wrappers that provides optional timeout and after failure (reentrancy)'
15
+ spec.description = 'Background worker wrappers that provides optional timeout and reentrancy'
14
16
  spec.homepage = 'https://github.com/karafka/worker-glass'
15
17
  spec.license = 'MIT'
18
+ spec.required_ruby_version = '>= 2.2.0'
16
19
 
17
20
  spec.add_dependency 'null-logger'
18
21
  spec.add_dependency 'activesupport'
19
22
 
20
23
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
21
24
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
22
- spec.require_paths = %w( lib )
25
+ spec.require_paths = %w[lib]
23
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: worker-glass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-07-28 00:00:00.000000000 Z
12
+ date: 2017-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: null-logger
@@ -39,16 +39,16 @@ dependencies:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
- description: Background worker wrappers that provides optional timeout and after failure
43
- (reentrancy)
42
+ description: Background worker wrappers that provides optional timeout and reentrancy
44
43
  email:
45
- - maciej@mensfeld.pl
44
+ - maciej@coditsu.io
46
45
  - pavlo.vavruk@gmail.com
47
46
  executables: []
48
47
  extensions: []
49
48
  extra_rdoc_files: []
50
49
  files:
51
50
  - ".gitignore"
51
+ - ".rspec"
52
52
  - ".ruby-gemset"
53
53
  - ".ruby-version"
54
54
  - ".travis.yml"
@@ -76,7 +76,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
76
76
  requirements:
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
- version: '0'
79
+ version: 2.2.0
80
80
  required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - ">="
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  requirements: []
86
86
  rubyforge_project:
87
- rubygems_version: 2.5.1
87
+ rubygems_version: 2.6.11
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Timeout and Reentrancy for your background processing workers!