smstools 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -1
- data/lib/sms_tools/gsm_encoding.rb +1 -1
- data/lib/sms_tools/version.rb +1 -1
- data/spec/sms_tools/encoding_detection_spec.rb +3 -3
- 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: df6410b78260b2fc62e716c889ca5502bd91c477
|
4
|
+
data.tar.gz: 57b8f13df3b6453e168eac420e51d4ef959ebf71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0ca45861515b43a9a4d9bec38479af3e6c92f080d1307d2e8399477647382ac37e2019041830ad236a0934298e0ca9b70292af5362ba572e22b34d4faed3951
|
7
|
+
data.tar.gz: 0f0a5874e6b5fe3367fe32969b7376c274ec22183b9edbed4f7baf79877034dc3c8f9ac619e88951bc0d5c206bc6615d37bc2ca720af6300e4bca90bdeb1cd23
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
-
## 0.1.1 (
|
1
|
+
## 0.1.1 (18 April 2016)
|
2
|
+
|
3
|
+
* Replaces small c with cedilla to capital one, as per the GSM 03.38 standard (by @skliask)
|
4
|
+
|
5
|
+
## 0.1.0 (08 October 2015)
|
6
|
+
|
7
|
+
* distinguish between ascii encoding and gsm encoding
|
8
|
+
* add option for preventing the use of gsm encoding, that is to use unicode instead
|
9
|
+
|
10
|
+
## 0.0.1 (17 January 2014)
|
2
11
|
|
3
12
|
* Initial release.
|
@@ -14,7 +14,7 @@ module SmsTools
|
|
14
14
|
0x00F9 => "\x06", # LATIN SMALL LETTER U WITH GRAVE
|
15
15
|
0x00EC => "\x07", # LATIN SMALL LETTER I WITH GRAVE
|
16
16
|
0x00F2 => "\x08", # LATIN SMALL LETTER O WITH GRAVE
|
17
|
-
|
17
|
+
0x00C7 => "\x09", # LATIN CAPITAL LETTER C WITH CEDILLA
|
18
18
|
0x000A => "\x0A", # LINE FEED
|
19
19
|
0x00D8 => "\x0B", # LATIN CAPITAL LETTER O WITH STROKE
|
20
20
|
0x00F8 => "\x0C", # LATIN SMALL LETTER O WITH STROKE
|
data/lib/sms_tools/version.rb
CHANGED
@@ -16,7 +16,7 @@ describe SmsTools::EncodingDetection do
|
|
16
16
|
end
|
17
17
|
|
18
18
|
it "returns GSM as encoding for special symbols defined in GSM 03.38" do
|
19
|
-
detection_for('09azAZ@Δ¡¿£_!Φ"
|
19
|
+
detection_for('09azAZ@Δ¡¿£_!Φ"¥Γ#èΛ¤éΩ%ùΠ&ìΨòΣCΘΞ:Ø;ÄäøÆ,<Ööæ=ÑñÅß>Üüåɧà€~').encoding.must_equal :gsm
|
20
20
|
end
|
21
21
|
|
22
22
|
it "returns ASCII as encoding for puntucation and newline symbols" do
|
@@ -39,7 +39,7 @@ describe SmsTools::EncodingDetection do
|
|
39
39
|
end
|
40
40
|
|
41
41
|
it "returns Unicode as encoding for special symbols defined in GSM 03.38" do
|
42
|
-
detection_for('09azAZ@Δ¡¿£_!Φ"
|
42
|
+
detection_for('09azAZ@Δ¡¿£_!Φ"¥Γ#èΛ¤éΩ%ùΠ&ìΨòΣCΘΞ:Ø;ÄäøÆ,<Ööæ=ÑñÅß>Üüåɧà€~').encoding.must_equal :unicode
|
43
43
|
end
|
44
44
|
|
45
45
|
it 'returns ASCII for simple ASCII text' do
|
@@ -60,7 +60,7 @@ describe SmsTools::EncodingDetection do
|
|
60
60
|
end
|
61
61
|
|
62
62
|
it "computes the length of non-trivial GSM encoded messages correctly" do
|
63
|
-
detection_for('GSM: 09azAZ@Δ¡¿£_!Φ"
|
63
|
+
detection_for('GSM: 09azAZ@Δ¡¿£_!Φ"¥Γ#èΛ¤éΩ%ùΠ&ìΨòΣÇΘΞ:Ø;ÄäøÆ,<Ööæ=ÑñÅß>Üüåɧà').length.must_equal 63
|
64
64
|
end
|
65
65
|
|
66
66
|
it "correctly counts the length of whitespace-only messages" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smstools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimitar Dimitrov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
113
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.2.2
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: Small library of classes for common SMS-related functionality.
|