sendout 0.1.1 → 0.1.2

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
2
  SHA1:
3
- metadata.gz: 29cb2c668bb07e4485bc82d69d76625051f7b6ab
4
- data.tar.gz: da5c7b91628f1db64659c58c7be7348615d51ba8
3
+ metadata.gz: 53871501ea9a92d9202cf55df14e719aac21382f
4
+ data.tar.gz: f2d3ae3d009274fd1b53c481a2db7d89d3ef6a2b
5
5
  SHA512:
6
- metadata.gz: 171169a51130caea135c360a42880bc34df565e56bca613024a4a0d4a6c4e1fb4511f6b1fd5687fcc0769637281f82e67d35c810ba3a3015817fd0144721030d
7
- data.tar.gz: a64f321c4fe168052d0f961a0b2d98dca945a65969386e00327a3c68291aca788562c6f54bdeeaf2f65e11cc725960d4f76de2f5d5c8c59ef55f30a5199bdbf2
6
+ metadata.gz: ae0443db633e8a1d4703027b4db0dd560b049a3ccd3e5b2638d0c4a9766583cf98e71467eea9403e872cf9526ba1172cf784ad3160fa12a27647b1761986aa91
7
+ data.tar.gz: 733bc007fb7a63dda1d04eed631100818515cef8170fad6b3b55d175fe822802046722b9d38343da41ab6a4c39eda3924d17092c30af0c452ddb831ea9ffa3db
Binary file
@@ -1,3 +1,3 @@
1
1
  module Sendout
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/sendout.rb CHANGED
@@ -4,7 +4,7 @@ require 'json'
4
4
 
5
5
  module Sendout
6
6
  include HTTParty
7
- base_uri "https://www.sendoutapp.com/api"
7
+ base_uri "https://www.sendoutapp.com/api/v2"
8
8
 
9
9
  # check account balance
10
10
  def self.check_balance
@@ -12,9 +12,9 @@ module Sendout
12
12
  end
13
13
 
14
14
  # send sms: dest is always an array of numbers and the message a string
15
- def self.send_sms(numbers=[], message)
15
+ def self.send_sms(numbers=[], debug={}, message)
16
16
  # fields from API
17
- data = {"para" => numbers, "sms" => message}
17
+ data = {"para" => numbers, "sms" => message, "debug" => debug}
18
18
 
19
19
  # merge the body content
20
20
  content = {}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Maziano
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-02 00:00:00.000000000 Z
11
+ date: 2017-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -82,9 +82,9 @@ files:
82
82
  - Rakefile
83
83
  - bin/console
84
84
  - bin/setup
85
+ - lib/.sendout.rb.swp
85
86
  - lib/sendout.rb
86
87
  - lib/sendout/version.rb
87
- - sendout-0.1.0.gem
88
88
  - sendout.gemspec
89
89
  homepage: https://github.com/smaziano/sendout
90
90
  licenses:
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  requirements: []
108
108
  rubyforge_project:
109
- rubygems_version: 2.5.1
109
+ rubygems_version: 2.6.8
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: A Ruby gem for SendOut API(https://www.sendoutapp.com) made by SmartTechys(http://smarttechys.co.ao).
data/sendout-0.1.0.gem DELETED
Binary file