sms_manager 0.4.0 → 0.5.0
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 +5 -1
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/sms_manager/error/sending_error.rb +3 -2
- data/lib/sms_manager/version.rb +1 -1
- data/spec/sms_manager_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6a986ee74937dfc2814b5584f2699c3093814c2d39716e1b46e306381b7096f7
|
|
4
|
+
data.tar.gz: cb8f4e2ff487472fd3988fd7ca32ae59ebe2e19c3788aeceb0f6d21b32ab65d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 49d59837a4a830f8332610c5d863a849b76b07029ca34089b03fb9a2c56cee7d3f88d5bcefc4758e98605d74faf32df5a753df15c91c39eca301947f9541bf0c
|
|
7
|
+
data.tar.gz: c3a422003d86d2719f0703b3f7784238ff185200e2fa0ce76c90520ea04b1f65085747043a80b41b4ab173877120a846db0a033761ec4cdde6af37752b9877a4
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -13,9 +13,9 @@ module SmsManager
|
|
|
13
13
|
if code >= 900 && code <= 999
|
|
14
14
|
CODE_9XX
|
|
15
15
|
elsif CODES[code]
|
|
16
|
-
CODES[code]
|
|
16
|
+
"#{CODES[code]} (#{code})"
|
|
17
17
|
else
|
|
18
|
-
|
|
18
|
+
"Neznámý chybový kód (#{code})"
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
21
|
|
|
@@ -25,6 +25,7 @@ module SmsManager
|
|
|
25
25
|
103 => 'Neplatné uživatelské jméno nebo heslo',
|
|
26
26
|
104 => 'Neplatný parametr gateway',
|
|
27
27
|
105 => 'Nedostatek kreditu pro prepaid',
|
|
28
|
+
109 => 'Požadavek neobsahuje všechna vyžadovaná data',
|
|
28
29
|
201 => 'Žádná platná telefonní čísla v požadavku',
|
|
29
30
|
202 => 'Text zprávy neexistuje nebo je příliš dlouhý',
|
|
30
31
|
203 => 'Neplatný parametr sender (odesílatele nejprve nastavte ve webovém rozhraní)'
|
data/lib/sms_manager/version.rb
CHANGED
data/spec/sms_manager_spec.rb
CHANGED
|
@@ -31,7 +31,7 @@ describe SmsManager do
|
|
|
31
31
|
|
|
32
32
|
expect { SmsManager.send number: '+420123456789', message: 'Hello!' }.to \
|
|
33
33
|
raise_error(SmsManager::Error) do |e|
|
|
34
|
-
expect(e.message).to eq('Neplatné uživatelské jméno nebo heslo')
|
|
34
|
+
expect(e.message).to eq('Neplatné uživatelské jméno nebo heslo (103)')
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
37
|
|
|
@@ -65,7 +65,7 @@ describe SmsManager do
|
|
|
65
65
|
|
|
66
66
|
expect { SmsManager.send_message number: '+420123456789', message: 'Hello!' }.to \
|
|
67
67
|
raise_error(SmsManager::Error) do |e|
|
|
68
|
-
expect(e.message).to eq('Neplatné uživatelské jméno nebo heslo')
|
|
68
|
+
expect(e.message).to eq('Neplatné uživatelské jméno nebo heslo (103)')
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|