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.
- checksums.yaml +4 -4
- data/app/models/logging_worker/job_run.rb +1 -1
- data/db/migrate/20141215211104_create_job_runs.rb +1 -1
- data/lib/logging_worker/version.rb +1 -1
- data/spec/dummy/app/models/application_record.rb +3 -0
- data/spec/dummy/db/schema.rb +8 -9
- data/spec/dummy/log/development.log +19 -0
- data/spec/dummy/log/test.log +6626 -0
- data/spec/spec_helper.rb +0 -1
- data/spec/worker_spec.rb +2 -2
- metadata +50 -45
data/spec/spec_helper.rb
CHANGED
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(
|
45
|
-
expect(worker.job_run.arguments).to eq([
|
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.
|
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:
|
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: '
|
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: '
|
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
|
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
|
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: '
|
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: '
|
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: '
|
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: '
|
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.
|
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/
|
169
|
-
- spec/
|
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/
|
186
|
-
- spec/dummy/config/
|
187
|
-
- spec/dummy/config/
|
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/
|
180
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
190
181
|
- spec/dummy/config/initializers/inflections.rb
|
191
|
-
- spec/dummy/config/initializers/
|
182
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
192
183
|
- spec/dummy/config/initializers/session_store.rb
|
193
|
-
- spec/dummy/config/initializers/
|
194
|
-
- spec/dummy/config/
|
195
|
-
- spec/dummy/config/
|
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/
|
198
|
-
- spec/dummy/
|
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/
|
202
|
-
- spec/dummy/
|
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/
|
206
|
-
- spec/dummy/Rakefile
|
207
|
-
- spec/worker_spec.rb
|
208
|
-
has_rdoc:
|
213
|
+
- spec/dummy/public/favicon.ico
|