govuk_notify_rails 0.0.2 → 1.0.0

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: e5946833aaf2e5bd517ccf753635751b9fd59a83
4
- data.tar.gz: b459a322b7b41cc1a7287602d121a740a75ea576
3
+ metadata.gz: 6f4f898ade8139172733a89447b1ff740c88eeb0
4
+ data.tar.gz: 7a03996e303a848da8d3504a681fae35811e7819
5
5
  SHA512:
6
- metadata.gz: 47f0074944324904dfd8e07175b738868134a84b7d8f7e8a0b8b04b5ce86e2b67aff5ccd9e79b949b8319a93eb04acd4465f6e876ace0bfd3d14dbf82fa66298
7
- data.tar.gz: 5b15c3fdf528f25461fd9db5859fdc4b653a80e7e9e4a4cd01716b7975a9009c09cd3edaa8f8fab47175837fade2968718eee3e5cdb4faeeadfd1197eb4bb636
6
+ metadata.gz: 94e86e24644774a1bb9a7549a2bd37e87172f2a69a1460a0f14b3cdb7d1d21d0047917112180001fa9983dcfa18d03749864e4229366c4e854f59180619fb9f7
7
+ data.tar.gz: 2d191ff8cb1cf1d82515355e9c920d61f6190229f6ba8cac15d2a96bbaed9e352953f02635c76893df6ef4c83a1d4466d5c18c125e629b1726437f5a4b4e9792
@@ -25,7 +25,7 @@ module GovukNotifyRails
25
25
  to: message.to.first,
26
26
  template: message.govuk_notify_template,
27
27
  personalisation: message.govuk_notify_personalisation
28
- }.compact.to_json
28
+ }.compact
29
29
  end
30
30
 
31
31
  def notify_client
@@ -1,3 +1,3 @@
1
1
  module GovukNotifyRails
2
- VERSION = '0.0.2'.freeze
2
+ VERSION = '1.0.0'.freeze
3
3
  end
@@ -378,3 +378,83 @@ NotifyMailer#test_email: processed outbound mail in 0.4ms
378
378
  NotifyMailer#test_email: processed outbound mail in 0.4ms
379
379
 
380
380
  NotifyMailer#test_email: processed outbound mail in 0.4ms
381
+
382
+ NotifyMailer#test_email: processed outbound mail in 111.8ms
383
+
384
+ NotifyMailer#test_email: processed outbound mail in 0.5ms
385
+
386
+ NotifyMailer#test_email: processed outbound mail in 0.5ms
387
+
388
+ NotifyMailer#test_email: processed outbound mail in 0.5ms
389
+
390
+ NotifyMailer#test_email: processed outbound mail in 0.3ms
391
+
392
+ NotifyMailer#test_email: processed outbound mail in 90.9ms
393
+
394
+ NotifyMailer#test_email: processed outbound mail in 0.5ms
395
+
396
+ NotifyMailer#test_email: processed outbound mail in 0.3ms
397
+
398
+ NotifyMailer#test_email: processed outbound mail in 0.3ms
399
+
400
+ NotifyMailer#test_email: processed outbound mail in 0.3ms
401
+
402
+ NotifyMailer#test_email: processed outbound mail in 88.8ms
403
+
404
+ NotifyMailer#test_email: processed outbound mail in 0.5ms
405
+
406
+ NotifyMailer#test_email: processed outbound mail in 0.4ms
407
+
408
+ NotifyMailer#test_email: processed outbound mail in 0.4ms
409
+
410
+ NotifyMailer#test_email: processed outbound mail in 0.3ms
411
+
412
+ NotifyMailer#test_email: processed outbound mail in 89.6ms
413
+
414
+ NotifyMailer#test_email: processed outbound mail in 0.5ms
415
+
416
+ NotifyMailer#test_email: processed outbound mail in 0.5ms
417
+
418
+ NotifyMailer#test_email: processed outbound mail in 0.4ms
419
+
420
+ NotifyMailer#test_email: processed outbound mail in 0.5ms
421
+
422
+ NotifyMailer#test_email: processed outbound mail in 94.4ms
423
+
424
+ NotifyMailer#test_email: processed outbound mail in 0.4ms
425
+
426
+ NotifyMailer#test_email: processed outbound mail in 0.3ms
427
+
428
+ NotifyMailer#test_email: processed outbound mail in 0.3ms
429
+
430
+ NotifyMailer#test_email: processed outbound mail in 0.3ms
431
+
432
+ NotifyMailer#test_email: processed outbound mail in 85.9ms
433
+
434
+ NotifyMailer#test_email: processed outbound mail in 0.4ms
435
+
436
+ NotifyMailer#test_email: processed outbound mail in 0.4ms
437
+
438
+ NotifyMailer#test_email: processed outbound mail in 2.4ms
439
+
440
+ NotifyMailer#test_email: processed outbound mail in 0.4ms
441
+
442
+ NotifyMailer#test_email: processed outbound mail in 95.3ms
443
+
444
+ NotifyMailer#test_email: processed outbound mail in 0.5ms
445
+
446
+ NotifyMailer#test_email: processed outbound mail in 0.4ms
447
+
448
+ NotifyMailer#test_email: processed outbound mail in 0.4ms
449
+
450
+ NotifyMailer#test_email: processed outbound mail in 0.6ms
451
+
452
+ NotifyMailer#test_email: processed outbound mail in 83.9ms
453
+
454
+ NotifyMailer#test_email: processed outbound mail in 0.4ms
455
+
456
+ NotifyMailer#test_email: processed outbound mail in 0.3ms
457
+
458
+ NotifyMailer#test_email: processed outbound mail in 2.4ms
459
+
460
+ NotifyMailer#test_email: processed outbound mail in 0.4ms
@@ -24,7 +24,7 @@ describe GovukNotifyRails::Delivery do
24
24
  end
25
25
 
26
26
  it 'should deliver the message payload' do
27
- expect(notify_client).to receive(:send_email).with('{"to":"email@example.com","template":"template-123","personalisation":{"name":"John"}}')
27
+ expect(notify_client).to receive(:send_email).with({to: 'email@example.com', template: 'template-123', personalisation: {name: 'John'}})
28
28
  subject.deliver!(message)
29
29
  end
30
30
 
@@ -32,7 +32,7 @@ describe GovukNotifyRails::Delivery do
32
32
  let(:personalisation) { nil }
33
33
 
34
34
  it 'supports message without personalisation' do
35
- expect(notify_client).to receive(:send_email).with('{"to":"email@example.com","template":"template-123"}')
35
+ expect(notify_client).to receive(:send_email).with({to: 'email@example.com', template: 'template-123'})
36
36
  subject.deliver!(message)
37
37
  end
38
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_notify_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesus Laiz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-26 00:00:00.000000000 Z
11
+ date: 2016-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.1.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 5.0.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,23 @@ dependencies:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: 4.1.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 5.0.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: notifications-ruby-client
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: 1.0.0
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 1.0.0
27
47
  - !ruby/object:Gem::Dependency
28
48
  name: bundler
29
49
  requirement: !ruby/object:Gem::Requirement