sms_global_sender 0.0.3 → 0.0.4

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: dbbc3d28a272ad6eaaa8ca63d8d377468e8f5d59
4
- data.tar.gz: 0073f12dd3e936c1c244d152414cf5601c22b73a
3
+ metadata.gz: 09cc9a2b3a3c832500eca9e902781774e08dfaea
4
+ data.tar.gz: 382a41e84967dc4bc28855e344d3ee7e9b9dd019
5
5
  SHA512:
6
- metadata.gz: f0e8a555f8ffa3da6de3cac9b263ddf08ac3e8592d8c6f45b7d80be6307baf5dbda7576368f8ca20f77aa20946a451014ae82d89ad33109bdc6dbd372d672a12
7
- data.tar.gz: efcb12318958ac14fa99a62da8d2da4103d7cf392961ff64712458dc6a616d1cfea5734ee44233a74d73284c833290b5c91a02bae2c32c22628b46a3f3c8d55d
6
+ metadata.gz: 016f5ce2280dc81cbc25bf0ee2b86fb29ea07fe7416f1c4bb7b80debe5752134691fd2f5a1ae38e35a7866c91e5b146f608c2ffbc0116193b2cc8c210b2c0ff8
7
+ data.tar.gz: 07fd0d56367efd06732904544bfea48b6b1956ad095b8f8b6dcce7a0ae0d6ef930a5f60dd180d852b1e62c88d23386a6dedc636596638fcf54a874d453cce1f1
data/lib/sms_sender.rb CHANGED
@@ -19,7 +19,7 @@ class SmsSender
19
19
  'Content-Type' => 'application/json',
20
20
  'Accept' => 'application/json'}
21
21
 
22
- protocol = port == 443 ? 'https' : 'http'
22
+ protocol = @port == 443 ? 'https' : 'http'
23
23
  body = {"origin"=>title, "destination"=>mobile, "message"=>msg }
24
24
 
25
25
  response = HTTParty.post("#{protocol}://#{@host}#{@request_url}", headers: header, body: body.to_json)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'sms_global_sender'
3
- s.version = '0.0.3'
3
+ s.version = '0.0.4'
4
4
  s.date = '2014-02-05'
5
5
  s.summary = "Send sms through SMS gateway"
6
6
  s.description = "specific to smsglobal.com.au"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sms_global_sender
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harry Gao