zenvia-rest-rails 0.2.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 +7 -0
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +68 -0
- data/LICENSE.txt +20 -0
- data/README.md +92 -0
- data/Rakefile +49 -0
- data/VERSION +1 -0
- data/lib/generators/zenvia/install/install_generator.rb +14 -0
- data/lib/generators/zenvia/install/templates/zenvia.rb +8 -0
- data/lib/zenvia.rb +4 -0
- data/lib/zenvia/base.rb +69 -0
- data/lib/zenvia/configuration.rb +22 -0
- data/lib/zenvia/sms.rb +24 -0
- data/spec/spec_helper.rb +12 -0
- data/spec/zenvia-rest-rails_spec.rb +7 -0
- data/zenvia-rest-rails.gemspec +68 -0
- metadata +134 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 302f94cce6139e5299359b1e67e3a724733d7ecc
|
4
|
+
data.tar.gz: 4dc9bf43170abb1f6265f2615c2d5da0a9d5554e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5f12032f03034b7e14e0d871d2b373f3808524cce87a15509f09240f10f9f6cba641a8dea3f959b5d0b0797ed5c8af21bfd996c8764133380bbb234064f1d3a8
|
7
|
+
data.tar.gz: 75c96bad97ab4bf95e479b487a513004b85c10b468613b19bb89759acf330637e9e05c9caadd4bd3f30de6661d223733f99d79f502edb4c71c5e4230acafdd0d
|
data/.document
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "rspec", "~> 2.8.0"
|
10
|
+
gem "rdoc", "~> 3.12"
|
11
|
+
gem "bundler", "~> 1.0"
|
12
|
+
gem "jeweler", "~> 1.8.7"
|
13
|
+
gem "simplecov", ">= 0"
|
14
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.3.5)
|
5
|
+
builder (3.2.2)
|
6
|
+
diff-lcs (1.1.3)
|
7
|
+
faraday (0.8.8)
|
8
|
+
multipart-post (~> 1.2.0)
|
9
|
+
git (1.2.6)
|
10
|
+
github_api (0.10.1)
|
11
|
+
addressable
|
12
|
+
faraday (~> 0.8.1)
|
13
|
+
hashie (>= 1.2)
|
14
|
+
multi_json (~> 1.4)
|
15
|
+
nokogiri (~> 1.5.2)
|
16
|
+
oauth2
|
17
|
+
hashie (2.0.5)
|
18
|
+
highline (1.6.20)
|
19
|
+
httpauth (0.2.0)
|
20
|
+
jeweler (1.8.8)
|
21
|
+
builder
|
22
|
+
bundler (~> 1.0)
|
23
|
+
git (>= 1.2.5)
|
24
|
+
github_api (= 0.10.1)
|
25
|
+
highline (>= 1.6.15)
|
26
|
+
nokogiri (= 1.5.10)
|
27
|
+
rake
|
28
|
+
rdoc
|
29
|
+
json (1.8.1)
|
30
|
+
jwt (0.1.8)
|
31
|
+
multi_json (>= 1.5)
|
32
|
+
multi_json (1.8.2)
|
33
|
+
multi_xml (0.5.5)
|
34
|
+
multipart-post (1.2.0)
|
35
|
+
nokogiri (1.5.10)
|
36
|
+
oauth2 (0.9.2)
|
37
|
+
faraday (~> 0.8)
|
38
|
+
httpauth (~> 0.2)
|
39
|
+
jwt (~> 0.1.4)
|
40
|
+
multi_json (~> 1.0)
|
41
|
+
multi_xml (~> 0.5)
|
42
|
+
rack (~> 1.2)
|
43
|
+
rack (1.5.2)
|
44
|
+
rake (10.1.0)
|
45
|
+
rdoc (3.12.2)
|
46
|
+
json (~> 1.4)
|
47
|
+
rspec (2.8.0)
|
48
|
+
rspec-core (~> 2.8.0)
|
49
|
+
rspec-expectations (~> 2.8.0)
|
50
|
+
rspec-mocks (~> 2.8.0)
|
51
|
+
rspec-core (2.8.0)
|
52
|
+
rspec-expectations (2.8.0)
|
53
|
+
diff-lcs (~> 1.1.2)
|
54
|
+
rspec-mocks (2.8.0)
|
55
|
+
simplecov (0.7.1)
|
56
|
+
multi_json (~> 1.0)
|
57
|
+
simplecov-html (~> 0.7.1)
|
58
|
+
simplecov-html (0.7.1)
|
59
|
+
|
60
|
+
PLATFORMS
|
61
|
+
ruby
|
62
|
+
|
63
|
+
DEPENDENCIES
|
64
|
+
bundler (~> 1.0)
|
65
|
+
jeweler (~> 1.8.7)
|
66
|
+
rdoc (~> 3.12)
|
67
|
+
rspec (~> 2.8.0)
|
68
|
+
simplecov
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2013 leonelmorais
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,92 @@
|
|
1
|
+
# Zenvia Rest Rails
|
2
|
+
|
3
|
+
Ruby API to send sms with Zenvia's REST Api, based on https://github.com/lmorais/zenvia-ruby
|
4
|
+
|
5
|
+
### Download and Install
|
6
|
+
```
|
7
|
+
gem install zenvia-rest-rails
|
8
|
+
```
|
9
|
+
|
10
|
+
or on your Gemfile:
|
11
|
+
```
|
12
|
+
gem "zenvia-rest-rails"
|
13
|
+
```
|
14
|
+
|
15
|
+
and
|
16
|
+
```
|
17
|
+
bundle install
|
18
|
+
```
|
19
|
+
|
20
|
+
create zenvia config initializer
|
21
|
+
```
|
22
|
+
rails g zenvia:install
|
23
|
+
```
|
24
|
+
|
25
|
+
after config file created (config/initializers/zenvia.rb), you should define config params:
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
|
29
|
+
require 'zenvia'
|
30
|
+
|
31
|
+
Zenvia.configure do |config|
|
32
|
+
config.account = ENV['ZENVIA_ACCOUNT']
|
33
|
+
config.code = ENV['ZENVIA_CODE']
|
34
|
+
config.from = 'name of message sender. Ex. MY BUSINESS'
|
35
|
+
config.callbackOption = 'zenvia callback option. default is NONE'
|
36
|
+
end
|
37
|
+
|
38
|
+
```
|
39
|
+
|
40
|
+
### Usage
|
41
|
+
|
42
|
+
```ruby
|
43
|
+
|
44
|
+
require 'zenvia'
|
45
|
+
|
46
|
+
# Sending a SMS
|
47
|
+
|
48
|
+
sms = Zenvia::Sms.new('your-sms-id', 'test message!', '5591999999999')
|
49
|
+
|
50
|
+
sms.send
|
51
|
+
|
52
|
+
```
|
53
|
+
|
54
|
+
You can also add two more parameters on 'send' method:
|
55
|
+
|
56
|
+
1. schedule_date: String or DateTime
|
57
|
+
2. aggregateId: String
|
58
|
+
|
59
|
+
```ruby
|
60
|
+
|
61
|
+
require 'zenvia'
|
62
|
+
|
63
|
+
# Sending a SMS with schedule_date and aggregateId
|
64
|
+
|
65
|
+
sms = Zenvia::Sms.new('your-sms-id', 'test message!', '5591999999999', '2016-11-22T18:13:00', '111')
|
66
|
+
|
67
|
+
sms.send
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
### Send Return
|
72
|
+
|
73
|
+
```ruby
|
74
|
+
|
75
|
+
{"statusCode"=>"00",
|
76
|
+
"statusDescription"=>"Ok",
|
77
|
+
"detailCode"=>"000",
|
78
|
+
"detailDescription"=>"Message Sent"}
|
79
|
+
|
80
|
+
```
|
81
|
+
|
82
|
+
For more information about returned codes: http://docs.zenviasmsenus.apiary.io/#introduction/status-table
|
83
|
+
|
84
|
+
### Contributing to zenvia-rest-rails
|
85
|
+
|
86
|
+
1. Fork the project.
|
87
|
+
2. Start a feature/bugfix branch.
|
88
|
+
3. Commit and push until you are happy with your contribution.
|
89
|
+
4. Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
90
|
+
|
91
|
+
|
92
|
+
See LICENSE.txt for further details.
|
data/Rakefile
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "zenvia-rest-rails"
|
18
|
+
gem.homepage = "http://github.com/lucmousinho/zenvia-rest-rails"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{Send sms with Zenvia's REST Api}
|
21
|
+
gem.description = %Q{ Ruby API for send sms with Zenvia's REST Api}
|
22
|
+
gem.email = "lucmousinho@gmail.com"
|
23
|
+
gem.authors = ["lucmousinho", "leonelmorais", "araanbranco"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
require 'rspec/core'
|
29
|
+
require 'rspec/core/rake_task'
|
30
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
31
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
32
|
+
end
|
33
|
+
|
34
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
35
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
36
|
+
spec.rcov = true
|
37
|
+
end
|
38
|
+
|
39
|
+
task :default => :spec
|
40
|
+
|
41
|
+
require 'rdoc/task'
|
42
|
+
Rake::RDocTask.new do |rdoc|
|
43
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
44
|
+
|
45
|
+
rdoc.rdoc_dir = 'rdoc'
|
46
|
+
rdoc.title = "zenvia-rest-rails #{version}"
|
47
|
+
rdoc.rdoc_files.include('README*')
|
48
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
49
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.2.4
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'rails/generators/base'
|
2
|
+
|
3
|
+
module Zenvia
|
4
|
+
module Generators
|
5
|
+
class InstallGenerator < Rails::Generators::Base
|
6
|
+
include Rails::Generators::Migration
|
7
|
+
source_root File.expand_path('../templates', __FILE__)
|
8
|
+
|
9
|
+
def zenvia_initializer
|
10
|
+
copy_file 'zenvia.rb', 'config/initializers/zenvia.rb'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/zenvia.rb
ADDED
data/lib/zenvia/base.rb
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
require 'net/http'
|
3
|
+
require 'uri'
|
4
|
+
|
5
|
+
module Zenvia
|
6
|
+
module Base
|
7
|
+
ZENVIA_URL_BASE = 'https://api-rest.zenvia360.com.br/services'
|
8
|
+
SEND_SMS = '/send-sms'
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
# params {String} - id_sms
|
13
|
+
# params {String} - msg
|
14
|
+
# params {Integer} - cel_phone
|
15
|
+
# params {String} - schedule_date
|
16
|
+
# params {String} - aggregateId
|
17
|
+
# Example send_to_zenvia("you-id-sms", "message-in-140-caracteres", "5591111111111", "2014-08-22T14:55:00", "111")
|
18
|
+
|
19
|
+
def send_to_zenvia(id_sms, cel_phone, msg, schedule_date, aggregateId)
|
20
|
+
|
21
|
+
callbackOption = Zenvia.configuration.callbackOption
|
22
|
+
callbackOption = "NONE" if callbackOption.blank?
|
23
|
+
|
24
|
+
url = URI.parse(ZENVIA_URL_BASE + SEND_SMS)
|
25
|
+
|
26
|
+
req = Net::HTTP::Post.new(url.path, initheader =
|
27
|
+
{
|
28
|
+
'Content-Type' => 'application/json',
|
29
|
+
'Accept' => 'application/json'
|
30
|
+
})
|
31
|
+
|
32
|
+
req.basic_auth Zenvia.configuration.account, Zenvia.configuration.code
|
33
|
+
|
34
|
+
req.body =
|
35
|
+
{
|
36
|
+
"sendSmsRequest":
|
37
|
+
{
|
38
|
+
"from": Zenvia.configuration.from,
|
39
|
+
"to": cel_phone,
|
40
|
+
"schedule": schedule_date,
|
41
|
+
"msg": msg,
|
42
|
+
"callbackOption": callbackOption,
|
43
|
+
"id": id_sms,
|
44
|
+
"aggregateId": aggregateId
|
45
|
+
}
|
46
|
+
}.to_json
|
47
|
+
|
48
|
+
resp = Net::HTTP.start(url.host, url.port, use_ssl: true) do |http|
|
49
|
+
http.request(req)
|
50
|
+
end
|
51
|
+
|
52
|
+
case resp
|
53
|
+
when Net::HTTPSuccess, Net::HTTPRedirection, Net::HTTPOK
|
54
|
+
# OK
|
55
|
+
parse_json_response(resp.body)
|
56
|
+
else
|
57
|
+
resp.body
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
|
62
|
+
def parse_json_response(body)
|
63
|
+
resp = JSON.parse body
|
64
|
+
resp["sendSmsResponse"]
|
65
|
+
end
|
66
|
+
|
67
|
+
end
|
68
|
+
|
69
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Zenvia
|
2
|
+
class Configuration
|
3
|
+
attr_accessor :account, :code, :callbackOption, :from
|
4
|
+
|
5
|
+
def initialize
|
6
|
+
@account = ''
|
7
|
+
@code = ''
|
8
|
+
@callbackOption = ''
|
9
|
+
@from = ''
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
class << self
|
14
|
+
attr_accessor :configuration
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.configure
|
18
|
+
self.configuration ||= Configuration.new
|
19
|
+
yield configuration
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
data/lib/zenvia/sms.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
module Zenvia
|
2
|
+
class Sms
|
3
|
+
include Base
|
4
|
+
|
5
|
+
attr_accessor :id_sms, :msg, :cel_phone, :schedule_date, :aggregateId
|
6
|
+
|
7
|
+
def initialize(id_sms, msg, cel_phone, schedule_date = "", aggregateId = "")
|
8
|
+
@id_sms = id_sms
|
9
|
+
@msg = msg
|
10
|
+
@cel_phone = cel_phone
|
11
|
+
@aggregateId = aggregateId
|
12
|
+
@schedule_date = schedule_date
|
13
|
+
#Try to convert datetime to string
|
14
|
+
begin
|
15
|
+
@schedule_date = schedule_date.strftime("%Y-%m-%dT%H:%M:%S") if !schedule_date.blank?
|
16
|
+
rescue
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def send
|
21
|
+
send_to_zenvia(@id_sms, @cel_phone, @msg, @schedule_date, @aggregateId)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rspec'
|
4
|
+
require 'zenvia-rest-rails'
|
5
|
+
|
6
|
+
# Requires supporting files with custom matchers and macros, etc,
|
7
|
+
# in ./support/ and its subdirectories.
|
8
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
|
12
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "zenvia-rest-rails"
|
8
|
+
s.version = "0.2.4"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["lucmousinho", "leonelmorais", "araanbranco"]
|
12
|
+
s.date = "2016-11-22"
|
13
|
+
s.description = " Ruby API for send sms with Zenvia's REST Api"
|
14
|
+
s.email = "lucmousinho@gmail.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.md"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".rspec",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.md",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"lib/generators/zenvia/install/install_generator.rb",
|
29
|
+
"lib/generators/zenvia/install/templates/zenvia.rb",
|
30
|
+
"lib/zenvia.rb",
|
31
|
+
"lib/zenvia/base.rb",
|
32
|
+
"lib/zenvia/configuration.rb",
|
33
|
+
"lib/zenvia/sms.rb",
|
34
|
+
"spec/spec_helper.rb",
|
35
|
+
"spec/zenvia-rest-rails_spec.rb",
|
36
|
+
"zenvia-rest-rails.gemspec"
|
37
|
+
]
|
38
|
+
s.homepage = "http://github.com/leonelmorais/zenvia-rest-rails"
|
39
|
+
s.licenses = ["MIT"]
|
40
|
+
s.require_paths = ["lib"]
|
41
|
+
s.rubygems_version = "0.2.4"
|
42
|
+
s.summary = "Send sms with Zenvia's REST Api"
|
43
|
+
|
44
|
+
if s.respond_to? :specification_version then
|
45
|
+
s.specification_version = 3
|
46
|
+
|
47
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
48
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
49
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
50
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
51
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.7"])
|
52
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
53
|
+
else
|
54
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
55
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
56
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
57
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
|
58
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
59
|
+
end
|
60
|
+
else
|
61
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
62
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
63
|
+
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
64
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
|
65
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
metadata
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: zenvia-rest-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- lucmousinho
|
8
|
+
- leonelmorais
|
9
|
+
- araanbranco
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2016-11-22 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rspec
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - "~>"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.8.0
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - "~>"
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 2.8.0
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: rdoc
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - "~>"
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '3.12'
|
36
|
+
type: :development
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '3.12'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: bundler
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '1.0'
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - "~>"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '1.0'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: jeweler
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: 1.8.7
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 1.8.7
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: simplecov
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
description: " Ruby API for send sms with Zenvia's REST Api"
|
86
|
+
email: lucmousinho@gmail.com
|
87
|
+
executables: []
|
88
|
+
extensions: []
|
89
|
+
extra_rdoc_files:
|
90
|
+
- LICENSE.txt
|
91
|
+
- README.md
|
92
|
+
files:
|
93
|
+
- ".document"
|
94
|
+
- ".rspec"
|
95
|
+
- Gemfile
|
96
|
+
- Gemfile.lock
|
97
|
+
- LICENSE.txt
|
98
|
+
- README.md
|
99
|
+
- Rakefile
|
100
|
+
- VERSION
|
101
|
+
- lib/generators/zenvia/install/install_generator.rb
|
102
|
+
- lib/generators/zenvia/install/templates/zenvia.rb
|
103
|
+
- lib/zenvia.rb
|
104
|
+
- lib/zenvia/base.rb
|
105
|
+
- lib/zenvia/configuration.rb
|
106
|
+
- lib/zenvia/sms.rb
|
107
|
+
- spec/spec_helper.rb
|
108
|
+
- spec/zenvia-rest-rails_spec.rb
|
109
|
+
- zenvia-rest-rails.gemspec
|
110
|
+
homepage: http://github.com/leonelmorais/zenvia-rest-rails
|
111
|
+
licenses:
|
112
|
+
- MIT
|
113
|
+
metadata: {}
|
114
|
+
post_install_message:
|
115
|
+
rdoc_options: []
|
116
|
+
require_paths:
|
117
|
+
- lib
|
118
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - ">="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '0'
|
128
|
+
requirements: []
|
129
|
+
rubyforge_project:
|
130
|
+
rubygems_version: 2.5.1
|
131
|
+
signing_key:
|
132
|
+
specification_version: 3
|
133
|
+
summary: Send sms with Zenvia's REST Api
|
134
|
+
test_files: []
|