textr 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.markdown +42 -1
  2. data/lib/textr/version.rb +1 -1
  3. metadata +3 -3
data/README.markdown CHANGED
@@ -41,4 +41,45 @@ Simply call `Textr.send_sms` and pass the number with the hash.
41
41
 
42
42
  $ rails c
43
43
  >> Textr.send_sms :number => '123-456-7890', :body => 'Hello World!', :carrier => 'att'
44
- => #<Mail::Message:12345>
44
+ => #<Mail::Message:12345>
45
+
46
+ ### Transport
47
+
48
+ textr relies on Pony (https://github.com/benprew/pony) for mail transport which uses /usr/sbin/sendmail to send mail if it is available, otherwise it uses SMTP to localhost. To add custom SMTP config
49
+
50
+ rake textr:config:smtp
51
+
52
+ This will generate `config/textr_smtp.yml`, add your custom SMTP settings
53
+
54
+ development:
55
+ protocol: smtp
56
+ from: email@example.com
57
+ address: smtp.yourserver.com
58
+ port: 25
59
+ ssl: true
60
+ username: user
61
+ password: password
62
+ authentication: plain
63
+ domain: localhost.localdomain
64
+
65
+ test:
66
+ protocol: smtp
67
+ from: email@example.com
68
+ address: smtp.yourserver.com
69
+ port: 25
70
+ ssl: true
71
+ username: user
72
+ password: password
73
+ authentication: plain
74
+ domain: localhost.localdomain
75
+
76
+ production:
77
+ protocol: smtp
78
+ from: email@example.com
79
+ address: smtp.yourserver.com
80
+ port: 25
81
+ ssl: true
82
+ username: user
83
+ password: password
84
+ authentication: plain
85
+ domain: localhost.localdomain
data/lib/textr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Textr
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: textr
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Forrest Grant