sms_fu 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +21 -22
- data/sms_fu.gemspec +4 -4
- metadata +6 -7
data/README.rdoc
CHANGED
@@ -13,15 +13,10 @@ Powertel, PSC Wireless, Qwest, Rogers, Southern Link, Sprint, Suncom,
|
|
13
13
|
T-Mobile (US/UK/Germany), Telefonica, Tracfone, Virgin Mobile, Verizon Wireless,
|
14
14
|
Vodafone (UK, Egypt, Italy, Japan, Spain), and many more ...
|
15
15
|
|
16
|
-
== Opt-In Warning for Some International Carriers
|
17
|
-
|
18
16
|
Some International carriers require that their users subscribe to an Email to SMS
|
19
17
|
feature before they are able to receive SMS messages this way. If one your users
|
20
18
|
mentions that they are not receiving their messages, chances are it is due to this
|
21
|
-
limitation.
|
22
|
-
|
23
|
-
Some carriers that need this include, Mobitel, Etisalat, T-Mobile (Netherlands),
|
24
|
-
etc.
|
19
|
+
limitation. Some of these carriers are include, Mobitel, Etisalat, T-Mobile (Netherlands).
|
25
20
|
|
26
21
|
== Requirements
|
27
22
|
|
@@ -70,30 +65,34 @@ etc.
|
|
70
65
|
:action_mailer.
|
71
66
|
|
72
67
|
* If you would like to use Pony, you can configure it to use :sendmail or :smtp via
|
73
|
-
Pony. Set the :delivery option to :pony and then make sure to
|
74
|
-
|
68
|
+
Pony. Set the :delivery option to :pony and then make sure to include :pony_config
|
69
|
+
as well
|
75
70
|
|
76
71
|
# ActionMailer delivery
|
77
|
-
sms_fu = SMSFu.configure(:action_mailer)
|
72
|
+
sms_fu = SMSFu::Client.configure(:delivery => :action_mailer)
|
78
73
|
|
79
74
|
# Pony delivery via Sendmail
|
80
|
-
sms_fu = SMSFu.configure(:pony, :
|
75
|
+
sms_fu = SMSFu::Client.configure(:delivery => :pony, :pony_config => { :via => :sendmail })
|
81
76
|
|
82
77
|
# Pony delivery via SMTP
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
78
|
+
PONY_CONFIG = {
|
79
|
+
:via => :smtp,
|
80
|
+
:via_options => {
|
81
|
+
:address => 'smtp.gmail.com',
|
82
|
+
:port => '587',
|
83
|
+
:user_name => 'username',
|
84
|
+
:password => 'password',
|
85
|
+
:authentication => :plain,
|
86
|
+
:enable_starttls_auto => true,
|
87
|
+
:domain => "localhost.localdomain"
|
88
|
+
}}
|
89
|
+
|
90
|
+
sms_fu = SMSFu::Client.configure(:delivery => :pony, :pony_config => PONY_CONFIG)
|
93
91
|
|
94
92
|
* You can view more pony 'via_options' at http://github.com/benprew/pony
|
95
93
|
|
96
|
-
|
94
|
+
|
95
|
+
* Basic SMS delivery
|
97
96
|
|
98
97
|
sms_fu.deliver("5558675309","at&t","message")
|
99
98
|
|
@@ -110,7 +109,7 @@ etc.
|
|
110
109
|
|
111
110
|
* You can retrieve just the formatted address to use in your own mailer.
|
112
111
|
|
113
|
-
|
112
|
+
SMSFu.sms_address("5558675309","at&t") # => "5558675309@txt.att.net"
|
114
113
|
|
115
114
|
== View Helpers (Rails)
|
116
115
|
|
data/sms_fu.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{sms_fu}
|
5
|
-
s.version = "1.1.
|
5
|
+
s.version = "1.1.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Brendan G. Lim"]
|
@@ -42,14 +42,14 @@ Gem::Specification.new do |s|
|
|
42
42
|
s.specification_version = 3
|
43
43
|
|
44
44
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
45
|
-
s.add_development_dependency(%q<action_mailer>, [">= 3.0.0
|
45
|
+
s.add_development_dependency(%q<action_mailer>, [">= 3.0.0"])
|
46
46
|
s.add_development_dependency(%q<pony>, [">= 1.0"])
|
47
47
|
else
|
48
|
-
s.add_dependency(%q<action_mailer>, [">= 3.0.0
|
48
|
+
s.add_dependency(%q<action_mailer>, [">= 3.0.0"])
|
49
49
|
s.add_dependency(%q<pony>, [">= 1.0"])
|
50
50
|
end
|
51
51
|
else
|
52
|
-
s.add_dependency(%q<action_mailer>, [">= 3.0.0
|
52
|
+
s.add_dependency(%q<action_mailer>, [">= 3.0.0"])
|
53
53
|
s.add_dependency(%q<pony>, [">= 1.0"])
|
54
54
|
end
|
55
55
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sms_fu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 2
|
10
|
+
version: 1.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Brendan G. Lim
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-23 00:00:00 -
|
18
|
+
date: 2010-08-23 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,13 +26,12 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 7
|
30
30
|
segments:
|
31
31
|
- 3
|
32
32
|
- 0
|
33
33
|
- 0
|
34
|
-
|
35
|
-
version: 3.0.0.rc2
|
34
|
+
version: 3.0.0
|
36
35
|
type: :development
|
37
36
|
version_requirements: *id001
|
38
37
|
- !ruby/object:Gem::Dependency
|