send_grid_mailer 0.1.1 → 0.2.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: f027dad06f1c545551259690b64a47bc39708406
4
- data.tar.gz: 2a1ad0d294a9bfede02c71990664e2a489ac0a55
3
+ metadata.gz: fdd61bbf033ebcabc79a5bd6c0ae125644e77f5a
4
+ data.tar.gz: 9b1c250b7d7246f287930d82aef47ac29d448b73
5
5
  SHA512:
6
- metadata.gz: 8cf238dda54f04539b5178b3df948a20267107724d8eb45fe39cc61ae2278052be1274ea4a929bd13b8cab75ce6468573fe9ccdbad93a7e858275eac50f246ee
7
- data.tar.gz: ab453ecd804e6e4d81461918344c84d0de13d6944139cbd296f1d4bdbd2fcc751d261fabd8810b7b4f31337d77a0a88df1548d9b490ccdd509d6a1d5301ff94f
6
+ metadata.gz: 7b11350a5b23d073ea37952ed97b71aa1410589f0c4895400ee9b78ec67fe0eb246d25e810e298f60d0b843a3a3be3f7ccd8c782636e90c0f0b16977863f343d
7
+ data.tar.gz: 192f1296c1a3553e65bb48a64dd6519d4f03c4e95a1757aac3ed378398e134d32c9b665d41b2779e17bd732ea592e4ac40efd1b2c117c968643f6a75c344781c
data/CHANGELOG.md CHANGED
@@ -2,11 +2,17 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ### v0.2.0
6
+
7
+ ##### Changed
8
+
9
+ * Removes useless colorize gem.
10
+
5
11
  ### v0.1.1
6
12
 
7
13
  ##### Fixed
8
14
 
9
- * Logger fails with empty sender.
15
+ * Logger fails with empty sender.
10
16
 
11
17
  ### v0.1.0
12
18
 
data/Gemfile.lock CHANGED
@@ -1,8 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- send_grid_mailer (0.1.1)
5
- colorize (~> 0.7, >= 0.7.7)
4
+ send_grid_mailer (0.2.0)
6
5
  rails (~> 4.2, >= 4.2.0)
7
6
  sendgrid-ruby (~> 4.0, >= 4.0.4)
8
7
 
@@ -47,7 +46,6 @@ GEM
47
46
  arel (6.0.3)
48
47
  builder (3.2.2)
49
48
  coderay (1.1.1)
50
- colorize (0.8.1)
51
49
  concurrent-ruby (1.0.2)
52
50
  diff-lcs (1.2.5)
53
51
  erubis (2.7.0)
@@ -23,7 +23,7 @@ module SendGridMailer
23
23
 
24
24
  data = data.keys.map do |k|
25
25
  d = data[k].to_s
26
- "#{k.light_blue}: #{(d.blank? ? '-' : d).light_yellow}"
26
+ "#{k}: #{(d.blank? ? '-' : d)}"
27
27
  end.join("\n")
28
28
 
29
29
  Rails.logger.info("\n#{data}")
@@ -31,12 +31,12 @@ module SendGridMailer
31
31
  # rubocop:enable Metrics/AbcSize, Metrics/MethodLength
32
32
 
33
33
  def log_result(response)
34
- msg = "The E-mail was successfully sent :)\nStatus Code: #{response.status_code}".green
34
+ msg = "The E-mail was successfully sent :)\nStatus Code: #{response.status_code}"
35
35
 
36
36
  if response.status_code != "202"
37
37
  msg = "The E-mail was not sent :(\nStatus Code: #{response.status_code}\nErrors:"
38
38
  msg += log_errors(response.body)
39
- msg = msg.red
39
+ msg = msg
40
40
  end
41
41
 
42
42
  Rails.logger.info("\n#{msg}")
@@ -1,3 +1,3 @@
1
1
  module SendGridMailer
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -1,4 +1,3 @@
1
- require "colorize"
2
1
  require "sendgrid-ruby"
3
2
  require "send_grid_mailer/engine"
4
3
 
@@ -21,7 +21,6 @@ Gem::Specification.new do |s|
21
21
 
22
22
  s.add_dependency "rails", "~> 4.2", ">= 4.2.0"
23
23
  s.add_dependency "sendgrid-ruby", "~> 4.0", ">= 4.0.4"
24
- s.add_dependency "colorize", "~> 0.7", ">= 0.7.7"
25
24
  s.add_development_dependency "pry"
26
25
  s.add_development_dependency "pry-rails"
27
26
  s.add_development_dependency "sqlite3"
@@ -1982,3 +1982,61 @@ TestMailer#test_email: processed outbound mail in 31.1ms
1982
1982
  </html>
1983
1983
  
1984
1984
  Attachments: -
1985
+
1986
+ TestMailer#from_email: processed outbound mail in 6.0ms
1987
+
1988
+ Subject: From email
1989
+ Template ID: -
1990
+ From: override@platan.us
1991
+ To: -
1992
+ Cc: -
1993
+ Bcc: -
1994
+ Substitutions: -
1995
+ Headers: -
1996
+ body:
1997
+ type: text/plain
1998
+ value: X
1999
+ Attachments: -
2000
+
2001
+ The E-mail was not sent :(
2002
+ Status Code: 401
2003
+ Errors:
2004
+ * The provided authorization grant is invalid, expired, or revoked
2005
+
2006
+ TestMailer#from_email: processed outbound mail in 5.8ms
2007
+
2008
+ Subject: From email
2009
+ Template ID: -
2010
+ From: override@platan.us
2011
+ To: -
2012
+ Cc: -
2013
+ Bcc: -
2014
+ Substitutions: -
2015
+ Headers: -
2016
+ body:
2017
+ type: text/plain
2018
+ value: X
2019
+ Attachments: -
2020
+
2021
+ The E-mail was not sent :(
2022
+ Status Code: 400
2023
+ Errors:
2024
+ * personalizations.0.to: The to array is required for all personalization objects, and must have at least one email object with a valid email address. - help: http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.personalizations.to
2025
+
2026
+ TestMailer#recipients_email: processed outbound mail in 0.4ms
2027
+
2028
+ Subject: Recipients email
2029
+ Template ID: -
2030
+ From: default-sender@platan.us
2031
+ To: r1@platan.us, r2@platan.us
2032
+ Cc: r4@platan.us
2033
+ Bcc: r5@platan.us
2034
+ Substitutions: -
2035
+ Headers: -
2036
+ body:
2037
+ type: text/plain
2038
+ value: X
2039
+ Attachments: -
2040
+
2041
+ The E-mail was successfully sent :)
2042
+ Status Code: 202
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: send_grid_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platanus
@@ -51,26 +51,6 @@ dependencies:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: 4.0.4
54
- - !ruby/object:Gem::Dependency
55
- name: colorize
56
- requirement: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: '0.7'
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: 0.7.7
64
- type: :runtime
65
- prerelease: false
66
- version_requirements: !ruby/object:Gem::Requirement
67
- requirements:
68
- - - "~>"
69
- - !ruby/object:Gem::Version
70
- version: '0.7'
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: 0.7.7
74
54
  - !ruby/object:Gem::Dependency
75
55
  name: pry
76
56
  requirement: !ruby/object:Gem::Requirement