locasms 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -4
- data/README.md +9 -0
- data/bin/console +7 -0
- data/lib/locasms/client.rb +20 -7
- data/lib/locasms/rest_client.rb +8 -3
- data/lib/locasms/version.rb +1 -1
- data/lib/locasms.rb +8 -9
- data/locasms.gemspec +10 -16
- data/spec/lib/locasms/client_spec.rb +82 -4
- data/spec/lib/locasms/rest_client_spec.rb +25 -5
- data/spec/spec.opts +1 -2
- metadata +30 -98
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e825f5f5729560432aadb5e7874521af3d24219
|
4
|
+
data.tar.gz: 483c62ac2142f95a4b71ee203ad347a496df7920
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a313fd05ed21ec051f30aec10e71fd9b028372745676c06e22327154622fff0a6cb06a1726ddbf9120cdeadf831f30d3c51bd68fb88b59d70721dccf2b13a2e3
|
7
|
+
data.tar.gz: 459409d3696a33b69ff0f5f35aa6a73d9a7a62e9f8be27a031a043511c2a778d23e7dfa11f52f3f498cd13a2c5caa921d5324379b3281648254d868573439170
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -32,6 +32,9 @@ cli = LocaSMS::Client.new 'LOGIN', 'PASSWORD'
|
|
32
32
|
# Short Code:
|
33
33
|
cli = LocaSMS::Client.new 'LOGIN', 'PASSWORD', type: :shortcode
|
34
34
|
|
35
|
+
# With default url callback (optional):
|
36
|
+
cli = LocaSMS::Client.new 'LOGIN', 'PASSWORD', url_callback: 'http://url.to/callback'
|
37
|
+
|
35
38
|
# delivering message to one mobile
|
36
39
|
cli.deliver 'my message', '1155559999'
|
37
40
|
|
@@ -41,6 +44,9 @@ cli.deliver 'my message', '1199998888', '5500002222'
|
|
41
44
|
cli.deliver 'my message', ['1199998888', '5500002222']
|
42
45
|
cli.deliver 'my message', %w(1199998888 5500002222)
|
43
46
|
|
47
|
+
# delivering message with url callback
|
48
|
+
cli.deliver 'my message', '1155559999', url_callback: 'http://url.to/callback'
|
49
|
+
|
44
50
|
# scheduling the deliver of a message to one mobile
|
45
51
|
cli.deliver_at 'my message', '2013-10-12 20:33:00', '1155559999'
|
46
52
|
|
@@ -50,6 +56,9 @@ cli.deliver_at 'my message', '2013-10-12 20:33:00', '1199998888', '5500002222'
|
|
50
56
|
cli.deliver_at 'my message', '2013-10-12 20:33:00', ['1199998888', '5500002222']
|
51
57
|
cli.deliver_at 'my message', '2013-10-12 20:33:00', %w(1199998888 5500002222)
|
52
58
|
|
59
|
+
# scheduling the deliver of a message with url callback
|
60
|
+
cli.deliver_at 'my message', '2013-10-12 20:33:00', '1155559999', url_callback: 'http://url.to/callback'
|
61
|
+
|
53
62
|
# geting the remaining balance
|
54
63
|
cli.balance
|
55
64
|
|
data/bin/console
ADDED
data/lib/locasms/client.rb
CHANGED
@@ -11,7 +11,7 @@ module LocaSMS
|
|
11
11
|
shortcode: "http://#{DOMAIN}/shortcode/api.ashx"
|
12
12
|
}.freeze
|
13
13
|
|
14
|
-
attr_reader :login, :password, :type
|
14
|
+
attr_reader :login, :password, :type, :callback
|
15
15
|
|
16
16
|
# @param [String] login authorized user
|
17
17
|
# @param [String] password access password
|
@@ -20,8 +20,9 @@ module LocaSMS
|
|
20
20
|
def initialize(login, password, opts={})
|
21
21
|
@login = login
|
22
22
|
@password = password
|
23
|
-
@type
|
24
|
-
@rest
|
23
|
+
@type = opts[:type] || :default
|
24
|
+
@rest = opts[:rest_client]
|
25
|
+
@callback = opts[:url_callback]
|
25
26
|
end
|
26
27
|
|
27
28
|
# Sends a message to one or more mobiles
|
@@ -29,8 +30,13 @@ module LocaSMS
|
|
29
30
|
# @param [String,Array<String>] mobiles number of the mobiles to address the message
|
30
31
|
# @return [String] campaign id on success
|
31
32
|
# @raise [LocaSMS::Exception] if bad numbers were given
|
32
|
-
def deliver(message, *mobiles)
|
33
|
-
|
33
|
+
def deliver(message, *mobiles, **opts)
|
34
|
+
attrs = {
|
35
|
+
msg: message,
|
36
|
+
numbers: numbers(mobiles),
|
37
|
+
url_callback: callback
|
38
|
+
}.merge(opts)
|
39
|
+
rest.get(:sendsms, attrs)['data']
|
34
40
|
end
|
35
41
|
|
36
42
|
# Schedule the send of a message to one or more mobiles
|
@@ -39,9 +45,16 @@ module LocaSMS
|
|
39
45
|
# @param [String,Array<String>] mobiles number of the mobiles to address the message
|
40
46
|
# @return UNDEF
|
41
47
|
# @raise [LocaSMS::Exception] if bad numbers were given
|
42
|
-
def deliver_at(message, datetime, *mobiles)
|
48
|
+
def deliver_at(message, datetime, *mobiles, **opts)
|
43
49
|
date, time = Helpers::DateTimeHelper.split datetime
|
44
|
-
|
50
|
+
attrs = {
|
51
|
+
msg: message,
|
52
|
+
numbers: numbers(mobiles),
|
53
|
+
jobdate: date,
|
54
|
+
jobtime: time,
|
55
|
+
url_callback: callback
|
56
|
+
}.merge(opts)
|
57
|
+
rest.get(:sendsms, attrs)['data']
|
45
58
|
end
|
46
59
|
|
47
60
|
# Get de current amount of sending credits
|
data/lib/locasms/rest_client.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'json'
|
2
|
+
require 'net/http'
|
2
3
|
|
3
4
|
module LocaSMS
|
4
5
|
|
@@ -39,7 +40,11 @@ module LocaSMS
|
|
39
40
|
# @raise [LocaSMS::InvalidLogin] when the given credentials are invalid
|
40
41
|
def get(action, params={})
|
41
42
|
params = params_for action, params
|
42
|
-
|
43
|
+
|
44
|
+
uri = URI.parse(base_url)
|
45
|
+
uri.query = URI.encode_www_form(params)
|
46
|
+
response = Net::HTTP.get_response(uri).body
|
47
|
+
|
43
48
|
parse_response(action, response)
|
44
49
|
end
|
45
50
|
|
@@ -56,7 +61,7 @@ module LocaSMS
|
|
56
61
|
#
|
57
62
|
# @see https://github.com/mcorp/locasms/wiki/A-API-de-envio#lista-das-a%C3%A7%C3%B5es-dispon%C3%ADveis List of avaiable actions
|
58
63
|
def params_for(action, params={})
|
59
|
-
{action: action}.merge(base_params).merge(params)
|
64
|
+
{ action: action }.merge(base_params).merge(params).select {|k, v| v }
|
60
65
|
end
|
61
66
|
|
62
67
|
# Parses a result trying to get it in json
|
@@ -77,4 +82,4 @@ module LocaSMS
|
|
77
82
|
end
|
78
83
|
end
|
79
84
|
|
80
|
-
end
|
85
|
+
end
|
data/lib/locasms/version.rb
CHANGED
data/lib/locasms.rb
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
require 'locasms/version'
|
2
2
|
|
3
|
-
autoload :CSV,
|
4
|
-
autoload :JSON,
|
5
|
-
autoload :
|
6
|
-
autoload :Logger, 'logger'
|
3
|
+
autoload :CSV, 'csv'
|
4
|
+
autoload :JSON, 'json'
|
5
|
+
autoload :Logger, 'logger'
|
7
6
|
|
8
7
|
module LocaSMS
|
9
|
-
autoload :Client,
|
10
|
-
autoload :Exception,
|
11
|
-
autoload :InvalidLogin,
|
8
|
+
autoload :Client, 'locasms/client'
|
9
|
+
autoload :Exception, 'locasms/exception'
|
10
|
+
autoload :InvalidLogin, 'locasms/exception'
|
12
11
|
autoload :InvalidOperation, 'locasms/exception'
|
13
|
-
autoload :Numbers,
|
14
|
-
autoload :RestClient,
|
12
|
+
autoload :Numbers, 'locasms/numbers'
|
13
|
+
autoload :RestClient, 'locasms/rest_client'
|
15
14
|
|
16
15
|
module Helpers
|
17
16
|
autoload :DateTimeHelper, 'locasms/helpers/date_time_helper'
|
data/locasms.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = LocaSMS::VERSION
|
9
9
|
spec.authors = ["Adilson Carvalho", "Leonardo Saraiva", "Marco Carvalho"]
|
10
10
|
spec.email = ["lc.adilson@gmail.com", "vyper@maneh.org", "marco.carvalho.swasthya@gmail.com"]
|
11
|
-
spec.description = %q{Cliente para o serviço de disparo de SMS da LocaSMS e de sua
|
11
|
+
spec.description = %q{Cliente para o serviço de disparo de SMS da LocaSMS e de sua
|
12
12
|
versão para Short Code SMS (SMS Plataforma)}
|
13
13
|
spec.summary = %q{Cliente para disparo de SMS, regular e Short Code, através da LocaSMS/SMS Plataforma}
|
14
14
|
spec.homepage = "https://github.com/mcorp/locasms"
|
@@ -19,25 +19,19 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.
|
23
|
-
spec.add_development_dependency 'rake', '~> 10.4.2'
|
22
|
+
spec.required_ruby_version = '~> 2.0'
|
24
23
|
|
25
|
-
|
26
|
-
spec.add_development_dependency '
|
27
|
-
spec.add_development_dependency 'fuubar', '~> 2.0.0'
|
28
|
-
spec.add_development_dependency 'timecop', '~> 0.7.3'
|
24
|
+
spec.add_development_dependency 'bundler', '~> 1.15'
|
25
|
+
spec.add_development_dependency 'rake', '~> 12.1'
|
29
26
|
|
30
|
-
#
|
31
|
-
spec.add_development_dependency '
|
32
|
-
spec.add_development_dependency '
|
33
|
-
spec.add_development_dependency 'growl'
|
27
|
+
# test stuff
|
28
|
+
spec.add_development_dependency 'rspec', '~> 3.6'
|
29
|
+
spec.add_development_dependency 'timecop', '~> 0.9'
|
34
30
|
|
35
31
|
# for documentation
|
36
|
-
spec.add_development_dependency 'yard'
|
37
|
-
spec.add_development_dependency 'redcarpet'
|
32
|
+
spec.add_development_dependency 'yard', '~> 0.9'
|
33
|
+
spec.add_development_dependency 'redcarpet', '~> 3.4'
|
38
34
|
|
39
35
|
# for code coverage
|
40
|
-
spec.add_development_dependency 'simplecov'
|
41
|
-
|
42
|
-
spec.add_dependency 'rest-client', '~> 1.6'
|
36
|
+
spec.add_development_dependency 'simplecov', '~> 0.15'
|
43
37
|
end
|
@@ -2,7 +2,7 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe LocaSMS::Client do
|
4
4
|
let(:rest_client) { 'rest_client mock' }
|
5
|
-
subject { LocaSMS::Client.new :login, :password, rest_client: rest_client }
|
5
|
+
subject { LocaSMS::Client.new :login, :password, rest_client: rest_client, callback: nil }
|
6
6
|
|
7
7
|
describe '::ENDPOINT' do
|
8
8
|
let(:domain) { LocaSMS::Client::DOMAIN }
|
@@ -14,7 +14,7 @@ describe LocaSMS::Client do
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
-
context 'When
|
17
|
+
context 'When shortcode' do
|
18
18
|
subject { LocaSMS::Client.new :login, :password, type: :shortcode }
|
19
19
|
|
20
20
|
it 'Should return the short code URL' do
|
@@ -38,7 +38,7 @@ describe LocaSMS::Client do
|
|
38
38
|
|
39
39
|
expect(rest_client).to receive(:get)
|
40
40
|
.once
|
41
|
-
.with(:sendsms, msg: 'given message', numbers:'XXX')
|
41
|
+
.with(:sendsms, msg: 'given message', numbers:'XXX', url_callback: nil)
|
42
42
|
.and_return({})
|
43
43
|
|
44
44
|
subject.deliver 'given message', :a, :b, :c
|
@@ -54,6 +54,40 @@ describe LocaSMS::Client do
|
|
54
54
|
|
55
55
|
expect { subject.deliver('given message', :a, :b, :c) }.to raise_error(LocaSMS::Exception)
|
56
56
|
end
|
57
|
+
|
58
|
+
context 'with callback option' do
|
59
|
+
context 'callback given as arg to #deliver' do
|
60
|
+
it 'uses specific callback' do
|
61
|
+
expect(subject).to receive(:numbers)
|
62
|
+
.once
|
63
|
+
.with([:a, :b, :c])
|
64
|
+
.and_return('XXX')
|
65
|
+
|
66
|
+
expect(rest_client).to receive(:get)
|
67
|
+
.once
|
68
|
+
.with(:sendsms, msg: 'given message', numbers:'XXX', url_callback: 'something')
|
69
|
+
.and_return({})
|
70
|
+
|
71
|
+
subject.deliver 'given message', :a, :b, :c, url_callback: 'something'
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
it 'uses default callback' do
|
76
|
+
client = LocaSMS::Client.new :login, :password, rest_client: rest_client, url_callback: 'default'
|
77
|
+
|
78
|
+
expect(client).to receive(:numbers)
|
79
|
+
.once
|
80
|
+
.with([:a, :b, :c])
|
81
|
+
.and_return('XXX')
|
82
|
+
|
83
|
+
expect(rest_client).to receive(:get)
|
84
|
+
.once
|
85
|
+
.with(:sendsms, msg: 'given message', numbers:'XXX', url_callback: 'default')
|
86
|
+
.and_return({})
|
87
|
+
|
88
|
+
client.deliver 'given message', :a, :b, :c
|
89
|
+
end
|
90
|
+
end
|
57
91
|
end
|
58
92
|
|
59
93
|
describe '#deliver_at' do
|
@@ -70,7 +104,7 @@ describe LocaSMS::Client do
|
|
70
104
|
|
71
105
|
expect(rest_client).to receive(:get)
|
72
106
|
.once
|
73
|
-
.with(:sendsms, msg: 'given message', numbers:'XXX', jobdate: 'date', jobtime: 'time')
|
107
|
+
.with(:sendsms, msg: 'given message', numbers:'XXX', jobdate: 'date', jobtime: 'time', url_callback: nil)
|
74
108
|
.and_return({})
|
75
109
|
|
76
110
|
subject.deliver_at 'given message', :datetime, :a, :b, :c
|
@@ -91,6 +125,50 @@ describe LocaSMS::Client do
|
|
91
125
|
|
92
126
|
expect { subject.deliver_at('given message', :datetime, :a, :b, :c) }.to raise_error(LocaSMS::Exception)
|
93
127
|
end
|
128
|
+
|
129
|
+
context 'with callback option' do
|
130
|
+
context 'callback given as arg to #deliver' do
|
131
|
+
it 'uses specific callback' do
|
132
|
+
expect(subject).to receive(:numbers)
|
133
|
+
.once
|
134
|
+
.with([:a, :b, :c])
|
135
|
+
.and_return('XXX')
|
136
|
+
|
137
|
+
expect(LocaSMS::Helpers::DateTimeHelper).to receive(:split)
|
138
|
+
.once
|
139
|
+
.with(:datetime)
|
140
|
+
.and_return(%w[date time])
|
141
|
+
|
142
|
+
expect(rest_client).to receive(:get)
|
143
|
+
.once
|
144
|
+
.with(:sendsms, msg: 'given message', numbers:'XXX', jobdate: 'date', jobtime: 'time', url_callback: 'something')
|
145
|
+
.and_return({})
|
146
|
+
|
147
|
+
subject.deliver_at 'given message', :datetime, :a, :b, :c, url_callback: 'something'
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
it 'uses default callback' do
|
152
|
+
client = LocaSMS::Client.new :login, :password, rest_client: rest_client, url_callback: 'default'
|
153
|
+
|
154
|
+
expect(client).to receive(:numbers)
|
155
|
+
.once
|
156
|
+
.with([:a, :b, :c])
|
157
|
+
.and_return('XXX')
|
158
|
+
|
159
|
+
expect(LocaSMS::Helpers::DateTimeHelper).to receive(:split)
|
160
|
+
.once
|
161
|
+
.with(:datetime)
|
162
|
+
.and_return(%w[date time])
|
163
|
+
|
164
|
+
expect(rest_client).to receive(:get)
|
165
|
+
.once
|
166
|
+
.with(:sendsms, msg: 'given message', numbers:'XXX', jobdate: 'date', jobtime: 'time', url_callback: 'default')
|
167
|
+
.and_return({})
|
168
|
+
|
169
|
+
client.deliver_at 'given message', :datetime, :a, :b, :c
|
170
|
+
end
|
171
|
+
end
|
94
172
|
end
|
95
173
|
|
96
174
|
describe '#balance' do
|
@@ -1,6 +1,9 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe LocaSMS::RestClient do
|
4
|
+
let(:callback) { 'http://example.com/callback' }
|
5
|
+
let(:params) { { lgn: 'LOGIN', pwd: 'PASSWORD', url_callback: callback } }
|
6
|
+
|
4
7
|
describe '.initialize' do
|
5
8
|
context 'When giving proper initialization parameters' do
|
6
9
|
subject { LocaSMS::RestClient.new :url, :params }
|
@@ -10,14 +13,31 @@ describe LocaSMS::RestClient do
|
|
10
13
|
end
|
11
14
|
|
12
15
|
describe '#get' do
|
13
|
-
|
16
|
+
let(:action) { 'sendsms' }
|
17
|
+
let(:body) { '{"status":1,"data":28,"msg":null}' }
|
18
|
+
subject { LocaSMS::RestClient.new(action, params) }
|
19
|
+
|
20
|
+
it 'Performs get request to url with parameters' do
|
21
|
+
expect(Net::HTTP).
|
22
|
+
to receive(:get_response).
|
23
|
+
and_return(OpenStruct.new(body: body))
|
24
|
+
|
25
|
+
subject.get(action, params)
|
26
|
+
end
|
14
27
|
end
|
15
28
|
|
16
29
|
describe '#params_for' do
|
17
|
-
subject { LocaSMS::RestClient.new :url,
|
30
|
+
subject { LocaSMS::RestClient.new :url, params }
|
31
|
+
|
32
|
+
it { expect(subject.params_for(:action)).to eq({action: :action}.merge(params)) }
|
33
|
+
it { expect(subject.params_for(:action, p1: 10)).to eq({action: :action, p1: 10}.merge(params)) }
|
18
34
|
|
19
|
-
|
20
|
-
|
35
|
+
context 'callback nil' do
|
36
|
+
let(:callback) { nil }
|
37
|
+
it 'should not be in params' do
|
38
|
+
expect(subject.params_for(:action)).to eq({action: :action, lgn: 'LOGIN', pwd: 'PASSWORD'})
|
39
|
+
end
|
40
|
+
end
|
21
41
|
end
|
22
42
|
|
23
43
|
describe '#parse_response' do
|
@@ -44,4 +64,4 @@ describe LocaSMS::RestClient do
|
|
44
64
|
end
|
45
65
|
end
|
46
66
|
|
47
|
-
end
|
67
|
+
end
|
data/spec/spec.opts
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.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adilson Carvalho
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2017-10-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -18,175 +18,107 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '1.
|
21
|
+
version: '1.15'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: '1.
|
28
|
+
version: '1.15'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rake
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
35
|
+
version: '12.1'
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version:
|
42
|
+
version: '12.1'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: rspec
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '3.
|
49
|
+
version: '3.6'
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '3.
|
57
|
-
- !ruby/object:Gem::Dependency
|
58
|
-
name: fuubar
|
59
|
-
requirement: !ruby/object:Gem::Requirement
|
60
|
-
requirements:
|
61
|
-
- - "~>"
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: 2.0.0
|
64
|
-
type: :development
|
65
|
-
prerelease: false
|
66
|
-
version_requirements: !ruby/object:Gem::Requirement
|
67
|
-
requirements:
|
68
|
-
- - "~>"
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: 2.0.0
|
56
|
+
version: '3.6'
|
71
57
|
- !ruby/object:Gem::Dependency
|
72
58
|
name: timecop
|
73
59
|
requirement: !ruby/object:Gem::Requirement
|
74
60
|
requirements:
|
75
61
|
- - "~>"
|
76
62
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.
|
63
|
+
version: '0.9'
|
78
64
|
type: :development
|
79
65
|
prerelease: false
|
80
66
|
version_requirements: !ruby/object:Gem::Requirement
|
81
67
|
requirements:
|
82
68
|
- - "~>"
|
83
69
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.
|
85
|
-
- !ruby/object:Gem::Dependency
|
86
|
-
name: guard
|
87
|
-
requirement: !ruby/object:Gem::Requirement
|
88
|
-
requirements:
|
89
|
-
- - ">="
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
version: '0'
|
92
|
-
type: :development
|
93
|
-
prerelease: false
|
94
|
-
version_requirements: !ruby/object:Gem::Requirement
|
95
|
-
requirements:
|
96
|
-
- - ">="
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
version: '0'
|
99
|
-
- !ruby/object:Gem::Dependency
|
100
|
-
name: guard-rspec
|
101
|
-
requirement: !ruby/object:Gem::Requirement
|
102
|
-
requirements:
|
103
|
-
- - ">="
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
version: '0'
|
106
|
-
type: :development
|
107
|
-
prerelease: false
|
108
|
-
version_requirements: !ruby/object:Gem::Requirement
|
109
|
-
requirements:
|
110
|
-
- - ">="
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
version: '0'
|
113
|
-
- !ruby/object:Gem::Dependency
|
114
|
-
name: growl
|
115
|
-
requirement: !ruby/object:Gem::Requirement
|
116
|
-
requirements:
|
117
|
-
- - ">="
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
version: '0'
|
120
|
-
type: :development
|
121
|
-
prerelease: false
|
122
|
-
version_requirements: !ruby/object:Gem::Requirement
|
123
|
-
requirements:
|
124
|
-
- - ">="
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
version: '0'
|
70
|
+
version: '0.9'
|
127
71
|
- !ruby/object:Gem::Dependency
|
128
72
|
name: yard
|
129
73
|
requirement: !ruby/object:Gem::Requirement
|
130
74
|
requirements:
|
131
|
-
- - "
|
75
|
+
- - "~>"
|
132
76
|
- !ruby/object:Gem::Version
|
133
|
-
version: '0'
|
77
|
+
version: '0.9'
|
134
78
|
type: :development
|
135
79
|
prerelease: false
|
136
80
|
version_requirements: !ruby/object:Gem::Requirement
|
137
81
|
requirements:
|
138
|
-
- - "
|
82
|
+
- - "~>"
|
139
83
|
- !ruby/object:Gem::Version
|
140
|
-
version: '0'
|
84
|
+
version: '0.9'
|
141
85
|
- !ruby/object:Gem::Dependency
|
142
86
|
name: redcarpet
|
143
87
|
requirement: !ruby/object:Gem::Requirement
|
144
88
|
requirements:
|
145
|
-
- - "
|
89
|
+
- - "~>"
|
146
90
|
- !ruby/object:Gem::Version
|
147
|
-
version: '
|
91
|
+
version: '3.4'
|
148
92
|
type: :development
|
149
93
|
prerelease: false
|
150
94
|
version_requirements: !ruby/object:Gem::Requirement
|
151
95
|
requirements:
|
152
|
-
- - "
|
96
|
+
- - "~>"
|
153
97
|
- !ruby/object:Gem::Version
|
154
|
-
version: '
|
98
|
+
version: '3.4'
|
155
99
|
- !ruby/object:Gem::Dependency
|
156
100
|
name: simplecov
|
157
|
-
requirement: !ruby/object:Gem::Requirement
|
158
|
-
requirements:
|
159
|
-
- - ">="
|
160
|
-
- !ruby/object:Gem::Version
|
161
|
-
version: '0'
|
162
|
-
type: :development
|
163
|
-
prerelease: false
|
164
|
-
version_requirements: !ruby/object:Gem::Requirement
|
165
|
-
requirements:
|
166
|
-
- - ">="
|
167
|
-
- !ruby/object:Gem::Version
|
168
|
-
version: '0'
|
169
|
-
- !ruby/object:Gem::Dependency
|
170
|
-
name: rest-client
|
171
101
|
requirement: !ruby/object:Gem::Requirement
|
172
102
|
requirements:
|
173
103
|
- - "~>"
|
174
104
|
- !ruby/object:Gem::Version
|
175
|
-
version: '
|
176
|
-
type: :
|
105
|
+
version: '0.15'
|
106
|
+
type: :development
|
177
107
|
prerelease: false
|
178
108
|
version_requirements: !ruby/object:Gem::Requirement
|
179
109
|
requirements:
|
180
110
|
- - "~>"
|
181
111
|
- !ruby/object:Gem::Version
|
182
|
-
version: '
|
183
|
-
description:
|
184
|
-
para
|
112
|
+
version: '0.15'
|
113
|
+
description: |-
|
114
|
+
Cliente para o serviço de disparo de SMS da LocaSMS e de sua
|
115
|
+
versão para Short Code SMS (SMS Plataforma)
|
185
116
|
email:
|
186
117
|
- lc.adilson@gmail.com
|
187
118
|
- vyper@maneh.org
|
188
119
|
- marco.carvalho.swasthya@gmail.com
|
189
|
-
executables:
|
120
|
+
executables:
|
121
|
+
- console
|
190
122
|
extensions: []
|
191
123
|
extra_rdoc_files: []
|
192
124
|
files:
|
@@ -200,6 +132,7 @@ files:
|
|
200
132
|
- LICENSE.txt
|
201
133
|
- README.md
|
202
134
|
- Rakefile
|
135
|
+
- bin/console
|
203
136
|
- lib/locasms.rb
|
204
137
|
- lib/locasms/client.rb
|
205
138
|
- lib/locasms/exception.rb
|
@@ -224,9 +157,9 @@ require_paths:
|
|
224
157
|
- lib
|
225
158
|
required_ruby_version: !ruby/object:Gem::Requirement
|
226
159
|
requirements:
|
227
|
-
- - "
|
160
|
+
- - "~>"
|
228
161
|
- !ruby/object:Gem::Version
|
229
|
-
version: '0'
|
162
|
+
version: '2.0'
|
230
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
231
164
|
requirements:
|
232
165
|
- - ">="
|
@@ -234,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
167
|
version: '0'
|
235
168
|
requirements: []
|
236
169
|
rubyforge_project:
|
237
|
-
rubygems_version: 2.
|
170
|
+
rubygems_version: 2.6.13
|
238
171
|
signing_key:
|
239
172
|
specification_version: 4
|
240
173
|
summary: Cliente para disparo de SMS, regular e Short Code, através da LocaSMS/SMS
|
@@ -246,4 +179,3 @@ test_files:
|
|
246
179
|
- spec/lib/locasms/rest_client_spec.rb
|
247
180
|
- spec/spec.opts
|
248
181
|
- spec/spec_helper.rb
|
249
|
-
has_rdoc:
|