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.
- data/lib/signupto/action/base.rb +8 -3
- data/lib/signupto/version.rb +1 -1
- metadata +2 -2
data/lib/signupto/action/base.rb
CHANGED
@@ -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
|
-
|
24
|
-
|
25
|
-
|
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
|
|
data/lib/signupto/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2008-01-28 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|