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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 6d7c390189fc1d7a40e5444c114567147c7405b654e53b57fdb0e8792ac8f02c
4
- data.tar.gz: 1083947e5c289fdfa78a7803f3f9ba2bb3b21bc4f9a1730a14ba8fc581d657ee
2
+ SHA1:
3
+ metadata.gz: 061caed197edecf988387ffa2f5145f4cc9249d6
4
+ data.tar.gz: 04d6e7039d8e83261e83d4575e88e74a65cce055
5
5
  SHA512:
6
- metadata.gz: a65d52d1d7cc42af2fda922fccde890d97201a0c8b5073c83c93a0326b510e2a53a4d213733d7d8719ed9d4d08e64c9c66b09a58e102cb528e1b868ecc3b42fd
7
- data.tar.gz: 724ed24711b57e94dd5753111ef9eb774688f50a5b1fef5f58fa61aadec3ba8860c254b7e54bcd4496ec6f4d4e3d92e2db7e9f418ab87ca0b1158f32443b4688
6
+ metadata.gz: 69d4f764660e36d5cfa3745d944fab97405a92227d9990c4be889f2280f288b96bed3e2e2d6ea4cb82b04998b126495514a588630b5a370da15bf2506ff908d3
7
+ data.tar.gz: 57ca434f3d72c864e63b201162f11fd7b3d7de6ae1a4b545f3baf1b9c5998d63e35d6192be51af4e80e3095e9490d168e7b5be746d30ba6353064042dfbec961
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # locasms
2
- [![Gem Version](https://badge.fury.io/rb/locasms.svg)](http://badge.fury.io/rb/locasms) [![Build Status](https://travis-ci.org/mcorp/locasms.png?branch=master)](https://travis-ci.org/mcorp/locasms) [![Dependency Status](https://gemnasium.com/mcorp/locasms.png)](https://gemnasium.com/mcorp/locasms) [![Code Climate](https://codeclimate.com/github/mcorp/locasms.png)](https://codeclimate.com/github/mcorp/locasms) [![Inline docs](http://inch-ci.org/github/mcorp/locasms.svg?branch=master)](http://inch-ci.org/github/mcorp/locasms)
2
+ [![Gem Version](https://badge.fury.io/rb/locasms.svg)](http://badge.fury.io/rb/locasms) [![Build Status](https://travis-ci.org/mcorp/locasms.png?branch=master)](https://travis-ci.org/mcorp/locasms) [![Code Climate](https://codeclimate.com/github/mcorp/locasms.png)](https://codeclimate.com/github/mcorp/locasms) [![Inline docs](http://inch-ci.org/github/mcorp/locasms.svg?branch=master)](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
 
@@ -1,8 +1,7 @@
1
1
  require 'locasms/version'
2
2
 
3
- autoload :CSV, 'csv'
4
- autoload :JSON, 'json'
5
- autoload :Logger, 'logger'
3
+ autoload :CSV, 'csv'
4
+ autoload :MultiJson, 'multi_json'
6
5
 
7
6
  module LocaSMS
8
7
  autoload :Client, 'locasms/client'
@@ -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 = JSON.parse(response) rescue { 'status' => 1, 'data' => response, 'msg' => nil }
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
 
@@ -1,3 +1,3 @@
1
1
  module LocaSMS
2
- VERSION = '0.3.1'
2
+ VERSION = '0.4.0'
3
3
  end
@@ -21,6 +21,8 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.required_ruby_version = '~> 2.0'
23
23
 
24
+ spec.add_dependency 'multi_json', '~> 1.0'
25
+
24
26
  spec.add_development_dependency 'bundler', '~> 1.15'
25
27
  spec.add_development_dependency 'rake', '~> 12.1'
26
28
 
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.3.1
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-02-02 00:00:00.000000000 Z
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.7.4
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
@@ -1,2 +0,0 @@
1
- ruby:
2
- config_file: .ruby-style.yml