turbosms 0.1.3 → 0.1.4
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/lib/turbosms/client.rb +1 -1
- data/lib/turbosms/version.rb +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 290529e588fb2efe1428acd084d7054af6a9c34d
|
|
4
|
+
data.tar.gz: 9b26316b062557d9c9999655d1753b2588a30713
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb07027a99e0d2bf1ab10190a9decf90a9756df50df40a7462ce062a7bf81d02a407c5e2a10a7fc883f300e5426bbb3d4209b7221cb246f18b1a37659dac3101
|
|
7
|
+
data.tar.gz: c7c01b9837db5821da9b00922768cb55fbc355d6976bf9cd78c19c9fb250cc737cf584d241be303fec4cb3599a6c2fea69f7e53b42758dc142ff758e3160db79
|
data/lib/turbosms/client.rb
CHANGED
|
@@ -33,7 +33,7 @@ module TurboSMS
|
|
|
33
33
|
response = client.call(method_name, args.merge(cookies: @cookies))
|
|
34
34
|
result = response.body[response_key][result_key]
|
|
35
35
|
result = result[:result_array] if result.instance_of?(Hash) and !result[:result_array].nil?
|
|
36
|
-
|
|
36
|
+
clear_cookies if !result.instance_of?(Array) and result.length == 20 # Ridiculous # Вы не авторизированы
|
|
37
37
|
result
|
|
38
38
|
end
|
|
39
39
|
|
data/lib/turbosms/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: turbosms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vitalik Danchenko
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-07-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: savon
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '0'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
27
|
description: Ruby gem implements TurboSMS soap gateway http://turbosms.ua
|
|
@@ -30,7 +30,7 @@ executables: []
|
|
|
30
30
|
extensions: []
|
|
31
31
|
extra_rdoc_files: []
|
|
32
32
|
files:
|
|
33
|
-
- .gitignore
|
|
33
|
+
- ".gitignore"
|
|
34
34
|
- Gemfile
|
|
35
35
|
- Gemfile.lock
|
|
36
36
|
- LICENSE
|
|
@@ -52,18 +52,19 @@ require_paths:
|
|
|
52
52
|
- lib
|
|
53
53
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
54
54
|
requirements:
|
|
55
|
-
- -
|
|
55
|
+
- - ">="
|
|
56
56
|
- !ruby/object:Gem::Version
|
|
57
57
|
version: '0'
|
|
58
58
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
59
|
requirements:
|
|
60
|
-
- -
|
|
60
|
+
- - ">="
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
62
|
version: '0'
|
|
63
63
|
requirements: []
|
|
64
64
|
rubyforge_project:
|
|
65
|
-
rubygems_version: 2.4.
|
|
65
|
+
rubygems_version: 2.4.7
|
|
66
66
|
signing_key:
|
|
67
67
|
specification_version: 4
|
|
68
68
|
summary: TurboSMS
|
|
69
69
|
test_files: []
|
|
70
|
+
has_rdoc:
|