sms_gate 0.1.3 → 0.1.3.2

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: 23b248001eeb43f17b57217e5148e3d3aa1b2163
4
- data.tar.gz: 8bca21a8097c3c627ad5175e70bc9f0256d1fded
3
+ metadata.gz: c4fa9c4402ff0d0c2fc5e588d59da20ef022df3d
4
+ data.tar.gz: 81ef2abea50b24bbe520fc8c79d7d1fb95169178
5
5
  SHA512:
6
- metadata.gz: 6e124b0d1049fac91db0debc9a9d63feef177f9988b211d6523ce76307512fd96901db14304c1710aacfec90a6fb53bb41228a37e4b3aef9fb62d9d5abdd88ba
7
- data.tar.gz: 45ab19975d5cc88afb3a8b0f07d0c5f554c4629b627e45bd2eeac0033746c163ed089628b2e51d118a0ebbdf9b6b1030cce24c017549eaac44aca7a250ca0110
6
+ metadata.gz: 5b60107c428b89e92e457c71595924b798378db58bb8e6cebf58ae20e396db2a1940de90eb927bb36ca18271041444be34709a8e76a76464472d134f87b5cb9e
7
+ data.tar.gz: 46371c433c92f86d1a174f3b883daa8671e0edb7f6f25f16c705c252097313c23ed0db34e3b689a529dab7562bf5b127598fcef7a27557fc2db029c044c6b484
@@ -3,7 +3,6 @@ module SmsGate
3
3
 
4
4
  class SmsSluzba
5
5
  require 'httparty'
6
- require 'uri'
7
6
  include HTTParty
8
7
  base_uri 'https://smsgateapi.sluzba.cz'
9
8
 
@@ -22,8 +21,7 @@ module SmsGate
22
21
  end
23
22
 
24
23
  def send_sms(sms)
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) }
24
+ options = { act: 'send', msisdn: sms.to, msg: sms.text, login: @params[:user], auth: sms_gate_auth_hash(sms.text) }
27
25
  self.class.post('/apipost30/sms', query: options)
28
26
  end
29
27
 
@@ -1,3 +1,3 @@
1
1
  module SmsGate
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.3.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sms_gate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jiri Kaipr