job_notifier 1.2.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.circleci/config.yml +104 -0
- data/.circleci/setup-rubygems.sh +3 -0
- data/.rubocop.yml +76 -605
- data/.ruby-version +1 -1
- data/CHANGELOG.md +31 -2
- data/Gemfile.lock +191 -127
- data/README.md +18 -6
- data/app/assets/javascripts/job_notifier/notifier.js +4 -0
- data/app/models/job_notifier/job.rb +3 -2
- data/job_notifier.gemspec +9 -5
- data/lib/generators/job_notifier/install/templates/initializer.rb +4 -0
- data/lib/job_notifier.rb +6 -1
- data/lib/job_notifier/engine.rb +10 -4
- data/lib/job_notifier/error.rb +5 -5
- data/lib/job_notifier/logger.rb +1 -0
- data/lib/job_notifier/notifier.rb +6 -6
- data/lib/job_notifier/version.rb +1 -1
- data/spec/dummy/Rakefile +1 -1
- data/spec/dummy/app/assets/config/manifest.js +3 -0
- data/spec/dummy/app/assets/stylesheets/application.css +3 -3
- data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
- data/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/spec/dummy/app/javascript/packs/application.js +15 -0
- data/spec/dummy/app/jobs/application_job.rb +7 -0
- data/spec/dummy/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/app/models/application_record.rb +3 -0
- data/spec/dummy/app/views/layouts/application.html.erb +10 -9
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/rails +3 -3
- data/spec/dummy/bin/rake +2 -2
- data/spec/dummy/bin/setup +18 -14
- data/spec/dummy/config.ru +3 -1
- data/spec/dummy/config/application.rb +12 -21
- data/spec/dummy/config/boot.rb +3 -3
- data/spec/dummy/config/cable.yml +10 -0
- data/spec/dummy/config/database.yml +2 -2
- data/spec/dummy/config/environment.rb +1 -1
- data/spec/dummy/config/environments/development.rb +49 -14
- data/spec/dummy/config/environments/production.rb +63 -22
- data/spec/dummy/config/environments/test.rb +29 -12
- data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy/config/initializers/assets.rb +4 -3
- data/spec/dummy/config/initializers/backtrace_silencers.rb +4 -3
- data/spec/dummy/config/initializers/content_security_policy.rb +28 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +2 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +3 -1
- data/spec/dummy/config/initializers/job_notifier.rb +4 -0
- data/spec/dummy/config/initializers/permissions_policy.rb +11 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +2 -2
- data/spec/dummy/config/locales/en.yml +11 -1
- data/spec/dummy/config/puma.rb +43 -0
- data/spec/dummy/config/routes.rb +0 -1
- data/spec/dummy/config/storage.yml +34 -0
- data/spec/dummy/public/404.html +6 -6
- data/spec/dummy/public/422.html +6 -6
- data/spec/dummy/public/500.html +6 -6
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/factories/job_notifier_jobs.rb +4 -4
- data/spec/lib/job_notifier/notifier_spec.rb +24 -7
- data/spec/rails_helper.rb +2 -2
- data/spec/spec_helper.rb +2 -0
- metadata +98 -26
- data/.travis.yml +0 -14
@@ -16,8 +16,18 @@
|
|
16
16
|
#
|
17
17
|
# This would use the information in config/locales/es.yml.
|
18
18
|
#
|
19
|
+
# The following keys must be escaped otherwise they will not be retrieved by
|
20
|
+
# the default I18n backend:
|
21
|
+
#
|
22
|
+
# true, false, on, off, yes, no
|
23
|
+
#
|
24
|
+
# Instead, surround them with single quotes.
|
25
|
+
#
|
26
|
+
# en:
|
27
|
+
# 'true': 'foo'
|
28
|
+
#
|
19
29
|
# To learn more, please read the Rails Internationalization guide
|
20
|
-
# available at
|
30
|
+
# available at https://guides.rubyonrails.org/i18n.html.
|
21
31
|
|
22
32
|
en:
|
23
33
|
hello: "Hello world"
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# Puma can serve each request in a thread from an internal thread pool.
|
2
|
+
# The `threads` method setting takes two numbers: a minimum and maximum.
|
3
|
+
# Any libraries that use thread pools should be configured to match
|
4
|
+
# the maximum value specified for Puma. Default is set to 5 threads for minimum
|
5
|
+
# and maximum; this matches the default thread size of Active Record.
|
6
|
+
#
|
7
|
+
max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
|
8
|
+
min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
|
9
|
+
threads min_threads_count, max_threads_count
|
10
|
+
|
11
|
+
# Specifies the `worker_timeout` threshold that Puma will use to wait before
|
12
|
+
# terminating a worker in development environments.
|
13
|
+
#
|
14
|
+
worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"
|
15
|
+
|
16
|
+
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
17
|
+
#
|
18
|
+
port ENV.fetch("PORT") { 3000 }
|
19
|
+
|
20
|
+
# Specifies the `environment` that Puma will run in.
|
21
|
+
#
|
22
|
+
environment ENV.fetch("RAILS_ENV") { "development" }
|
23
|
+
|
24
|
+
# Specifies the `pidfile` that Puma will use.
|
25
|
+
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
|
26
|
+
|
27
|
+
# Specifies the number of `workers` to boot in clustered mode.
|
28
|
+
# Workers are forked web server processes. If using threads and workers together
|
29
|
+
# the concurrency of the application would be max `threads` * `workers`.
|
30
|
+
# Workers do not work on JRuby or Windows (both of which do not support
|
31
|
+
# processes).
|
32
|
+
#
|
33
|
+
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
|
34
|
+
|
35
|
+
# Use the `preload_app!` method when specifying a `workers` number.
|
36
|
+
# This directive tells Puma to first boot the application and load code
|
37
|
+
# before forking the application. This takes advantage of Copy On Write
|
38
|
+
# process behavior so workers use less memory.
|
39
|
+
#
|
40
|
+
# preload_app!
|
41
|
+
|
42
|
+
# Allow puma to be restarted by `rails restart` command.
|
43
|
+
plugin :tmp_restart
|
data/spec/dummy/config/routes.rb
CHANGED
@@ -0,0 +1,34 @@
|
|
1
|
+
test:
|
2
|
+
service: Disk
|
3
|
+
root: <%= Rails.root.join("tmp/storage") %>
|
4
|
+
|
5
|
+
local:
|
6
|
+
service: Disk
|
7
|
+
root: <%= Rails.root.join("storage") %>
|
8
|
+
|
9
|
+
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
|
10
|
+
# amazon:
|
11
|
+
# service: S3
|
12
|
+
# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
|
13
|
+
# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
|
14
|
+
# region: us-east-1
|
15
|
+
# bucket: your_own_bucket
|
16
|
+
|
17
|
+
# Remember not to checkin your GCS keyfile to a repository
|
18
|
+
# google:
|
19
|
+
# service: GCS
|
20
|
+
# project: your_project
|
21
|
+
# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
|
22
|
+
# bucket: your_own_bucket
|
23
|
+
|
24
|
+
# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
|
25
|
+
# microsoft:
|
26
|
+
# service: AzureStorage
|
27
|
+
# storage_account_name: your_account_name
|
28
|
+
# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
|
29
|
+
# container: your_container_name
|
30
|
+
|
31
|
+
# mirror:
|
32
|
+
# service: Mirror
|
33
|
+
# primary: local
|
34
|
+
# mirrors: [ amazon, google, microsoft ]
|
data/spec/dummy/public/404.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<title>The page you were looking for doesn't exist (404)</title>
|
5
5
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
6
|
<style>
|
7
|
-
|
7
|
+
.rails-default-error-page {
|
8
8
|
background-color: #EFEFEF;
|
9
9
|
color: #2E2F30;
|
10
10
|
text-align: center;
|
@@ -12,13 +12,13 @@
|
|
12
12
|
margin: 0;
|
13
13
|
}
|
14
14
|
|
15
|
-
div.dialog {
|
15
|
+
.rails-default-error-page div.dialog {
|
16
16
|
width: 95%;
|
17
17
|
max-width: 33em;
|
18
18
|
margin: 4em auto 0;
|
19
19
|
}
|
20
20
|
|
21
|
-
div.dialog > div {
|
21
|
+
.rails-default-error-page div.dialog > div {
|
22
22
|
border: 1px solid #CCC;
|
23
23
|
border-right-color: #999;
|
24
24
|
border-left-color: #999;
|
@@ -31,13 +31,13 @@
|
|
31
31
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
32
|
}
|
33
33
|
|
34
|
-
h1 {
|
34
|
+
.rails-default-error-page h1 {
|
35
35
|
font-size: 100%;
|
36
36
|
color: #730E15;
|
37
37
|
line-height: 1.5em;
|
38
38
|
}
|
39
39
|
|
40
|
-
div.dialog > p {
|
40
|
+
.rails-default-error-page div.dialog > p {
|
41
41
|
margin: 0 0 1em;
|
42
42
|
padding: 1em;
|
43
43
|
background-color: #F7F7F7;
|
@@ -54,7 +54,7 @@
|
|
54
54
|
</style>
|
55
55
|
</head>
|
56
56
|
|
57
|
-
<body>
|
57
|
+
<body class="rails-default-error-page">
|
58
58
|
<!-- This file lives in public/404.html -->
|
59
59
|
<div class="dialog">
|
60
60
|
<div>
|
data/spec/dummy/public/422.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<title>The change you wanted was rejected (422)</title>
|
5
5
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
6
|
<style>
|
7
|
-
|
7
|
+
.rails-default-error-page {
|
8
8
|
background-color: #EFEFEF;
|
9
9
|
color: #2E2F30;
|
10
10
|
text-align: center;
|
@@ -12,13 +12,13 @@
|
|
12
12
|
margin: 0;
|
13
13
|
}
|
14
14
|
|
15
|
-
div.dialog {
|
15
|
+
.rails-default-error-page div.dialog {
|
16
16
|
width: 95%;
|
17
17
|
max-width: 33em;
|
18
18
|
margin: 4em auto 0;
|
19
19
|
}
|
20
20
|
|
21
|
-
div.dialog > div {
|
21
|
+
.rails-default-error-page div.dialog > div {
|
22
22
|
border: 1px solid #CCC;
|
23
23
|
border-right-color: #999;
|
24
24
|
border-left-color: #999;
|
@@ -31,13 +31,13 @@
|
|
31
31
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
32
|
}
|
33
33
|
|
34
|
-
h1 {
|
34
|
+
.rails-default-error-page h1 {
|
35
35
|
font-size: 100%;
|
36
36
|
color: #730E15;
|
37
37
|
line-height: 1.5em;
|
38
38
|
}
|
39
39
|
|
40
|
-
div.dialog > p {
|
40
|
+
.rails-default-error-page div.dialog > p {
|
41
41
|
margin: 0 0 1em;
|
42
42
|
padding: 1em;
|
43
43
|
background-color: #F7F7F7;
|
@@ -54,7 +54,7 @@
|
|
54
54
|
</style>
|
55
55
|
</head>
|
56
56
|
|
57
|
-
<body>
|
57
|
+
<body class="rails-default-error-page">
|
58
58
|
<!-- This file lives in public/422.html -->
|
59
59
|
<div class="dialog">
|
60
60
|
<div>
|
data/spec/dummy/public/500.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<title>We're sorry, but something went wrong (500)</title>
|
5
5
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
6
|
<style>
|
7
|
-
|
7
|
+
.rails-default-error-page {
|
8
8
|
background-color: #EFEFEF;
|
9
9
|
color: #2E2F30;
|
10
10
|
text-align: center;
|
@@ -12,13 +12,13 @@
|
|
12
12
|
margin: 0;
|
13
13
|
}
|
14
14
|
|
15
|
-
div.dialog {
|
15
|
+
.rails-default-error-page div.dialog {
|
16
16
|
width: 95%;
|
17
17
|
max-width: 33em;
|
18
18
|
margin: 4em auto 0;
|
19
19
|
}
|
20
20
|
|
21
|
-
div.dialog > div {
|
21
|
+
.rails-default-error-page div.dialog > div {
|
22
22
|
border: 1px solid #CCC;
|
23
23
|
border-right-color: #999;
|
24
24
|
border-left-color: #999;
|
@@ -31,13 +31,13 @@
|
|
31
31
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
32
|
}
|
33
33
|
|
34
|
-
h1 {
|
34
|
+
.rails-default-error-page h1 {
|
35
35
|
font-size: 100%;
|
36
36
|
color: #730E15;
|
37
37
|
line-height: 1.5em;
|
38
38
|
}
|
39
39
|
|
40
|
-
div.dialog > p {
|
40
|
+
.rails-default-error-page div.dialog > p {
|
41
41
|
margin: 0 0 1em;
|
42
42
|
padding: 1em;
|
43
43
|
background-color: #F7F7F7;
|
@@ -54,7 +54,7 @@
|
|
54
54
|
</style>
|
55
55
|
</head>
|
56
56
|
|
57
|
-
<body>
|
57
|
+
<body class="rails-default-error-page">
|
58
58
|
<!-- This file lives in public/500.html -->
|
59
59
|
<div class="dialog">
|
60
60
|
<div>
|
File without changes
|
File without changes
|
@@ -8,6 +8,7 @@ RSpec.describe JobNotifier::Notifier do
|
|
8
8
|
class TestUser
|
9
9
|
include JobNotifier::Identifier
|
10
10
|
attr_accessor :email
|
11
|
+
|
11
12
|
identify_job_through :email
|
12
13
|
end
|
13
14
|
|
@@ -40,13 +41,14 @@ RSpec.describe JobNotifier::Notifier do
|
|
40
41
|
end
|
41
42
|
|
42
43
|
def job_by_identifier(identifier)
|
44
|
+
sleep(1)
|
43
45
|
JobNotifier::Job.where(identifier: identifier).first
|
44
46
|
end
|
45
47
|
|
46
48
|
context "defining perform_with_feedback" do
|
47
49
|
context "with success feedback" do
|
48
50
|
before do
|
49
|
-
class ImageUploadJob <
|
51
|
+
class ImageUploadJob < ApplicationJob
|
50
52
|
def perform_with_feedback(param1, param2)
|
51
53
|
"photo loaded! with #{param1} and #{param2}"
|
52
54
|
end
|
@@ -68,7 +70,7 @@ RSpec.describe JobNotifier::Notifier do
|
|
68
70
|
|
69
71
|
context "with error feedback" do
|
70
72
|
before do
|
71
|
-
class ImageUploadJob <
|
73
|
+
class ImageUploadJob < ApplicationJob
|
72
74
|
def perform_with_feedback(_param1, _param2)
|
73
75
|
raise JobNotifier::Error::Validation.new(error: "invalid photo url")
|
74
76
|
end
|
@@ -90,7 +92,7 @@ RSpec.describe JobNotifier::Notifier do
|
|
90
92
|
|
91
93
|
context "with unexpected error" do
|
92
94
|
before do
|
93
|
-
class ImageUploadJob <
|
95
|
+
class ImageUploadJob < ApplicationJob
|
94
96
|
def perform_with_feedback(_param1, _param2)
|
95
97
|
raise "unexpected error"
|
96
98
|
end
|
@@ -98,19 +100,34 @@ RSpec.describe JobNotifier::Notifier do
|
|
98
100
|
end
|
99
101
|
|
100
102
|
it "creates new job but throw the exception" do
|
101
|
-
|
102
|
-
raise_error(RuntimeError, "unexpected error"))
|
103
|
-
expect(JobNotifier::Job.count).to eq(1)
|
103
|
+
ImageUploadJob.perform_later(@identifier, "param1", "param2")
|
104
104
|
job = job_by_identifier(@identifier)
|
105
105
|
expect(job.result).to eq("unknown")
|
106
106
|
expect(job.status).to eq("failed")
|
107
107
|
end
|
108
108
|
end
|
109
|
+
|
110
|
+
context "with no owner" do
|
111
|
+
before do
|
112
|
+
class ImageUploadJob < ApplicationJob
|
113
|
+
def perform_with_feedback
|
114
|
+
"photo loaded!"
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
ImageUploadJob.perform_later("without_owner")
|
119
|
+
@job = JobNotifier::Job.last
|
120
|
+
end
|
121
|
+
|
122
|
+
it { expect(@job.job_id).not_to be_nil }
|
123
|
+
it { expect(@job.identifier).to be_nil }
|
124
|
+
it { expect(@job.job_class).to eq("ImageUploadJob") }
|
125
|
+
end
|
109
126
|
end
|
110
127
|
|
111
128
|
context "without defining perform_with_feedback" do
|
112
129
|
before do
|
113
|
-
class ImageUploadJob <
|
130
|
+
class ImageUploadJob < ApplicationJob
|
114
131
|
def perform
|
115
132
|
# work here
|
116
133
|
end
|
data/spec/rails_helper.rb
CHANGED
@@ -25,7 +25,7 @@ require File.expand_path("../../spec/dummy/config/environment", __FILE__)
|
|
25
25
|
abort("The Rails environment is running in production mode!") if Rails.env.production?
|
26
26
|
require 'spec_helper'
|
27
27
|
require 'rspec/rails'
|
28
|
-
require '
|
28
|
+
require 'factory_bot_rails'
|
29
29
|
# Add additional requires below this line. Rails is not loaded until this point!
|
30
30
|
|
31
31
|
# Requires supporting ruby files with custom matchers and macros, etc, in
|
@@ -76,5 +76,5 @@ RSpec.configure do |config|
|
|
76
76
|
# arbitrary gems may also be filtered via:
|
77
77
|
# config.filter_gems_from_backtrace("gem name")
|
78
78
|
|
79
|
-
config.include
|
79
|
+
config.include FactoryBot::Syntax::Methods
|
80
80
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: job_notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Platanus
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-06-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -18,42 +18,42 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: '6.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version:
|
28
|
+
version: '6.0'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
|
-
name:
|
30
|
+
name: colorize
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - ">="
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
35
|
+
version: 0.7.7
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
42
|
+
version: 0.7.7
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
|
-
name:
|
44
|
+
name: enumerize
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0
|
49
|
+
version: '1.0'
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0
|
56
|
+
version: '1.0'
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: silencer
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
@@ -68,6 +68,34 @@ dependencies:
|
|
68
68
|
- - '='
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: 1.0.0.rc3
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: coveralls
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: factory_bot_rails
|
87
|
+
requirement: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
type: :development
|
93
|
+
prerelease: false
|
94
|
+
version_requirements: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
71
99
|
- !ruby/object:Gem::Dependency
|
72
100
|
name: pry
|
73
101
|
requirement: !ruby/object:Gem::Requirement
|
@@ -83,7 +111,7 @@ dependencies:
|
|
83
111
|
- !ruby/object:Gem::Version
|
84
112
|
version: '0'
|
85
113
|
- !ruby/object:Gem::Dependency
|
86
|
-
name:
|
114
|
+
name: rspec_junit_formatter
|
87
115
|
requirement: !ruby/object:Gem::Requirement
|
88
116
|
requirements:
|
89
117
|
- - ">="
|
@@ -100,32 +128,46 @@ dependencies:
|
|
100
128
|
name: rspec-rails
|
101
129
|
requirement: !ruby/object:Gem::Requirement
|
102
130
|
requirements:
|
103
|
-
- - "
|
131
|
+
- - ">="
|
104
132
|
- !ruby/object:Gem::Version
|
105
|
-
version:
|
133
|
+
version: '0'
|
106
134
|
type: :development
|
107
135
|
prerelease: false
|
108
136
|
version_requirements: !ruby/object:Gem::Requirement
|
109
137
|
requirements:
|
110
|
-
- - "
|
138
|
+
- - ">="
|
111
139
|
- !ruby/object:Gem::Version
|
112
|
-
version:
|
140
|
+
version: '0'
|
113
141
|
- !ruby/object:Gem::Dependency
|
114
|
-
name:
|
142
|
+
name: rubocop
|
115
143
|
requirement: !ruby/object:Gem::Requirement
|
116
144
|
requirements:
|
117
145
|
- - "~>"
|
118
146
|
- !ruby/object:Gem::Version
|
119
|
-
version:
|
147
|
+
version: '1.9'
|
120
148
|
type: :development
|
121
149
|
prerelease: false
|
122
150
|
version_requirements: !ruby/object:Gem::Requirement
|
123
151
|
requirements:
|
124
152
|
- - "~>"
|
125
153
|
- !ruby/object:Gem::Version
|
126
|
-
version:
|
154
|
+
version: '1.9'
|
127
155
|
- !ruby/object:Gem::Dependency
|
128
|
-
name:
|
156
|
+
name: rubocop-rails
|
157
|
+
requirement: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
162
|
+
type: :development
|
163
|
+
prerelease: false
|
164
|
+
version_requirements: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '0'
|
169
|
+
- !ruby/object:Gem::Dependency
|
170
|
+
name: sqlite3
|
129
171
|
requirement: !ruby/object:Gem::Requirement
|
130
172
|
requirements:
|
131
173
|
- - ">="
|
@@ -148,13 +190,14 @@ executables: []
|
|
148
190
|
extensions: []
|
149
191
|
extra_rdoc_files: []
|
150
192
|
files:
|
193
|
+
- ".circleci/config.yml"
|
194
|
+
- ".circleci/setup-rubygems.sh"
|
151
195
|
- ".coveralls.yml"
|
152
196
|
- ".gitignore"
|
153
197
|
- ".hound.yml"
|
154
198
|
- ".rspec"
|
155
199
|
- ".rubocop.yml"
|
156
200
|
- ".ruby-version"
|
157
|
-
- ".travis.yml"
|
158
201
|
- CHANGELOG.md
|
159
202
|
- Gemfile
|
160
203
|
- Gemfile.lock
|
@@ -188,14 +231,23 @@ files:
|
|
188
231
|
- lib/tasks/job_notifier_tasks.rake
|
189
232
|
- spec/dummy/README.rdoc
|
190
233
|
- spec/dummy/Rakefile
|
234
|
+
- spec/dummy/app/assets/config/manifest.js
|
191
235
|
- spec/dummy/app/assets/javascripts/application.js
|
192
236
|
- spec/dummy/app/assets/stylesheets/application.css
|
237
|
+
- spec/dummy/app/channels/application_cable/channel.rb
|
238
|
+
- spec/dummy/app/channels/application_cable/connection.rb
|
193
239
|
- spec/dummy/app/controllers/application_controller.rb
|
194
240
|
- spec/dummy/app/controllers/home_controller.rb
|
195
241
|
- spec/dummy/app/helpers/application_helper.rb
|
242
|
+
- spec/dummy/app/javascript/packs/application.js
|
243
|
+
- spec/dummy/app/jobs/application_job.rb
|
244
|
+
- spec/dummy/app/mailers/application_mailer.rb
|
245
|
+
- spec/dummy/app/models/application_record.rb
|
196
246
|
- spec/dummy/app/models/user.rb
|
197
247
|
- spec/dummy/app/views/home/index.html.erb
|
198
248
|
- spec/dummy/app/views/layouts/application.html.erb
|
249
|
+
- spec/dummy/app/views/layouts/mailer.html.erb
|
250
|
+
- spec/dummy/app/views/layouts/mailer.text.erb
|
199
251
|
- spec/dummy/bin/bundle
|
200
252
|
- spec/dummy/bin/rails
|
201
253
|
- spec/dummy/bin/rake
|
@@ -203,29 +255,35 @@ files:
|
|
203
255
|
- spec/dummy/config.ru
|
204
256
|
- spec/dummy/config/application.rb
|
205
257
|
- spec/dummy/config/boot.rb
|
258
|
+
- spec/dummy/config/cable.yml
|
206
259
|
- spec/dummy/config/database.yml
|
207
260
|
- spec/dummy/config/environment.rb
|
208
261
|
- spec/dummy/config/environments/development.rb
|
209
262
|
- spec/dummy/config/environments/production.rb
|
210
263
|
- spec/dummy/config/environments/test.rb
|
264
|
+
- spec/dummy/config/initializers/application_controller_renderer.rb
|
211
265
|
- spec/dummy/config/initializers/assets.rb
|
212
266
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
267
|
+
- spec/dummy/config/initializers/content_security_policy.rb
|
213
268
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
214
269
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
215
270
|
- spec/dummy/config/initializers/inflections.rb
|
216
271
|
- spec/dummy/config/initializers/job_notifier.rb
|
217
272
|
- spec/dummy/config/initializers/mime_types.rb
|
273
|
+
- spec/dummy/config/initializers/permissions_policy.rb
|
218
274
|
- spec/dummy/config/initializers/session_store.rb
|
219
275
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
220
276
|
- spec/dummy/config/locales/en.yml
|
277
|
+
- spec/dummy/config/puma.rb
|
221
278
|
- spec/dummy/config/routes.rb
|
222
279
|
- spec/dummy/config/secrets.yml
|
280
|
+
- spec/dummy/config/storage.yml
|
223
281
|
- spec/dummy/db/schema.rb
|
224
|
-
- spec/dummy/db/test.sqlite3
|
225
|
-
- spec/dummy/log/test.log
|
226
282
|
- spec/dummy/public/404.html
|
227
283
|
- spec/dummy/public/422.html
|
228
284
|
- spec/dummy/public/500.html
|
285
|
+
- spec/dummy/public/apple-touch-icon-precomposed.png
|
286
|
+
- spec/dummy/public/apple-touch-icon.png
|
229
287
|
- spec/dummy/public/favicon.ico
|
230
288
|
- spec/factories/job_notifier_jobs.rb
|
231
289
|
- spec/lib/job_notifier/adapters_spec.rb
|
@@ -254,22 +312,30 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
254
312
|
- !ruby/object:Gem::Version
|
255
313
|
version: '0'
|
256
314
|
requirements: []
|
257
|
-
|
258
|
-
rubygems_version: 2.4.5
|
315
|
+
rubygems_version: 3.1.6
|
259
316
|
signing_key:
|
260
317
|
specification_version: 4
|
261
318
|
summary: Rails engine to persist job results and notify job status changes
|
262
319
|
test_files:
|
263
320
|
- spec/dummy/README.rdoc
|
264
321
|
- spec/dummy/Rakefile
|
322
|
+
- spec/dummy/app/assets/config/manifest.js
|
265
323
|
- spec/dummy/app/assets/javascripts/application.js
|
266
324
|
- spec/dummy/app/assets/stylesheets/application.css
|
325
|
+
- spec/dummy/app/channels/application_cable/channel.rb
|
326
|
+
- spec/dummy/app/channels/application_cable/connection.rb
|
267
327
|
- spec/dummy/app/controllers/application_controller.rb
|
268
328
|
- spec/dummy/app/controllers/home_controller.rb
|
269
329
|
- spec/dummy/app/helpers/application_helper.rb
|
330
|
+
- spec/dummy/app/javascript/packs/application.js
|
331
|
+
- spec/dummy/app/jobs/application_job.rb
|
332
|
+
- spec/dummy/app/mailers/application_mailer.rb
|
333
|
+
- spec/dummy/app/models/application_record.rb
|
270
334
|
- spec/dummy/app/models/user.rb
|
271
335
|
- spec/dummy/app/views/home/index.html.erb
|
272
336
|
- spec/dummy/app/views/layouts/application.html.erb
|
337
|
+
- spec/dummy/app/views/layouts/mailer.html.erb
|
338
|
+
- spec/dummy/app/views/layouts/mailer.text.erb
|
273
339
|
- spec/dummy/bin/bundle
|
274
340
|
- spec/dummy/bin/rails
|
275
341
|
- spec/dummy/bin/rake
|
@@ -277,29 +343,35 @@ test_files:
|
|
277
343
|
- spec/dummy/config.ru
|
278
344
|
- spec/dummy/config/application.rb
|
279
345
|
- spec/dummy/config/boot.rb
|
346
|
+
- spec/dummy/config/cable.yml
|
280
347
|
- spec/dummy/config/database.yml
|
281
348
|
- spec/dummy/config/environment.rb
|
282
349
|
- spec/dummy/config/environments/development.rb
|
283
350
|
- spec/dummy/config/environments/production.rb
|
284
351
|
- spec/dummy/config/environments/test.rb
|
352
|
+
- spec/dummy/config/initializers/application_controller_renderer.rb
|
285
353
|
- spec/dummy/config/initializers/assets.rb
|
286
354
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
355
|
+
- spec/dummy/config/initializers/content_security_policy.rb
|
287
356
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
288
357
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
289
358
|
- spec/dummy/config/initializers/inflections.rb
|
290
359
|
- spec/dummy/config/initializers/job_notifier.rb
|
291
360
|
- spec/dummy/config/initializers/mime_types.rb
|
361
|
+
- spec/dummy/config/initializers/permissions_policy.rb
|
292
362
|
- spec/dummy/config/initializers/session_store.rb
|
293
363
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
294
364
|
- spec/dummy/config/locales/en.yml
|
365
|
+
- spec/dummy/config/puma.rb
|
295
366
|
- spec/dummy/config/routes.rb
|
296
367
|
- spec/dummy/config/secrets.yml
|
368
|
+
- spec/dummy/config/storage.yml
|
297
369
|
- spec/dummy/db/schema.rb
|
298
|
-
- spec/dummy/db/test.sqlite3
|
299
|
-
- spec/dummy/log/test.log
|
300
370
|
- spec/dummy/public/404.html
|
301
371
|
- spec/dummy/public/422.html
|
302
372
|
- spec/dummy/public/500.html
|
373
|
+
- spec/dummy/public/apple-touch-icon-precomposed.png
|
374
|
+
- spec/dummy/public/apple-touch-icon.png
|
303
375
|
- spec/dummy/public/favicon.ico
|
304
376
|
- spec/factories/job_notifier_jobs.rb
|
305
377
|
- spec/lib/job_notifier/adapters_spec.rb
|