s_mail 0.1.1 → 0.1.2

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/smail/version.rb +1 -1
  3. data/lib/smail.rb +10 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36c5c2a4a3b31b705035c49eedf72e34281f1f24
4
- data.tar.gz: d3e3fa7bb2d6532f798b748846a62c974a5250e6
3
+ metadata.gz: 38e27e01499a2a630ff2a01b638128c9cdb99e66
4
+ data.tar.gz: b1d4f46808fb9df843125d16348576d2597b9fee
5
5
  SHA512:
6
- metadata.gz: 9aaa7457faa94cb9cb2a9e91dc75e05c794fc35488f2db02147417f03ddd3624115c6ac8e162922488c1093b1a4f6ac6e9bcb266b07f9e26e58a5d0ba8937358
7
- data.tar.gz: 051acafc3b72738dad207a8116cb84ef0b309a160dc99001038074940c7b9287970b25e0e50764cf8ad4643c055af4d32f0d60a923c31eb1a4b4d0cbe0d5eadf
6
+ metadata.gz: ad9191871e9c4e580e0b020328c74be4ab0fe23de1f6257099b4dc8d69128299c00b4beec5733dc8121cb53920a96d7ddbb8d772cefa43141e4211efcb26a9dc
7
+ data.tar.gz: 5a7ea92ec7df6c5140280bac2e55ab32c525a709dfc8557196d0ecd5dddfa095111538bfa12f7c463adc9ef12767df2a209e16b95c2d570d7e1ec974d96323dc
data/lib/smail/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Smail
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/smail.rb CHANGED
@@ -1,4 +1,7 @@
1
1
  require 'smail/version'
2
+ require 'mail'
3
+ require 'base64'
4
+ require 'socket'
2
5
 
3
6
  module Smail
4
7
  @@options = {}
@@ -8,7 +11,13 @@ module Smail
8
11
 
9
12
  # Default options can be set so that they don't have to be repeated.
10
13
  #
11
- # Smail.options = { :from => 'noreply@example.com', :via => :smtp, :via_options => { :host => 'smtp.yourserver.com' } }
14
+ # Smail.options = {
15
+ # :from => 'noreply@example.com',
16
+ # :via => :smtp,
17
+ # :via_options => {
18
+ # :host => 'smtp.yourserver.com'
19
+ # }
20
+ # }
12
21
  # Smail.mail(:to => 'foo@bar') # Sends mail to foo@bar from noreply@example.com using smtp
13
22
  # Smail.mail(:from => 'Smail@example.com', :to => 'foo@bar') # Sends mail to foo@bar from Smail@example.com using smtp
14
23
  def self.options=(value)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s_mail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - saroar