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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a35ed0b49a2421bddf746eaed5832b335dc3363
4
- data.tar.gz: b1c0fb8dfe3ec6ef71c3b435eb7e44a1cc204fc9
3
+ metadata.gz: 23b248001eeb43f17b57217e5148e3d3aa1b2163
4
+ data.tar.gz: 8bca21a8097c3c627ad5175e70bc9f0256d1fded
5
5
  SHA512:
6
- metadata.gz: 238467fff463b1801b273418e5b7a7d9d4a035412ca6ef98256c38dbcf35a6ade04d63687b70c1a362c82257600d766d4d4ff724f08449cac02efc0e80da5ba5
7
- data.tar.gz: edb809ff8e14e394198c75096a79bb2232c921003ac2a344502a658190749ce7602dde254673e6d1b66b04894a2333e3a10e7e74b5339301af2117181c506ce5
6
+ metadata.gz: 6e124b0d1049fac91db0debc9a9d63feef177f9988b211d6523ce76307512fd96901db14304c1710aacfec90a6fb53bb41228a37e4b3aef9fb62d9d5abdd88ba
7
+ data.tar.gz: 45ab19975d5cc88afb3a8b0f07d0c5f554c4629b627e45bd2eeac0033746c163ed089628b2e51d118a0ebbdf9b6b1030cce24c017549eaac44aca7a250ca0110
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sms_gate (0.1.1)
4
+ sms_gate (0.1.2)
5
5
  httparty (~> 0.13)
6
6
  resque (~> 1)
7
7
 
@@ -5,7 +5,7 @@ development:
5
5
  adapter: sms_sluzba
6
6
 
7
7
  test:
8
- adapter: :test
8
+ adapter: test
9
9
 
10
10
  production:
11
11
  user: username
@@ -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
- options = { act: 'send', msisdn: sms.to, msg: sms.text, login: @params[:user], auth: sms_gate_auth_hash(sms.text) }
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
 
@@ -1,3 +1,3 @@
1
1
  module SmsGate
2
- VERSION = "0.1.1"
2
+ VERSION = '0.1.3'
3
3
  end
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.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: 2014-08-27 00:00:00.000000000 Z
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.2.2
173
+ rubygems_version: 2.5.1
174
174
  signing_key:
175
175
  specification_version: 4
176
176
  summary: Simple interface to SMS Gateways