smess 1.0.6 → 1.0.7
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/Gemfile.lock +18 -19
- data/lib/smess/country_code_registry.rb +32 -31
- data/lib/smess/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 120a260adbe41f4d3a3533853bd1ee128458c2f6
|
4
|
+
data.tar.gz: 436724827fda3d9ad2bdcf67d995432073129c16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2d1b7f2d61415d357ab1ff5d384eeda71c362b3da753d6f75da24ffebc2b85d427584479d0fd67cdedd2d3d44d6bc01778cc6c5048ea1f2f2badc114bc72e69
|
7
|
+
data.tar.gz: 3a847a9681c8e2e08fdbba1ff7f3259eb4125abd1f086724ebf95dfa969fa300417c9f15d26d3de8e94ec8277aad5f7f18728d602e92e8695df2bd3f78ed7228
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
smess (1.0.
|
4
|
+
smess (1.0.6)
|
5
5
|
activesupport (>= 3.0)
|
6
6
|
clickatell
|
7
7
|
httpi
|
@@ -12,16 +12,15 @@ PATH
|
|
12
12
|
GEM
|
13
13
|
remote: http://rubygems.org/
|
14
14
|
specs:
|
15
|
-
activesupport (4.
|
16
|
-
i18n (~> 0.6, >= 0.6.
|
17
|
-
|
18
|
-
|
15
|
+
activesupport (4.1.1)
|
16
|
+
i18n (~> 0.6, >= 0.6.9)
|
17
|
+
json (~> 1.7, >= 1.7.7)
|
18
|
+
minitest (~> 5.1)
|
19
19
|
thread_safe (~> 0.1)
|
20
|
-
tzinfo (~>
|
21
|
-
akami (1.2.
|
20
|
+
tzinfo (~> 1.1)
|
21
|
+
akami (1.2.2)
|
22
22
|
gyoku (>= 0.4.0)
|
23
|
-
nokogiri
|
24
|
-
atomic (1.1.14)
|
23
|
+
nokogiri
|
25
24
|
builder (3.2.2)
|
26
25
|
clickatell (0.8.2)
|
27
26
|
diff-lcs (1.2.4)
|
@@ -33,19 +32,19 @@ GEM
|
|
33
32
|
i18n (0.6.9)
|
34
33
|
jahtml_formatter (1.0.5)
|
35
34
|
rspec (~> 2.14)
|
36
|
-
|
37
|
-
|
35
|
+
json (1.8.1)
|
36
|
+
jwt (0.1.12)
|
38
37
|
mail (2.5.4)
|
39
38
|
mime-types (~> 1.16)
|
40
39
|
treetop (~> 1.4.8)
|
41
40
|
mime-types (1.25.1)
|
42
|
-
mini_portile (0.5.
|
43
|
-
minitest (
|
41
|
+
mini_portile (0.5.3)
|
42
|
+
minitest (5.3.3)
|
44
43
|
multi_json (1.8.2)
|
45
|
-
nokogiri (1.6.
|
44
|
+
nokogiri (1.6.1)
|
46
45
|
mini_portile (~> 0.5.0)
|
47
46
|
nori (1.1.5)
|
48
|
-
polyglot (0.3.
|
47
|
+
polyglot (0.3.4)
|
49
48
|
rack (1.5.2)
|
50
49
|
rspec (2.14.1)
|
51
50
|
rspec-core (~> 2.14.0)
|
@@ -67,16 +66,16 @@ GEM
|
|
67
66
|
multi_json (~> 1.0)
|
68
67
|
simplecov-html (~> 0.7.1)
|
69
68
|
simplecov-html (0.7.1)
|
70
|
-
thread_safe (0.
|
71
|
-
atomic
|
69
|
+
thread_safe (0.3.3)
|
72
70
|
treetop (1.4.15)
|
73
71
|
polyglot
|
74
72
|
polyglot (>= 0.3.1)
|
75
|
-
twilio-ruby (3.11.
|
73
|
+
twilio-ruby (3.11.5)
|
76
74
|
builder (>= 2.1.2)
|
77
75
|
jwt (>= 0.1.2)
|
78
76
|
multi_json (>= 1.3.0)
|
79
|
-
tzinfo (
|
77
|
+
tzinfo (1.1.0)
|
78
|
+
thread_safe (~> 0.1)
|
80
79
|
wasabi (2.5.1)
|
81
80
|
httpi (~> 1.0)
|
82
81
|
nokogiri (>= 1.4.0)
|
@@ -1,34 +1,35 @@
|
|
1
1
|
module Smess
|
2
2
|
OUTPUT_BY_COUNTRY_CODE = {
|
3
|
-
"0" => :global_mouth,
|
4
|
-
"1" => :iconectiv,
|
5
|
-
"1242"=> :global_mouth,
|
6
|
-
"1246"=> :global_mouth,
|
7
|
-
"1264"=> :global_mouth,
|
8
|
-
"1268"=> :global_mouth,
|
9
|
-
"1284"=> :global_mouth,
|
10
|
-
"1345"=> :global_mouth,
|
11
|
-
"1441"=> :
|
12
|
-
"1473"=> :global_mouth,
|
13
|
-
"1649"=> :global_mouth,
|
14
|
-
"1664"=> :global_mouth,
|
15
|
-
"1670"=> :global_mouth,
|
16
|
-
"1671"=> :global_mouth,
|
17
|
-
"1684"=> :global_mouth,
|
18
|
-
"1758"=> :global_mouth,
|
19
|
-
"1767"=> :global_mouth,
|
20
|
-
"1784"=> :global_mouth,
|
21
|
-
"1787"=> :global_mouth,
|
22
|
-
"1809"=> :global_mouth,
|
23
|
-
"1868"=> :global_mouth,
|
24
|
-
"1869"=> :global_mouth,
|
25
|
-
"1876"=> :global_mouth,
|
26
|
-
"20" => :global_mouth,
|
27
|
-
"212" => :card_board_fish,
|
28
|
-
"
|
29
|
-
"
|
30
|
-
"
|
31
|
-
"
|
32
|
-
"
|
3
|
+
"0" => :global_mouth, # default for any undefined code
|
4
|
+
"1" => :iconectiv, # USA
|
5
|
+
"1242"=> :global_mouth, # Bahamas
|
6
|
+
"1246"=> :global_mouth, # Barbados
|
7
|
+
"1264"=> :global_mouth, # Anguilla
|
8
|
+
"1268"=> :global_mouth, # Antigua and Barbuda
|
9
|
+
"1284"=> :global_mouth, # British Virgin Islands
|
10
|
+
"1345"=> :global_mouth, # Cayman Islands
|
11
|
+
"1441"=> :clickatell, # Bermuda
|
12
|
+
"1473"=> :global_mouth, # Grenada
|
13
|
+
"1649"=> :global_mouth, # Turks and Caicos Islands
|
14
|
+
"1664"=> :global_mouth, # Montserrat
|
15
|
+
"1670"=> :global_mouth, # Northern Mariana Islands
|
16
|
+
"1671"=> :global_mouth, # Guam
|
17
|
+
"1684"=> :global_mouth, # American Samoa
|
18
|
+
"1758"=> :global_mouth, # Saint Lucia
|
19
|
+
"1767"=> :global_mouth, # Dominica
|
20
|
+
"1784"=> :global_mouth, # Saint Vincent and the Grenadines
|
21
|
+
"1787"=> :global_mouth, # Puerto Rico
|
22
|
+
"1809"=> :global_mouth, # Dominican Republic
|
23
|
+
"1868"=> :global_mouth, # Trinidad and Tobago
|
24
|
+
"1869"=> :global_mouth, # Saint Kitts and Nevis
|
25
|
+
"1876"=> :global_mouth, # Jamaica
|
26
|
+
"20" => :global_mouth, # Egypt
|
27
|
+
"212" => :card_board_fish, # Morocco
|
28
|
+
"33" => :global_mouth, # France
|
29
|
+
"34" => :global_mouth, # Spain
|
30
|
+
"46" => :global_mouth, # Sweden
|
31
|
+
"49" => :global_mouth, # Germany
|
32
|
+
"966" => :global_mouth, # Saudi Arabia
|
33
|
+
"971" => :etisalatdemo # United Arab Emirates
|
33
34
|
}
|
34
|
-
end
|
35
|
+
end
|
data/lib/smess/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smess
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Westin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
200
|
version: 1.3.7
|
201
201
|
requirements: []
|
202
202
|
rubyforge_project:
|
203
|
-
rubygems_version: 2.
|
203
|
+
rubygems_version: 2.0.14
|
204
204
|
signing_key:
|
205
205
|
specification_version: 4
|
206
206
|
summary: A messy SMS messenger supporting every aggregator I have gotten my hands
|