locasms 0.3.1 → 0.4.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 +5 -5
- data/README.md +2 -2
- data/lib/locasms.rb +2 -3
- data/lib/locasms/rest_client.rb +1 -1
- data/lib/locasms/version.rb +1 -1
- data/locasms.gemspec +2 -0
- metadata +17 -4
- data/.hound.yml +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 061caed197edecf988387ffa2f5145f4cc9249d6
|
4
|
+
data.tar.gz: 04d6e7039d8e83261e83d4575e88e74a65cce055
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69d4f764660e36d5cfa3745d944fab97405a92227d9990c4be889f2280f288b96bed3e2e2d6ea4cb82b04998b126495514a588630b5a370da15bf2506ff908d3
|
7
|
+
data.tar.gz: 57ca434f3d72c864e63b201162f11fd7b3d7de6ae1a4b545f3baf1b9c5998d63e35d6192be51af4e80e3095e9490d168e7b5be746d30ba6353064042dfbec961
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# locasms
|
2
|
-
[](http://badge.fury.io/rb/locasms) [](https://travis-ci.org/mcorp/locasms) [](http://badge.fury.io/rb/locasms) [](https://travis-ci.org/mcorp/locasms) [](https://codeclimate.com/github/mcorp/locasms) [](http://inch-ci.org/github/mcorp/locasms)
|
3
3
|
|
4
|
-
> :warning: After `February, 10, 2018` the base IP of the service will change as noticed on this[issue](https://github.com/mcorp/locasms/issues/21). If you don't upgrade to version `0.3.1` your app will stop delivering SMS.
|
4
|
+
> :warning: After `February, 10, 2018` the base IP of the service will change as noticed on this [issue](https://github.com/mcorp/locasms/issues/21). If you don't upgrade to version `0.3.1` your app will stop delivering SMS.
|
5
5
|
|
6
6
|
Client to consume API's from [LocaSMS][0] and its Short Code SMS version [SMS Plataforma][1].
|
7
7
|
|
data/lib/locasms.rb
CHANGED
data/lib/locasms/rest_client.rb
CHANGED
@@ -73,7 +73,7 @@ module LocaSMS
|
|
73
73
|
def parse_response(action, response)
|
74
74
|
raise InvalidOperation.new(action: action) if response =~ /^0:OPERACAO INVALIDA$/i
|
75
75
|
|
76
|
-
j =
|
76
|
+
j = MultiJson.load(response) rescue { 'status' => 1, 'data' => response, 'msg' => nil }
|
77
77
|
|
78
78
|
return j if j['status'] == 1 or action == :getstatus
|
79
79
|
|
data/lib/locasms/version.rb
CHANGED
data/locasms.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: locasms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adilson Carvalho
|
@@ -10,8 +10,22 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-10-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: multi_json
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - "~>"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - "~>"
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '1.0'
|
15
29
|
- !ruby/object:Gem::Dependency
|
16
30
|
name: bundler
|
17
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,7 +137,6 @@ extensions: []
|
|
123
137
|
extra_rdoc_files: []
|
124
138
|
files:
|
125
139
|
- ".gitignore"
|
126
|
-
- ".hound.yml"
|
127
140
|
- ".ruby-style.yml"
|
128
141
|
- ".travis.yml"
|
129
142
|
- ".yardopts"
|
@@ -167,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
180
|
version: '0'
|
168
181
|
requirements: []
|
169
182
|
rubyforge_project:
|
170
|
-
rubygems_version: 2.
|
183
|
+
rubygems_version: 2.5.2.3
|
171
184
|
signing_key:
|
172
185
|
specification_version: 4
|
173
186
|
summary: Cliente para disparo de SMS, regular e Short Code, através da LocaSMS/SMS
|
data/.hound.yml
DELETED