telesms 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb6af80408db9246193faf4159c808f6f05f08fa
4
- data.tar.gz: 9e1db03ddcd1fa2f981969cd725c93b2e26a6696
3
+ metadata.gz: babf1c806e144613d66667e128f08f6516764f67
4
+ data.tar.gz: b8e84e0029ae2853e62e4a415a5ae2e85e0f03ca
5
5
  SHA512:
6
- metadata.gz: 1a4d687e95ca75b3a4979fbd3050110e4177bd8e9ef01571dc3a91ba626fb3fa65bd7d29d6c948ba10d60f77858251cc247470e56257440a057ef62c3f500869
7
- data.tar.gz: 60c02d90fb4732af5d93b62dc76065838a194a1265d020b840a360dd3eacde280f1e1a5c8cfd12cea1874944f9c9902aa2febf757fdeaee126d94dc99e633d74
6
+ metadata.gz: f697540eea663f0e2eed24a0f36fc72df6d7f58a091b6c8f5647a8189a1cce1484bcd2a96276e59fae920b4402cda2d016dbd3da08681a91e4764132f67aaadb
7
+ data.tar.gz: da67b2e6843559b06a4baa0f4dc011342be41ce58d2c2292b7fcc16329efe9e3fcaa962f203662d7b40d1fef59fe38813e874c6464e0cf744841a22b08a3b75d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # Version 0.1.3 - 15 July 2014
2
+
3
+ * Add more gateways
4
+
1
5
  # Version 0.1.0 - 7 April 2014
2
6
 
3
7
  * Initial release
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- telesms (0.1.2)
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.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.4)
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.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
- 'Ameritech':
4
- :sms: paging.acswireless.com
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
- 'Bell Atlantic':
9
- :sms: message.bam.com
10
- 'Bellsouth Mobility':
11
- :sms: blsdcs.net
12
- 'BlueSkyFrog':
13
- :sms: blueskyfrog.com
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
- 'Cellular South':
17
- :sms: csouth1.com
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
- 'Comcast PCS':
21
- :sms: comcastpcs.textmsg.com
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: sms.mycricket.com
24
- 'Kajeet':
25
- :sms: mobile.kajeet.net
26
- 'Metro PCS':
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
- 'Powertel':
33
- :sms: ptel.net
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
- 'Verizon':
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
- 'Virgin Mobile Canada':
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
@@ -1,3 +1,3 @@
1
1
  module Telesms
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
data/spec/base_spec.rb CHANGED
@@ -5,6 +5,6 @@ describe Telesms::Base do
5
5
  subject { klass.gateways }
6
6
 
7
7
  it { should be_a Hash }
8
- it { should include('Verizon' => { sms: 'vtext.com', mms: 'vzwpix.com' }) }
8
+ it { should include('Verizon Wireless' => { sms: 'vtext.com', mms: 'vzwpix.com' }) }
9
9
  end
10
10
  end
@@ -1,7 +1,7 @@
1
1
  describe Telesms::Incoming do
2
2
  let(:klass) { Telesms::Incoming }
3
3
  let(:params) {{
4
- from: ['555555555@vtext.com'],
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 'vtext.com' }
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 'Verizon' }
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@mms.att.net' }
87
- it { should eq 'AT&T' }
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.2
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-04-10 00:00:00.000000000 Z
11
+ date: 2014-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails