nifty-email 0.0.3 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 265b030cebf93aea24952d570bf5de1e3bd26c4e
4
- data.tar.gz: 0deb03aa77c8bcf9c881c4c29fad947deed678ca
3
+ metadata.gz: aec947947c09cb254e26814c2b1496564a1bf3af
4
+ data.tar.gz: 5b5d281625118af3c8efb5e90d4cb29b053a3f76
5
5
  SHA512:
6
- metadata.gz: 7804c868170a9ef6dc7b1f3be795c8d01e156665e109df9532865e8143884d6d42bba84f5526072be706f97cccdb2c1546810d82159bb504ec86a84e1377a6a2
7
- data.tar.gz: b37741dd57fcace6981a665f50e192054a76c835b0fa14755ec0e23ba13fd6ec2a9a9f6a6f0a88e6c1ba5f6d8a23fb50712c730379e93a2a86c4db62bb378162
6
+ metadata.gz: f5ee3c832ae7945d7428be4f0381500b1d7963b9b8190ddac9e23f42dffc39989d1bf47a24b5f0ea002418799d7049dddd423e531aa1a2cf09d66d3aefda257c
7
+ data.tar.gz: 2e20a1a2fd300eabbb69f35154c559fd7264dbc6b23452df19b6f4e5c81a59bab4fdd2ce33f6fba028ad14d24e37e06ffe344b872a572dc7d23575b7df73975f
data/README.md CHANGED
@@ -39,6 +39,15 @@ NiftyEmail.token = '123abc'
39
39
 
40
40
  email = NiftyEmail.get_email('awesome-email', full_name: 'Jim Tom')
41
41
 
42
+ mail(
43
+ to: 'jimtom@example.com',
44
+ subject: 'Welcome!',
45
+ body: email.html,
46
+ content_type: 'text/html'
47
+ )
48
+
49
+ # or with HTML and text parts
50
+
42
51
  mail(to: 'jimtom@example.com', subject: 'Welcome!') do |format|
43
52
  format.html { email.html }
44
53
  format.text { email.text }
@@ -1,5 +1,5 @@
1
1
  module Nifty
2
2
  module Email
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nifty-email
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Albertson