mailqun 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/mailqun +4 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c0fdc3acae67676219749323e59fafa7cd74fd2e
4
- data.tar.gz: a3e952cb73c21297ce6b328fb5d80756dda882dd
3
+ metadata.gz: a6fb93beeb19169d7babb25af4ba82437ddb4128
4
+ data.tar.gz: 74770a11fceebcd33720dfa8eef25885458de5fd
5
5
  SHA512:
6
- metadata.gz: 9fbd215daa148fce2e2d201be76988c34b58ead94571d035085745b592e54445bbe2f1945b05eaaec8feef581030bebc006d8eb2745bad6f78220b141f3d45a8
7
- data.tar.gz: c5de63cd6d14a7f600ce83a4a161bc45a71f955d1da595affb19399135e6798d7617eee0b3962e9c3e8abf1cdfb605b3b01920422696428f512988ad16270c2b
6
+ metadata.gz: 8c12b80fcba5d1082ef62a6a48b4d92b62f72215d45b475b400e2402c774d9946e33057819bf0e2bc4451a8000e585dab787fcb7767c9f5f2d61c2039d705956
7
+ data.tar.gz: 62bf63ee66d3bcd2542b8a2986cfbac98bd57e6e0963ee3f54184ea368fb2983064bd158955563f4acf9eed8daba8c8f763ca31fa1590903380cafe71bb51419
data/mailqun CHANGED
@@ -71,8 +71,11 @@ def pretty_print_event_item item
71
71
  pretty_line = "#{pretty_line} #{item['recipient']}"
72
72
 
73
73
  if event == 'FAILED'
74
+ error_description = item['delivery-status']['description']
75
+ error_description = item['delivery-status']['message'] if error_description.empty?
74
76
  pretty_line = "#{pretty_line}\t- #{item['delivery-status']['code']}"\
75
- " - #{item['delivery-status']['description']}"
77
+ " - #{error_description}"
78
+
76
79
  puts "#{pretty_line}".red
77
80
  elsif ['DELIVERED', 'OPENED'].include? event
78
81
  puts "#{pretty_line}".green
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailqun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harman Singh