4info 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/4info.gemspec +1 -1
- data/README.markdown +1 -1
- data/VERSION +1 -1
- data/lib/four_info.rb +5 -2
- data/lib/request.rb +2 -2
- metadata +1 -1
data/4info.gemspec
CHANGED
data/README.markdown
CHANGED
@@ -31,7 +31,7 @@ You can also specify which attributes you'd like to use instead of the defaults
|
|
31
31
|
Turning the thing on
|
32
32
|
---
|
33
33
|
|
34
|
-
Because it can be expensive to send TXTs accidentally it's required that you manually configure FourInfo in your app. Put this line in config/
|
34
|
+
Because it can be expensive to send TXTs accidentally, it's required that you manually configure FourInfo in your app. Put this line in config/environments/production.rb or anything that loads _only_ in your production environment:
|
35
35
|
|
36
36
|
FourInfo.mode = :live
|
37
37
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.4
|
data/lib/four_info.rb
CHANGED
data/lib/request.rb
CHANGED
@@ -61,7 +61,7 @@ module FourInfo
|
|
61
61
|
if :live == FourInfo.mode
|
62
62
|
start do |http|
|
63
63
|
http.post(
|
64
|
-
FourInfo
|
64
|
+
FourInfo.gateway.path,
|
65
65
|
body,
|
66
66
|
{'Content-Type' => 'text/xml'}
|
67
67
|
).read_body
|
@@ -75,7 +75,7 @@ module FourInfo
|
|
75
75
|
net = config[:proxy].blank? ?
|
76
76
|
Net::HTTP :
|
77
77
|
Net::HTTP::Proxy(*config[:proxy].split(":"))
|
78
|
-
net.start(FourInfo
|
78
|
+
net.start(FourInfo.gateway.host, FourInfo.gateway.port) do |http|
|
79
79
|
yield http
|
80
80
|
end
|
81
81
|
end
|