nowa-top4r 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/top4r/client/base.rb +1 -1
- data/lib/top4r/config.rb +8 -8
- data/lib/top4r/version.rb +1 -1
- metadata +1 -1
data/lib/top4r/client/base.rb
CHANGED
@@ -79,7 +79,7 @@ class Top4R::Client
|
|
79
79
|
end
|
80
80
|
|
81
81
|
def create_http_connection
|
82
|
-
protocol, host, port = (@@config.env == :production ? @@config.protocol :
|
82
|
+
protocol, host, port = (@@config.env == :production ? @@config.protocol : @@config.test_protocol), (@@config.env == :production ? @@config.host : @@config.test_host), (@@config.env == :production ? @@config.port : @@config.test_port)
|
83
83
|
@@logger.info "Host: #{host}\nPort: #{port}\n"
|
84
84
|
conn = Net::HTTP.new(host, port,
|
85
85
|
@@config.proxy_host, @@config.proxy_port,
|
data/lib/top4r/config.rb
CHANGED
@@ -12,10 +12,10 @@ module Top4R
|
|
12
12
|
:test_rest_uri,
|
13
13
|
:test_port,
|
14
14
|
:test_protocol,
|
15
|
-
:staging_host,
|
16
|
-
:staging_rest_uri,
|
17
|
-
:staging_port,
|
18
|
-
:staging_protocol,
|
15
|
+
# :staging_host,
|
16
|
+
# :staging_rest_uri,
|
17
|
+
# :staging_port,
|
18
|
+
# :staging_protocol,
|
19
19
|
:proxy_host,
|
20
20
|
:proxy_port,
|
21
21
|
:proxy_user,
|
@@ -55,10 +55,10 @@ module Top4R
|
|
55
55
|
:test_rest_uri => '/router/rest',
|
56
56
|
:test_port => 80,
|
57
57
|
:test_protocol => :http,
|
58
|
-
:staging_host => '192.168.208.110',
|
59
|
-
:staging_rest_uri => '/top/private/services/rest',
|
60
|
-
:staging_port => '8080',
|
61
|
-
:staging_protocol => :http,
|
58
|
+
# :staging_host => '192.168.208.110',
|
59
|
+
# :staging_rest_uri => '/top/private/services/rest',
|
60
|
+
# :staging_port => '8080',
|
61
|
+
# :staging_protocol => :http,
|
62
62
|
:proxy_host => nil,
|
63
63
|
:proxy_port => nil,
|
64
64
|
:format => :json,
|
data/lib/top4r/version.rb
CHANGED