telesms 0.1.2 → 0.1.3
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +4 -4
- data/config/gateways.yml +202 -21
- data/lib/telesms/version.rb +1 -1
- data/spec/base_spec.rb +1 -1
- data/spec/incoming_spec.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: babf1c806e144613d66667e128f08f6516764f67
|
|
4
|
+
data.tar.gz: b8e84e0029ae2853e62e4a415a5ae2e85e0f03ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f697540eea663f0e2eed24a0f36fc72df6d7f58a091b6c8f5647a8189a1cce1484bcd2a96276e59fae920b4402cda2d016dbd3da08681a91e4764132f67aaadb
|
|
7
|
+
data.tar.gz: da67b2e6843559b06a4baa0f4dc011342be41ce58d2c2292b7fcc16329efe9e3fcaa962f203662d7b40d1fef59fe38813e874c6464e0cf744841a22b08a3b75d
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
telesms (0.1.
|
|
4
|
+
telesms (0.1.3)
|
|
5
5
|
mail (~> 2.5)
|
|
6
6
|
rails (> 3.0.0)
|
|
7
7
|
|
|
@@ -34,7 +34,7 @@ GEM
|
|
|
34
34
|
minitest (~> 5.1)
|
|
35
35
|
thread_safe (~> 0.1)
|
|
36
36
|
tzinfo (~> 1.1)
|
|
37
|
-
arel (5.0.
|
|
37
|
+
arel (5.0.1.20140414130214)
|
|
38
38
|
builder (3.2.2)
|
|
39
39
|
diff-lcs (1.2.5)
|
|
40
40
|
docile (1.1.3)
|
|
@@ -50,7 +50,7 @@ GEM
|
|
|
50
50
|
mime-types (1.25.1)
|
|
51
51
|
minitest (5.3.2)
|
|
52
52
|
multi_json (1.9.2)
|
|
53
|
-
polyglot (0.3.
|
|
53
|
+
polyglot (0.3.5)
|
|
54
54
|
rack (1.5.2)
|
|
55
55
|
rack-test (0.6.2)
|
|
56
56
|
rack (>= 1.0)
|
|
@@ -102,7 +102,7 @@ GEM
|
|
|
102
102
|
multi_json (~> 1.0)
|
|
103
103
|
rack (~> 1.0)
|
|
104
104
|
tilt (~> 1.1, != 1.3.0)
|
|
105
|
-
sprockets-rails (2.1.
|
|
105
|
+
sprockets-rails (2.1.3)
|
|
106
106
|
actionpack (>= 3.0)
|
|
107
107
|
activesupport (>= 3.0)
|
|
108
108
|
sprockets (~> 2.8)
|
data/config/gateways.yml
CHANGED
|
@@ -1,45 +1,226 @@
|
|
|
1
|
+
'3 River Wireless':
|
|
2
|
+
:sms: sms.3rivers.net
|
|
3
|
+
'7-11 Speakout (USA GSM)':
|
|
4
|
+
:sms: cingularme.com
|
|
5
|
+
'Advantage Communications':
|
|
6
|
+
:sms: advantagepaging.com
|
|
7
|
+
'AIO Wireless':
|
|
8
|
+
:sms: mms.aiowireless.net
|
|
9
|
+
:mms: mms.aiowireless.net
|
|
10
|
+
'Airtel (Karnataka, India)':
|
|
11
|
+
:sms: airtelkk.com
|
|
12
|
+
'Airtel Wireless (Montana, USA)':
|
|
13
|
+
:sms: sms.airtelmontana.com
|
|
14
|
+
'AirVoice':
|
|
15
|
+
:sms: mmode.com
|
|
16
|
+
'Alaska Communications Systems':
|
|
17
|
+
:sms: msg.acsalaska.com
|
|
1
18
|
'Alltel':
|
|
2
19
|
:sms: message.alltel.com
|
|
3
|
-
'
|
|
4
|
-
:sms:
|
|
20
|
+
'Aql':
|
|
21
|
+
:sms: text.aql.com
|
|
22
|
+
'Arch Wireless':
|
|
23
|
+
:sms: archwireless.net
|
|
24
|
+
:mms: archwireless.net
|
|
25
|
+
'Assurance Wireless':
|
|
26
|
+
:sms: vmobl.com
|
|
27
|
+
:mms: vmobl.com
|
|
5
28
|
'AT&T':
|
|
6
29
|
:sms: txt.att.net
|
|
7
30
|
:mms: mms.att.net
|
|
8
|
-
'
|
|
9
|
-
:sms:
|
|
10
|
-
'
|
|
11
|
-
:sms:
|
|
12
|
-
'
|
|
13
|
-
:sms:
|
|
31
|
+
'AT&T Enterprise Paging':
|
|
32
|
+
:sms: page.att.net
|
|
33
|
+
'BeeLine GSM (Russia)':
|
|
34
|
+
:sms: sms.beemail.ru
|
|
35
|
+
'Bell Mobility & Solo Mobile (Canada)':
|
|
36
|
+
:sms: txt.bell.ca
|
|
37
|
+
'BigRedGiant Mobile Solutions':
|
|
38
|
+
:sms: tachyonsms.co.uk
|
|
39
|
+
'Bluegrass Cellular':
|
|
40
|
+
:sms: sms.bluecell.com
|
|
14
41
|
'Boost Mobile':
|
|
15
42
|
:sms: myboostmobile.com
|
|
16
|
-
'
|
|
17
|
-
:sms:
|
|
43
|
+
'BPL Mobile (Mumbai, India)':
|
|
44
|
+
:sms: bplmobile.com
|
|
45
|
+
'CallPlus':
|
|
46
|
+
:sms: mmode.com
|
|
47
|
+
'Carolina Mobile Communications':
|
|
48
|
+
:sms: cmcpaging.com
|
|
49
|
+
'Cellular One (Dobson)':
|
|
50
|
+
:sms: mobile.celloneusa.com
|
|
51
|
+
'Centennial Wireless':
|
|
52
|
+
:sms: cwemail.com
|
|
18
53
|
'Cingular':
|
|
19
54
|
:sms: cingularme.com
|
|
20
|
-
'
|
|
21
|
-
:sms:
|
|
55
|
+
'Claro (Brasil)':
|
|
56
|
+
:sms: clarotorpedo.com.br
|
|
57
|
+
'Claro (Nicaragua)':
|
|
58
|
+
:sms: ideasclaro-ca.com
|
|
59
|
+
'Comcel':
|
|
60
|
+
:sms: comcel.com.co
|
|
61
|
+
'Consumar Cellular':
|
|
62
|
+
:sms: cingularme.com
|
|
63
|
+
:mms: cingularme.com
|
|
64
|
+
'Credo':
|
|
65
|
+
:sms: messaging.sprintpcs.com
|
|
66
|
+
:mms: pm.sprint.com
|
|
22
67
|
'Cricket':
|
|
23
|
-
:sms:
|
|
24
|
-
'
|
|
25
|
-
:sms:
|
|
26
|
-
|
|
68
|
+
:sms: mycricket.com
|
|
69
|
+
'C-Spire Wireless':
|
|
70
|
+
:sms: cspire1.com
|
|
71
|
+
:mms: cspire1.com
|
|
72
|
+
'CTI':
|
|
73
|
+
:sms: sms.ctimovil.com.ar
|
|
74
|
+
'Emtel (Mauritius)':
|
|
75
|
+
:sms: emtelworld.net
|
|
76
|
+
'Fido (Canada)':
|
|
77
|
+
:sms: fido.ca
|
|
78
|
+
'General Communications Inc.':
|
|
79
|
+
:sms: msg.gci.net
|
|
80
|
+
'Globalstar (satellite)':
|
|
81
|
+
:sms: msg.globalstarusa.com
|
|
82
|
+
'Golden Telecom':
|
|
83
|
+
:sms: sms.goldentele.com
|
|
84
|
+
'H2O Wireless':
|
|
85
|
+
:sms: txt.att.net
|
|
86
|
+
:mms: mms.att.net
|
|
87
|
+
'Helio':
|
|
88
|
+
:sms: messaging.sprintpcs.com
|
|
89
|
+
'Houston Cellular':
|
|
90
|
+
:sms: text.houstoncellular.net
|
|
91
|
+
'Idea India':
|
|
92
|
+
:sms: ideacellular.net
|
|
93
|
+
'Illinois Valley Cellular':
|
|
94
|
+
:sms: ivctext.com
|
|
95
|
+
'Iridium (satellite)':
|
|
96
|
+
:sms: msg.iridium.com
|
|
97
|
+
'Iusacell':
|
|
98
|
+
:sms: rek2.com.mx
|
|
99
|
+
'I wireless':
|
|
100
|
+
:sms: .iwsiwspcs.net
|
|
101
|
+
'Koodo Mobile (Canada)':
|
|
102
|
+
:sms: msg.koodomobile.com
|
|
103
|
+
'Kyivstar':
|
|
104
|
+
:sms: 2sms.kyivstar.net
|
|
105
|
+
'Lebanon MTC':
|
|
106
|
+
:sms: mtctouch.com.lb
|
|
107
|
+
:mms: mtctouch.com.lb
|
|
108
|
+
'LMT (Latvia)':
|
|
109
|
+
:sms: sms.lmt.lv
|
|
110
|
+
'MCI Phone':
|
|
111
|
+
:sms: mci.com
|
|
112
|
+
'Meteor (Ireland)':
|
|
113
|
+
:sms: sms.mymeteor.ie
|
|
114
|
+
'MetroPCS':
|
|
27
115
|
:sms: mymetropcs.com
|
|
116
|
+
'Midwest Wireless':
|
|
117
|
+
:sms: clearlydigital.com
|
|
118
|
+
'MobiPCS (Hawaii only)':
|
|
119
|
+
:sms: mobipcs.net
|
|
120
|
+
'Mobitel (Sri Lanka)':
|
|
121
|
+
:sms: sms.mobitel.lk
|
|
122
|
+
'Morris Wireless':
|
|
123
|
+
:sms: beepone.net
|
|
124
|
+
'Movicom (Argentina)':
|
|
125
|
+
:sms: sms.movistar.net.ar
|
|
126
|
+
'Movistar (Colombia)':
|
|
127
|
+
:sms: movistar.com.co
|
|
128
|
+
'MTN Ghana':
|
|
129
|
+
:sms: mtn.com.gh
|
|
130
|
+
:mms: mtn.com.gh
|
|
131
|
+
'MTN (South Africa)':
|
|
132
|
+
:sms: sms.co.za
|
|
133
|
+
'MTS (Canada)':
|
|
134
|
+
:sms: text.mtsmobility.com
|
|
135
|
+
'NET10':
|
|
136
|
+
:sms: txt.att.net
|
|
137
|
+
:mms: mms.att.net
|
|
28
138
|
'Nextel':
|
|
29
139
|
:sms: messaging.nextel.com
|
|
140
|
+
'NPI Wireless':
|
|
141
|
+
:sms: npiwireless.com
|
|
30
142
|
'Ntelos':
|
|
31
143
|
:sms: pcs.ntelos.com
|
|
32
|
-
'
|
|
33
|
-
:sms:
|
|
144
|
+
'Omnipoint':
|
|
145
|
+
:sms: omnipoint.com
|
|
146
|
+
'Pacific Bell':
|
|
147
|
+
:sms: pacbellpcs.net
|
|
148
|
+
'Page Plus':
|
|
149
|
+
:sms: vtext.com
|
|
150
|
+
:mms: mms.vwz.com
|
|
151
|
+
'Personal (Argentina)':
|
|
152
|
+
:sms: alertas.personal.com.ar
|
|
153
|
+
'President’s Choice (Canada)':
|
|
154
|
+
:sms: txt.bell.ca
|
|
155
|
+
'Primtel (Russia)':
|
|
156
|
+
:sms: sms.primtel.ru
|
|
157
|
+
'Qualcomm':
|
|
158
|
+
:sms: pager.qualcomm.com
|
|
159
|
+
'Qwest':
|
|
160
|
+
:sms: qwestmp.com
|
|
161
|
+
'Republic Wireless':
|
|
162
|
+
:sms: messaging.sprintpcs.com
|
|
163
|
+
'Revol':
|
|
164
|
+
:sms: mms.revol.com
|
|
165
|
+
:mms: mms.revol.com
|
|
166
|
+
'Rogers (Canada)':
|
|
167
|
+
:sms: pcs.rogers.com
|
|
168
|
+
'Sasktel (Canada)':
|
|
169
|
+
:sms: sms.sasktel.com
|
|
170
|
+
'SCS-900 (Russia)':
|
|
171
|
+
:sms: scs-900.ru
|
|
172
|
+
'Simple Freedom':
|
|
173
|
+
:sms: text.simplefreedom.net
|
|
174
|
+
'Simple Mobile':
|
|
175
|
+
:sms: smtext.com
|
|
176
|
+
'SL Interactive (Australia)':
|
|
177
|
+
:sms: slinteractive.com.au
|
|
34
178
|
'Sprint':
|
|
35
179
|
:sms: messaging.sprintpcs.com
|
|
36
180
|
:mms: pm.sprint.com
|
|
181
|
+
'Straight Talk':
|
|
182
|
+
:sms: vtext.com
|
|
183
|
+
:mms: mypixmessages.com
|
|
184
|
+
'Suncom':
|
|
185
|
+
:sms: tms.suncom.com
|
|
186
|
+
'Telus Mobility (Canada)':
|
|
187
|
+
:sms: msg.telus.com
|
|
188
|
+
'Thumb Cellular':
|
|
189
|
+
:sms: sms.thumbcellular.com
|
|
37
190
|
'T-Mobile':
|
|
38
191
|
:sms: tmomail.net
|
|
39
|
-
'
|
|
192
|
+
'T-Mobile (Austria)':
|
|
193
|
+
:sms: sms.t-mobile.at
|
|
194
|
+
'T-Mobile (UK)':
|
|
195
|
+
:sms: t-mobile.uk.net
|
|
196
|
+
'Tracfone (prepaid)':
|
|
197
|
+
:sms: mmst5.tracfone.com
|
|
198
|
+
'Triton':
|
|
199
|
+
:sms: tms.suncom.com
|
|
200
|
+
'UMC (Ukraine)':
|
|
201
|
+
:sms: sms.umc.com.ua
|
|
202
|
+
'Unicel':
|
|
203
|
+
:sms: utext.com
|
|
204
|
+
'Uraltel (Russia)':
|
|
205
|
+
:sms: sms.uraltel.ru
|
|
206
|
+
'US Cellular':
|
|
207
|
+
:sms: email.uscc.net
|
|
208
|
+
'Verizon Wireless':
|
|
40
209
|
:sms: vtext.com
|
|
41
210
|
:mms: vzwpix.com
|
|
42
|
-
'
|
|
211
|
+
'Vessotel (Russia)':
|
|
212
|
+
:sms: pager.irkutsk.ru
|
|
213
|
+
'Virgin Mobile (Canada)':
|
|
43
214
|
:sms: vmobile.ca
|
|
44
215
|
'Virgin Mobile USA':
|
|
45
|
-
:sms: vmobl.com
|
|
216
|
+
:sms: vmobl.com
|
|
217
|
+
'Vodacom (South Africa)':
|
|
218
|
+
:sms: voda.co.za
|
|
219
|
+
'Vodafone (Italy)':
|
|
220
|
+
:sms: sms.vodafone.it
|
|
221
|
+
'Western Wireless':
|
|
222
|
+
:sms: cellularonewest.com
|
|
223
|
+
'Wyndtell':
|
|
224
|
+
:sms: wyndtell.com
|
|
225
|
+
'YCC':
|
|
226
|
+
:sms: sms.ycc.ru
|
data/lib/telesms/version.rb
CHANGED
data/spec/base_spec.rb
CHANGED
data/spec/incoming_spec.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
describe Telesms::Incoming do
|
|
2
2
|
let(:klass) { Telesms::Incoming }
|
|
3
3
|
let(:params) {{
|
|
4
|
-
from: ['555555555@
|
|
4
|
+
from: ['555555555@pacbellpcs.net'],
|
|
5
5
|
to: ['444444444@example.com'],
|
|
6
6
|
body: Faker::Lorem.sentence
|
|
7
7
|
}}
|
|
@@ -66,7 +66,7 @@ describe Telesms::Incoming do
|
|
|
66
66
|
subject { incoming_message.gateway_host }
|
|
67
67
|
|
|
68
68
|
context "when email is valid" do
|
|
69
|
-
it { should eq '
|
|
69
|
+
it { should eq 'pacbellpcs.net' }
|
|
70
70
|
end
|
|
71
71
|
|
|
72
72
|
context "when email is invalid" do
|
|
@@ -79,12 +79,12 @@ describe Telesms::Incoming do
|
|
|
79
79
|
subject { incoming_message.provider }
|
|
80
80
|
|
|
81
81
|
context "with a matching sms gateway" do
|
|
82
|
-
it { should eq '
|
|
82
|
+
it { should eq 'Pacific Bell' }
|
|
83
83
|
end
|
|
84
84
|
|
|
85
85
|
context "with a matching mms gateway" do
|
|
86
|
-
before { params[:from] = '555555555@
|
|
87
|
-
it { should eq '
|
|
86
|
+
before { params[:from] = '555555555@mtn.com.gh' }
|
|
87
|
+
it { should eq 'MTN Ghana' }
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
context "with no matching gateways" do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: telesms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Artem Kalinchuk
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-07-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|