sms_gate 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/generators/sms_gate/templates/config.yml +1 -1
- data/lib/sms_gate/adapters/sms_sluzba.rb +3 -1
- data/lib/sms_gate/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23b248001eeb43f17b57217e5148e3d3aa1b2163
|
4
|
+
data.tar.gz: 8bca21a8097c3c627ad5175e70bc9f0256d1fded
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e124b0d1049fac91db0debc9a9d63feef177f9988b211d6523ce76307512fd96901db14304c1710aacfec90a6fb53bb41228a37e4b3aef9fb62d9d5abdd88ba
|
7
|
+
data.tar.gz: 45ab19975d5cc88afb3a8b0f07d0c5f554c4629b627e45bd2eeac0033746c163ed089628b2e51d118a0ebbdf9b6b1030cce24c017549eaac44aca7a250ca0110
|
data/Gemfile.lock
CHANGED
@@ -3,6 +3,7 @@ module SmsGate
|
|
3
3
|
|
4
4
|
class SmsSluzba
|
5
5
|
require 'httparty'
|
6
|
+
require 'uri'
|
6
7
|
include HTTParty
|
7
8
|
base_uri 'https://smsgateapi.sluzba.cz'
|
8
9
|
|
@@ -21,7 +22,8 @@ module SmsGate
|
|
21
22
|
end
|
22
23
|
|
23
24
|
def send_sms(sms)
|
24
|
-
|
25
|
+
encoded_text = URI.encode sms.text
|
26
|
+
options = { act: 'send', msisdn: sms.to, msg: encoded_text, login: @params[:user], auth: sms_gate_auth_hash(encoded_text) }
|
25
27
|
self.class.post('/apipost30/sms', query: options)
|
26
28
|
end
|
27
29
|
|
data/lib/sms_gate/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sms_gate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jiri Kaipr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
170
|
version: '0'
|
171
171
|
requirements: []
|
172
172
|
rubyforge_project: sms_gate
|
173
|
-
rubygems_version: 2.
|
173
|
+
rubygems_version: 2.5.1
|
174
174
|
signing_key:
|
175
175
|
specification_version: 4
|
176
176
|
summary: Simple interface to SMS Gateways
|