defra_ruby_email 0.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +103 -7
- data/Rakefile +0 -2
- data/app/controllers/defra_ruby_email/last_notify_message_controller.rb +11 -0
- data/config/routes.rb +5 -0
- data/lib/defra_ruby_email/configuration.rb +2 -0
- data/lib/defra_ruby_email/engine.rb +1 -0
- data/lib/defra_ruby_email/last_notify_message.rb +44 -0
- data/lib/defra_ruby_email/version.rb +1 -1
- data/lib/tasks/defra_ruby_email.rake +8 -0
- data/lib/tasks/defra_ruby_email_tasks.rake +7 -6
- data/spec/dummy/config/environments/production.rb +1 -1
- data/spec/dummy/config/environments/test.rb +1 -1
- data/spec/dummy/config/initializers/defra_ruby_email.rb +5 -0
- data/spec/dummy/log/test.log +13969 -53
- data/spec/examples.txt +38 -8
- data/spec/lib/last_notify_message_spec.rb +85 -0
- data/spec/requests/last_email_spec.rb +1 -1
- data/spec/requests/last_notify_message_spec.rb +82 -0
- metadata +46 -74
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1W/1WwQOSlYPtmYMlk5m-3Qq4NzEWNH7tYCQhfoslnaLHk.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2-/2-japRDu0GHGko1cjVWjELVh5v9nz6Q45a2beIwLUrI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4G/4Gbu6LmPYLfAZQgL2uv1eZwq7EYA0POiSWs6C_vXckg.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AU/AUfMxF1097iBMMdRbzJKjyzoRLp1W-b_VuQ4p0OxWfw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/B5/B5OLh2y7CLTgfdROC0dphxzI0KC-NWuzUoZ5fHcA6Bg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/L4/L46n6ueXJJsYfqBb0tgyq4pu-Pmwghcq4wxrrvue0iI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/MG/MGzsWSZq4b8vtnPxO8zkfdIwLVmVdcXFO1l9ao9g8D8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ps/PsDzIFzt3gBnxeXvfMfYXZ2E6DyEFleyRRfR01u34_8.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SN/SN9Q1o1Je1stqGQtozCzZyPlhu1QW0gOSDpTQHrdE40.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SW/SW2WGzrHD6rQ7Iifad3AJjwO-H5MMdk-KgDcDAo2L3w.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Tz/TzV-x09rf8_JdpcH7oq7Tx0hTs-7K6EpBgN2cGzTBCw.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Uz/Uzp0b_uvqxkh0hY1pfL1MUpkNlf4zy_eYSBnRQQFiC0.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_D/_DYI9CGjZuQS99rHeuP1Zczax1DlXobV7fQAOlFZbW0.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_M/_MsZgIvurUGOXpB0mEZtVC6mrSMcnyTk7p_1psw3G-g.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aj/ajHL7E3SCz-eQbwNQMePJRLVz6OQHk7Xtuvu4SWLiYY.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dC/dCKQMRMWehNHUz2uovXPnFyx0OyNUCVPhPvG9tPe0TM.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ex/exO17VY09nxxoT76j7M9SboKOezGF_Wx0vTvGHl-vuU.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fN/fNIVnfQsXHwqWvodZxIU869b9k7z9k8O8Z5I7waSgbo.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gF/gFPphmPziPhcj5awJ-qSf7kvvYQE-mR6fJoj5Plw17I.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gm/gm8TWq2tpBcsn1xscp-vNMVweRDHm10LXftKrZ3WL3E.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iG/iGr34Svi4uZyFOneReXcDJZvZTJyBzaiZFOm5EcSefM.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pP/pPe-s4lIFwyYOpBJcOCFWCqVHJzKmr-bXTMajg0vA0U.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q3/q3Z4d58Hu6dSbyJh-BeC0P0-vMjbI8cfMsHN73-B3gs.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qo/qoLNp_jcpq5z2b5ijaCSHBZO7m6FKQHFrXVGHZ9ZoZ8.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/s4/s4_2m7OtzbFTNr3n5Zn_xY2uGLRIzpG24UgWUwG3yKA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sQ/sQNMSYgTkDcfTlnbqMpLd6Erufaoxo61qkVPy4YgY3A.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/y9/y9pXiDOCIiEqKn-ES0eCNUjJ7cSQFn31eombd1vJzj4.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/z9/z9x_Zb62GyFCL1ZoYErl-HHrPL6AqOOgaLaDlJ9KaEo.cache +0 -0
data/spec/examples.txt
CHANGED
@@ -1,8 +1,38 @@
|
|
1
|
-
example_id
|
2
|
-
|
3
|
-
./spec/defra_ruby_email_spec.rb[1:1:1]
|
4
|
-
./spec/defra_ruby_email_spec.rb[1:2:1:1]
|
5
|
-
./spec/defra_ruby_email_spec.rb[1:2:2:1]
|
6
|
-
./spec/
|
7
|
-
./spec/
|
8
|
-
./spec/
|
1
|
+
example_id | status | run_time |
|
2
|
+
-------------------------------------------------- | ------ | --------------- |
|
3
|
+
./spec/defra_ruby_email_spec.rb[1:1:1] | passed | 0.00141 seconds |
|
4
|
+
./spec/defra_ruby_email_spec.rb[1:2:1:1] | passed | 0.00065 seconds |
|
5
|
+
./spec/defra_ruby_email_spec.rb[1:2:2:1] | passed | 0.00012 seconds |
|
6
|
+
./spec/lib/last_email_cache_spec.rb[1:1:1:1] | passed | 0.0002 seconds |
|
7
|
+
./spec/lib/last_email_cache_spec.rb[1:1:1:2] | passed | 0.0002 seconds |
|
8
|
+
./spec/lib/last_email_cache_spec.rb[1:1:2:1:1] | passed | 0.00348 seconds |
|
9
|
+
./spec/lib/last_email_cache_spec.rb[1:1:2:1:2] | passed | 0.00401 seconds |
|
10
|
+
./spec/lib/last_email_cache_spec.rb[1:1:2:1:3] | passed | 0.00321 seconds |
|
11
|
+
./spec/lib/last_email_cache_spec.rb[1:1:2:2:1] | passed | 0.00316 seconds |
|
12
|
+
./spec/lib/last_email_cache_spec.rb[1:1:2:2:2] | passed | 0.00406 seconds |
|
13
|
+
./spec/lib/last_email_cache_spec.rb[1:1:2:2:3] | passed | 0.00322 seconds |
|
14
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:1:1] | passed | 0.00744 seconds |
|
15
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:1:2] | passed | 0.00738 seconds |
|
16
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:1:3] | passed | 0.00725 seconds |
|
17
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:2:1] | passed | 0.01275 seconds |
|
18
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:2:2] | passed | 0.01283 seconds |
|
19
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:2:3] | passed | 0.01324 seconds |
|
20
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:3:1] | passed | 0.01334 seconds |
|
21
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:3:2] | passed | 0.01667 seconds |
|
22
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:3:3] | passed | 0.01566 seconds |
|
23
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:4:1] | passed | 0.0092 seconds |
|
24
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:4:2] | passed | 0.02459 seconds |
|
25
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:4:3] | passed | 0.00897 seconds |
|
26
|
+
./spec/lib/last_email_cache_spec.rb[1:1:4:1] | passed | 0.00686 seconds |
|
27
|
+
./spec/lib/last_email_cache_spec.rb[1:1:4:2] | passed | 0.00606 seconds |
|
28
|
+
./spec/lib/last_email_cache_spec.rb[1:1:4:3] | passed | 0.00752 seconds |
|
29
|
+
./spec/lib/last_email_cache_spec.rb[1:1:4:4] | passed | 0.00553 seconds |
|
30
|
+
./spec/lib/last_notify_message_spec.rb[1:1:1] | passed | 0.00917 seconds |
|
31
|
+
./spec/lib/last_notify_message_spec.rb[1:2:1:1] | passed | 0.00014 seconds |
|
32
|
+
./spec/lib/last_notify_message_spec.rb[1:2:1:2] | passed | 0.00014 seconds |
|
33
|
+
./spec/lib/last_notify_message_spec.rb[1:2:2:1] | passed | 0.0005 seconds |
|
34
|
+
./spec/lib/last_notify_message_spec.rb[1:2:2:2] | passed | 0.00064 seconds |
|
35
|
+
./spec/requests/last_email_spec.rb[1:1:1] | passed | 0.2142 seconds |
|
36
|
+
./spec/requests/last_email_spec.rb[1:2:1] | passed | 0.00534 seconds |
|
37
|
+
./spec/requests/last_notify_message_spec.rb[1:1:1] | passed | 0.007 seconds |
|
38
|
+
./spec/requests/last_notify_message_spec.rb[1:2:1] | passed | 0.00562 seconds |
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "rails_helper"
|
4
|
+
|
5
|
+
module DefraRubyEmail
|
6
|
+
RSpec.describe LastNotifyMessage do
|
7
|
+
subject(:instance) { described_class.instance }
|
8
|
+
|
9
|
+
before(:each) { instance.reset }
|
10
|
+
|
11
|
+
let(:client) { double(:client, get_notifications: notifications) }
|
12
|
+
let(:notifications) { double(:notifications, collection: collection) }
|
13
|
+
let(:collection) { double(:collection, first: notification) }
|
14
|
+
let(:notification) do
|
15
|
+
double(:notification,
|
16
|
+
type: "email",
|
17
|
+
template: "template",
|
18
|
+
subject: "Subject",
|
19
|
+
body: "Body",
|
20
|
+
sent_at: "datetime",
|
21
|
+
email_address: "test@example.com",
|
22
|
+
phone_number: nil,
|
23
|
+
line_1: nil,
|
24
|
+
line_2: nil,
|
25
|
+
line_3: nil,
|
26
|
+
line_4: nil,
|
27
|
+
line_5: nil,
|
28
|
+
line_6: nil,
|
29
|
+
postcode: nil)
|
30
|
+
end
|
31
|
+
|
32
|
+
let(:expected_keys) { %w[type template subject body date to line_1 line_2 line_3 line_4 line_5 line_6 postcode] }
|
33
|
+
|
34
|
+
describe "#retrieve_last_notify_message" do
|
35
|
+
it "makes a call to the Notify client" do
|
36
|
+
expect(Notifications::Client).to receive(:new).with(DefraRubyEmail.configuration.notify_api_key).and_return(client)
|
37
|
+
expect(client).to receive(:get_notifications).and_return(notifications)
|
38
|
+
|
39
|
+
expect(instance.last_notify_message).to eq(nil)
|
40
|
+
|
41
|
+
instance.retrieve_last_notify_message
|
42
|
+
|
43
|
+
expect(instance.last_notify_message).to eq(notification)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe "#last_notify_message_json" do
|
48
|
+
context "when no messages have been sent" do
|
49
|
+
let(:expected_keys) { %w[error] }
|
50
|
+
|
51
|
+
it "returns a JSON string" do
|
52
|
+
result = instance.last_notify_message_json
|
53
|
+
|
54
|
+
expect(result).to be_a(String)
|
55
|
+
expect { JSON.parse(result) }.to_not raise_error
|
56
|
+
end
|
57
|
+
|
58
|
+
it "responds with an error message" do
|
59
|
+
result = JSON.parse(instance.last_notify_message_json)
|
60
|
+
|
61
|
+
expect(result.keys).to match_array(expected_keys)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
context "when a message has been sent" do
|
66
|
+
before(:each) do
|
67
|
+
instance.last_notify_message = notification
|
68
|
+
end
|
69
|
+
|
70
|
+
it "returns a JSON string" do
|
71
|
+
result = instance.last_notify_message_json
|
72
|
+
|
73
|
+
expect(result).to be_a(String)
|
74
|
+
expect { JSON.parse(result) }.to_not raise_error
|
75
|
+
end
|
76
|
+
|
77
|
+
it "contains the attributes of the message" do
|
78
|
+
result = JSON.parse(instance.last_notify_message_json)
|
79
|
+
|
80
|
+
expect(result["last_notify_message"].keys).to match_array(expected_keys)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -17,7 +17,7 @@ module DefraRubyEmail
|
|
17
17
|
it "returns a JSON response with a 200 code containing details of the last email sent" do
|
18
18
|
get path
|
19
19
|
|
20
|
-
expect(response.
|
20
|
+
expect(response.media_type).to eq("application/json")
|
21
21
|
expect(response.code).to eq("200")
|
22
22
|
expect(response.body).to eq(LastEmailCache.instance.last_email_json)
|
23
23
|
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "rails_helper"
|
4
|
+
require "notifications/client"
|
5
|
+
|
6
|
+
module DefraRubyEmail
|
7
|
+
RSpec.describe "LastNotifyMessage", type: :request do
|
8
|
+
after(:all) { Helpers::Configuration.reset_for_tests }
|
9
|
+
|
10
|
+
let(:path) { "/defra_ruby_email/last-notify-message" }
|
11
|
+
|
12
|
+
let(:notify_api_key) { "hello-i-am-a-key" }
|
13
|
+
let(:client) { double(:client, get_notifications: notifications) }
|
14
|
+
let(:notifications) { double(:notifications, collection: collection) }
|
15
|
+
let(:collection) { double(:collection, first: notification) }
|
16
|
+
let(:notification) do
|
17
|
+
double(:notification,
|
18
|
+
type: "email",
|
19
|
+
template: "template",
|
20
|
+
subject: "Subject",
|
21
|
+
body: "Body",
|
22
|
+
sent_at: "datetime",
|
23
|
+
email_address: "test@example.com",
|
24
|
+
phone_number: nil,
|
25
|
+
line_1: nil,
|
26
|
+
line_2: nil,
|
27
|
+
line_3: nil,
|
28
|
+
line_4: nil,
|
29
|
+
line_5: nil,
|
30
|
+
line_6: nil,
|
31
|
+
postcode: nil)
|
32
|
+
end
|
33
|
+
|
34
|
+
context "when the API is enabled" do
|
35
|
+
let(:expected_data) do
|
36
|
+
{
|
37
|
+
last_notify_message: {
|
38
|
+
type: "email",
|
39
|
+
template: "template",
|
40
|
+
subject: "Subject",
|
41
|
+
body: "Body",
|
42
|
+
date: "datetime",
|
43
|
+
to: "test@example.com",
|
44
|
+
line_1: nil,
|
45
|
+
line_2: nil,
|
46
|
+
line_3: nil,
|
47
|
+
line_4: nil,
|
48
|
+
line_5: nil,
|
49
|
+
line_6: nil,
|
50
|
+
postcode: nil
|
51
|
+
}
|
52
|
+
}.to_json
|
53
|
+
end
|
54
|
+
|
55
|
+
before(:each) do
|
56
|
+
Helpers::Configuration.prep_for_tests
|
57
|
+
|
58
|
+
expect(DefraRubyEmail.configuration).to receive(:notify_api_key).and_return(notify_api_key)
|
59
|
+
|
60
|
+
expect(Notifications::Client).to receive(:new).with(notify_api_key).and_return(client)
|
61
|
+
expect(client).to receive(:get_notifications).and_return(notifications)
|
62
|
+
end
|
63
|
+
|
64
|
+
it "returns a JSON response with a 200 code containing details of the last Notify message sent" do
|
65
|
+
get path
|
66
|
+
|
67
|
+
expect(response.media_type).to eq("application/json")
|
68
|
+
expect(response.code).to eq("200")
|
69
|
+
|
70
|
+
expect(response.body).to eq(expected_data)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
context "when the API is disabled" do
|
75
|
+
before(:all) { DefraRubyEmail.configuration.enable = false }
|
76
|
+
|
77
|
+
it "cannot load the page" do
|
78
|
+
expect { get path }.to raise_error(ActionController::RoutingError)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: defra_ruby_email
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Defra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '6.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: '6.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sprockets
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.7.2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.7.2
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: defra_ruby_style
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +52,20 @@ dependencies:
|
|
38
52
|
- - ">="
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: notifications-ruby-client
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
70
|
name: github_changelog_generator
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,16 +98,16 @@ dependencies:
|
|
70
98
|
name: rspec-rails
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
72
100
|
requirements:
|
73
|
-
- - "
|
101
|
+
- - ">="
|
74
102
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
103
|
+
version: '0'
|
76
104
|
type: :development
|
77
105
|
prerelease: false
|
78
106
|
version_requirements: !ruby/object:Gem::Requirement
|
79
107
|
requirements:
|
80
|
-
- - "
|
108
|
+
- - ">="
|
81
109
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
110
|
+
version: '0'
|
83
111
|
- !ruby/object:Gem::Dependency
|
84
112
|
name: simplecov
|
85
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +136,7 @@ files:
|
|
108
136
|
- app/assets/images/defra_ruby_email/govuk_logotype_email.png
|
109
137
|
- app/controllers/defra_ruby_email/application_controller.rb
|
110
138
|
- app/controllers/defra_ruby_email/last_email_controller.rb
|
139
|
+
- app/controllers/defra_ruby_email/last_notify_message_controller.rb
|
111
140
|
- app/mailers/defra_ruby_email/test_mailer.rb
|
112
141
|
- config/routes.rb
|
113
142
|
- lib/defra_ruby_email.rb
|
@@ -115,8 +144,10 @@ files:
|
|
115
144
|
- lib/defra_ruby_email/engine.rb
|
116
145
|
- lib/defra_ruby_email/last_email_cache.rb
|
117
146
|
- lib/defra_ruby_email/last_email_observer.rb
|
147
|
+
- lib/defra_ruby_email/last_notify_message.rb
|
118
148
|
- lib/defra_ruby_email/version.rb
|
119
149
|
- lib/tasks/changelog.rake
|
150
|
+
- lib/tasks/defra_ruby_email.rake
|
120
151
|
- lib/tasks/defra_ruby_email_tasks.rake
|
121
152
|
- spec/defra_ruby_email_spec.rb
|
122
153
|
- spec/dummy/README.rdoc
|
@@ -140,6 +171,7 @@ files:
|
|
140
171
|
- spec/dummy/config/initializers/assets.rb
|
141
172
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
142
173
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
174
|
+
- spec/dummy/config/initializers/defra_ruby_email.rb
|
143
175
|
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
144
176
|
- spec/dummy/config/initializers/inflections.rb
|
145
177
|
- spec/dummy/config/initializers/mime_types.rb
|
@@ -154,42 +186,12 @@ files:
|
|
154
186
|
- spec/dummy/public/422.html
|
155
187
|
- spec/dummy/public/500.html
|
156
188
|
- spec/dummy/public/favicon.ico
|
157
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/1W/1WwQOSlYPtmYMlk5m-3Qq4NzEWNH7tYCQhfoslnaLHk.cache
|
158
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/2-/2-japRDu0GHGko1cjVWjELVh5v9nz6Q45a2beIwLUrI.cache
|
159
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/4G/4Gbu6LmPYLfAZQgL2uv1eZwq7EYA0POiSWs6C_vXckg.cache
|
160
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
|
161
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/AU/AUfMxF1097iBMMdRbzJKjyzoRLp1W-b_VuQ4p0OxWfw.cache
|
162
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/B5/B5OLh2y7CLTgfdROC0dphxzI0KC-NWuzUoZ5fHcA6Bg.cache
|
163
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/L4/L46n6ueXJJsYfqBb0tgyq4pu-Pmwghcq4wxrrvue0iI.cache
|
164
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/MG/MGzsWSZq4b8vtnPxO8zkfdIwLVmVdcXFO1l9ao9g8D8.cache
|
165
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
|
166
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Ps/PsDzIFzt3gBnxeXvfMfYXZ2E6DyEFleyRRfR01u34_8.cache
|
167
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/SN/SN9Q1o1Je1stqGQtozCzZyPlhu1QW0gOSDpTQHrdE40.cache
|
168
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/SW/SW2WGzrHD6rQ7Iifad3AJjwO-H5MMdk-KgDcDAo2L3w.cache
|
169
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Tz/TzV-x09rf8_JdpcH7oq7Tx0hTs-7K6EpBgN2cGzTBCw.cache
|
170
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Uz/Uzp0b_uvqxkh0hY1pfL1MUpkNlf4zy_eYSBnRQQFiC0.cache
|
171
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/_D/_DYI9CGjZuQS99rHeuP1Zczax1DlXobV7fQAOlFZbW0.cache
|
172
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/_M/_MsZgIvurUGOXpB0mEZtVC6mrSMcnyTk7p_1psw3G-g.cache
|
173
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/aj/ajHL7E3SCz-eQbwNQMePJRLVz6OQHk7Xtuvu4SWLiYY.cache
|
174
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/dC/dCKQMRMWehNHUz2uovXPnFyx0OyNUCVPhPvG9tPe0TM.cache
|
175
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/ex/exO17VY09nxxoT76j7M9SboKOezGF_Wx0vTvGHl-vuU.cache
|
176
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/fN/fNIVnfQsXHwqWvodZxIU869b9k7z9k8O8Z5I7waSgbo.cache
|
177
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/gF/gFPphmPziPhcj5awJ-qSf7kvvYQE-mR6fJoj5Plw17I.cache
|
178
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/gm/gm8TWq2tpBcsn1xscp-vNMVweRDHm10LXftKrZ3WL3E.cache
|
179
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
|
180
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/iG/iGr34Svi4uZyFOneReXcDJZvZTJyBzaiZFOm5EcSefM.cache
|
181
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
|
182
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/pP/pPe-s4lIFwyYOpBJcOCFWCqVHJzKmr-bXTMajg0vA0U.cache
|
183
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/q3/q3Z4d58Hu6dSbyJh-BeC0P0-vMjbI8cfMsHN73-B3gs.cache
|
184
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/qo/qoLNp_jcpq5z2b5ijaCSHBZO7m6FKQHFrXVGHZ9ZoZ8.cache
|
185
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/s4/s4_2m7OtzbFTNr3n5Zn_xY2uGLRIzpG24UgWUwG3yKA.cache
|
186
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/sQ/sQNMSYgTkDcfTlnbqMpLd6Erufaoxo61qkVPy4YgY3A.cache
|
187
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/y9/y9pXiDOCIiEqKn-ES0eCNUjJ7cSQFn31eombd1vJzj4.cache
|
188
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/z9/z9x_Zb62GyFCL1ZoYErl-HHrPL6AqOOgaLaDlJ9KaEo.cache
|
189
189
|
- spec/examples.txt
|
190
190
|
- spec/lib/last_email_cache_spec.rb
|
191
|
+
- spec/lib/last_notify_message_spec.rb
|
191
192
|
- spec/rails_helper.rb
|
192
193
|
- spec/requests/last_email_spec.rb
|
194
|
+
- spec/requests/last_notify_message_spec.rb
|
193
195
|
- spec/spec_helper.rb
|
194
196
|
- spec/support/helpers/configuration.rb
|
195
197
|
- spec/support/pry.rb
|
@@ -213,8 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
215
|
- !ruby/object:Gem::Version
|
214
216
|
version: '0'
|
215
217
|
requirements: []
|
216
|
-
|
217
|
-
rubygems_version: 2.6.13
|
218
|
+
rubygems_version: 3.1.2
|
218
219
|
signing_key:
|
219
220
|
specification_version: 4
|
220
221
|
summary: Defra Ruby on Rails access last email engine
|
@@ -245,6 +246,7 @@ test_files:
|
|
245
246
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
246
247
|
- spec/dummy/config/initializers/assets.rb
|
247
248
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
249
|
+
- spec/dummy/config/initializers/defra_ruby_email.rb
|
248
250
|
- spec/dummy/config/initializers/to_time_preserves_timezone.rb
|
249
251
|
- spec/dummy/config/initializers/inflections.rb
|
250
252
|
- spec/dummy/config.ru
|
@@ -254,44 +256,14 @@ test_files:
|
|
254
256
|
- spec/dummy/public/500.html
|
255
257
|
- spec/dummy/public/404.html
|
256
258
|
- spec/dummy/log/test.log
|
257
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/SW/SW2WGzrHD6rQ7Iifad3AJjwO-H5MMdk-KgDcDAo2L3w.cache
|
258
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Uz/Uzp0b_uvqxkh0hY1pfL1MUpkNlf4zy_eYSBnRQQFiC0.cache
|
259
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
|
260
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/pP/pPe-s4lIFwyYOpBJcOCFWCqVHJzKmr-bXTMajg0vA0U.cache
|
261
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/s4/s4_2m7OtzbFTNr3n5Zn_xY2uGLRIzpG24UgWUwG3yKA.cache
|
262
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/sQ/sQNMSYgTkDcfTlnbqMpLd6Erufaoxo61qkVPy4YgY3A.cache
|
263
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/gF/gFPphmPziPhcj5awJ-qSf7kvvYQE-mR6fJoj5Plw17I.cache
|
264
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/B5/B5OLh2y7CLTgfdROC0dphxzI0KC-NWuzUoZ5fHcA6Bg.cache
|
265
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/aj/ajHL7E3SCz-eQbwNQMePJRLVz6OQHk7Xtuvu4SWLiYY.cache
|
266
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/MG/MGzsWSZq4b8vtnPxO8zkfdIwLVmVdcXFO1l9ao9g8D8.cache
|
267
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/L4/L46n6ueXJJsYfqBb0tgyq4pu-Pmwghcq4wxrrvue0iI.cache
|
268
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/iG/iGr34Svi4uZyFOneReXcDJZvZTJyBzaiZFOm5EcSefM.cache
|
269
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/ex/exO17VY09nxxoT76j7M9SboKOezGF_Wx0vTvGHl-vuU.cache
|
270
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/qo/qoLNp_jcpq5z2b5ijaCSHBZO7m6FKQHFrXVGHZ9ZoZ8.cache
|
271
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/2-/2-japRDu0GHGko1cjVWjELVh5v9nz6Q45a2beIwLUrI.cache
|
272
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/z9/z9x_Zb62GyFCL1ZoYErl-HHrPL6AqOOgaLaDlJ9KaEo.cache
|
273
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/_D/_DYI9CGjZuQS99rHeuP1Zczax1DlXobV7fQAOlFZbW0.cache
|
274
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/_M/_MsZgIvurUGOXpB0mEZtVC6mrSMcnyTk7p_1psw3G-g.cache
|
275
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Ps/PsDzIFzt3gBnxeXvfMfYXZ2E6DyEFleyRRfR01u34_8.cache
|
276
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
|
277
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/y9/y9pXiDOCIiEqKn-ES0eCNUjJ7cSQFn31eombd1vJzj4.cache
|
278
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/SN/SN9Q1o1Je1stqGQtozCzZyPlhu1QW0gOSDpTQHrdE40.cache
|
279
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
|
280
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/dC/dCKQMRMWehNHUz2uovXPnFyx0OyNUCVPhPvG9tPe0TM.cache
|
281
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/AU/AUfMxF1097iBMMdRbzJKjyzoRLp1W-b_VuQ4p0OxWfw.cache
|
282
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/gm/gm8TWq2tpBcsn1xscp-vNMVweRDHm10LXftKrZ3WL3E.cache
|
283
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/fN/fNIVnfQsXHwqWvodZxIU869b9k7z9k8O8Z5I7waSgbo.cache
|
284
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
|
285
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/Tz/TzV-x09rf8_JdpcH7oq7Tx0hTs-7K6EpBgN2cGzTBCw.cache
|
286
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/1W/1WwQOSlYPtmYMlk5m-3Qq4NzEWNH7tYCQhfoslnaLHk.cache
|
287
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/q3/q3Z4d58Hu6dSbyJh-BeC0P0-vMjbI8cfMsHN73-B3gs.cache
|
288
|
-
- spec/dummy/tmp/cache/assets/sprockets/v3.0/4G/4Gbu6LmPYLfAZQgL2uv1eZwq7EYA0POiSWs6C_vXckg.cache
|
289
259
|
- spec/dummy/README.rdoc
|
290
260
|
- spec/examples.txt
|
291
261
|
- spec/requests/last_email_spec.rb
|
262
|
+
- spec/requests/last_notify_message_spec.rb
|
292
263
|
- spec/support/simplecov.rb
|
293
264
|
- spec/support/pry.rb
|
294
265
|
- spec/support/helpers/configuration.rb
|
295
266
|
- spec/lib/last_email_cache_spec.rb
|
267
|
+
- spec/lib/last_notify_message_spec.rb
|
296
268
|
- spec/rails_helper.rb
|
297
269
|
- spec/defra_ruby_email_spec.rb
|