signupto 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,9 +20,14 @@ module Signupto
20
20
  # PHP response method, so I make a URI encoded GET to there servers
21
21
  # and await the response; handling it appropriatly.
22
22
  def run_action(payload, page = 'smpp_account')
23
- Net::HTTP.start('sms.sign-up.to', 80) do |http|
24
- @result = http.get('/'<< page << '.php?' << payload)
25
- return @result
23
+ puts "[signupto] Running API call..."
24
+ begin
25
+ Net::HTTP.start('sms.sign-up.to', 80) do |http|
26
+ @result = http.get('/'<< page << '.php?' << payload)
27
+ return @result
28
+ end
29
+ rescue
30
+ raise "Could not send API call to signupto server"
26
31
  end
27
32
  end
28
33
 
@@ -2,7 +2,7 @@ module Signupto
2
2
  module Version #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signupto
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Perrett
@@ -9,7 +9,7 @@ autorequire: signupto
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-01-10 00:00:00 +00:00
12
+ date: 2008-01-28 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies: []
15
15