logging_worker 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -2,7 +2,6 @@
2
2
  ENV["RAILS_ENV"] ||= 'test'
3
3
  require File.expand_path("../dummy/config/environment.rb", __FILE__)
4
4
  require 'rspec/rails'
5
- require 'rspec/autorun'
6
5
  require 'pry'
7
6
 
8
7
  # Checks for pending migrations before tests are run.
data/spec/worker_spec.rb CHANGED
@@ -41,8 +41,8 @@ describe LoggingWorker::Worker do
41
41
  end
42
42
 
43
43
  specify "saving the arguments" do
44
- worker.perform(true)
45
- expect(worker.job_run.arguments).to eq([true])
44
+ worker.perform("arg")
45
+ expect(worker.job_run.arguments).to eq(["arg"])
46
46
  end
47
47
 
48
48
  specify "saving the worker class" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logging_worker
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
  - Eric Oestrich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-27 00:00:00.000000000 Z
11
+ date: 2017-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.1'
19
+ version: '5.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.1'
26
+ version: '5.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pg
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0.17'
33
+ version: '0'
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: '0.17'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.14'
47
+ version: '3.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.14'
54
+ version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sidekiq
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.3'
61
+ version: '5.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.3'
68
+ version: '5.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: pry
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -102,6 +102,7 @@ files:
102
102
  - spec/dummy/app/assets/stylesheets/application.css
103
103
  - spec/dummy/app/controllers/application_controller.rb
104
104
  - spec/dummy/app/helpers/application_helper.rb
105
+ - spec/dummy/app/models/application_record.rb
105
106
  - spec/dummy/app/models/job_run.rb
106
107
  - spec/dummy/app/views/layouts/application.html.erb
107
108
  - spec/dummy/app/workers/blank_worker.rb
@@ -131,6 +132,8 @@ files:
131
132
  - spec/dummy/config/routes.rb
132
133
  - spec/dummy/config/secrets.yml
133
134
  - spec/dummy/db/schema.rb
135
+ - spec/dummy/log/development.log
136
+ - spec/dummy/log/test.log
134
137
  - spec/dummy/public/404.html
135
138
  - spec/dummy/public/422.html
136
139
  - spec/dummy/public/500.html
@@ -158,51 +161,53 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
161
  version: '0'
159
162
  requirements: []
160
163
  rubyforge_project:
161
- rubygems_version: 2.2.2
164
+ rubygems_version: 2.5.1
162
165
  signing_key:
163
166
  specification_version: 4
164
167
  summary: Save background worker runs
165
168
  test_files:
166
- - spec/models/job_run_spec.rb
167
169
  - spec/spec_helper.rb
168
- - spec/dummy/README.rdoc
169
- - spec/dummy/db/schema.rb
170
- - spec/dummy/app/models/job_run.rb
171
- - spec/dummy/app/helpers/application_helper.rb
172
- - spec/dummy/app/views/layouts/application.html.erb
173
- - spec/dummy/app/assets/javascripts/application.js
174
- - spec/dummy/app/assets/stylesheets/application.css
175
- - spec/dummy/app/workers/new_job_run_worker.rb
176
- - spec/dummy/app/workers/error_worker.rb
177
- - spec/dummy/app/workers/blank_worker.rb
178
- - spec/dummy/app/workers/log_worker.rb
179
- - spec/dummy/app/controllers/application_controller.rb
180
- - spec/dummy/config/routes.rb
181
- - spec/dummy/config/environments/test.rb
182
- - spec/dummy/config/environments/production.rb
170
+ - spec/worker_spec.rb
171
+ - spec/models/job_run_spec.rb
183
172
  - spec/dummy/config/environments/development.rb
173
+ - spec/dummy/config/environments/production.rb
174
+ - spec/dummy/config/environments/test.rb
184
175
  - spec/dummy/config/boot.rb
185
- - spec/dummy/config/database.yml
186
- - spec/dummy/config/initializers/wrap_parameters.rb
187
- - spec/dummy/config/initializers/cookies_serializer.rb
176
+ - spec/dummy/config/secrets.yml
177
+ - spec/dummy/config/environment.rb
178
+ - spec/dummy/config/locales/en.yml
188
179
  - spec/dummy/config/initializers/assets.rb
189
- - spec/dummy/config/initializers/filter_parameter_logging.rb
180
+ - spec/dummy/config/initializers/backtrace_silencers.rb
190
181
  - spec/dummy/config/initializers/inflections.rb
191
- - spec/dummy/config/initializers/mime_types.rb
182
+ - spec/dummy/config/initializers/wrap_parameters.rb
192
183
  - spec/dummy/config/initializers/session_store.rb
193
- - spec/dummy/config/initializers/backtrace_silencers.rb
194
- - spec/dummy/config/environment.rb
195
- - spec/dummy/config/locales/en.yml
184
+ - spec/dummy/config/initializers/mime_types.rb
185
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
186
+ - spec/dummy/config/initializers/cookies_serializer.rb
187
+ - spec/dummy/config/routes.rb
196
188
  - spec/dummy/config/application.rb
197
- - spec/dummy/config/secrets.yml
198
- - spec/dummy/config.ru
189
+ - spec/dummy/config/database.yml
190
+ - spec/dummy/app/views/layouts/application.html.erb
191
+ - spec/dummy/app/controllers/application_controller.rb
192
+ - spec/dummy/app/workers/blank_worker.rb
193
+ - spec/dummy/app/workers/error_worker.rb
194
+ - spec/dummy/app/workers/new_job_run_worker.rb
195
+ - spec/dummy/app/workers/log_worker.rb
196
+ - spec/dummy/app/models/application_record.rb
197
+ - spec/dummy/app/models/job_run.rb
198
+ - spec/dummy/app/helpers/application_helper.rb
199
+ - spec/dummy/app/assets/javascripts/application.js
200
+ - spec/dummy/app/assets/stylesheets/application.css
201
+ - spec/dummy/bin/rails
199
202
  - spec/dummy/bin/rake
200
203
  - spec/dummy/bin/bundle
201
- - spec/dummy/bin/rails
202
- - spec/dummy/public/favicon.ico
204
+ - spec/dummy/db/schema.rb
205
+ - spec/dummy/config.ru
206
+ - spec/dummy/README.rdoc
207
+ - spec/dummy/Rakefile
208
+ - spec/dummy/log/development.log
209
+ - spec/dummy/log/test.log
210
+ - spec/dummy/public/422.html
203
211
  - spec/dummy/public/500.html
204
212
  - spec/dummy/public/404.html
205
- - spec/dummy/public/422.html
206
- - spec/dummy/Rakefile
207
- - spec/worker_spec.rb
208
- has_rdoc:
213
+ - spec/dummy/public/favicon.ico