nexmo 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nexmo.rb +2 -1
- data/nexmo.gemspec +1 -1
- metadata +4 -4
data/lib/nexmo.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'net/http'
|
2
|
+
require 'net/https'
|
2
3
|
require 'json'
|
3
4
|
require 'cgi'
|
4
5
|
|
@@ -15,7 +16,7 @@ module Nexmo
|
|
15
16
|
attr_accessor :key, :secret, :http
|
16
17
|
|
17
18
|
def send_message(data)
|
18
|
-
response = post('/sms/json', data.merge(username
|
19
|
+
response = post('/sms/json', data.merge(:username => @key, :password => @secret))
|
19
20
|
|
20
21
|
object = JSON.parse(response.body)['messages'].first
|
21
22
|
|
data/nexmo.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nexmo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-08-
|
12
|
+
date: 2011-08-30 00:00:00.000000000 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
17
|
-
requirement: &
|
17
|
+
requirement: &1011080 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: 1.5.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *1011080
|
26
26
|
description: A simple wrapper for the Nexmo API
|
27
27
|
email:
|
28
28
|
- mail@timcraft.com
|