loopiator 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/loopiator.rb +1 -1
- data/lib/loopiator/client.rb +8 -3
- data/loopiator.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc65dc0ed358865f9e04035ddc87a7d7e56c8c6b
|
4
|
+
data.tar.gz: a24334dc1016bc71ec185ba49baf96a2c987e915
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 345a83d52c1488574892cb12e4c4e049a2c9fa860fa41e8ece88b13a18eb0682032c122580b675d1dcca78e2b4e6b0761a70cd51c7917145006863bb004e04f7
|
7
|
+
data.tar.gz: 233de04b3747022b55c2d80080e57063fb8271713f1461f24a920afef0b103ca26bda102775c07f2cc1e9db0c18dc077f14ce602d97e0bd43e9db346e944a8a3
|
data/lib/loopiator.rb
CHANGED
data/lib/loopiator/client.rb
CHANGED
@@ -7,14 +7,15 @@ module Loopiator
|
|
7
7
|
|
8
8
|
include Loopiator::Logger
|
9
9
|
|
10
|
-
def initialize(connection_options = {})
|
11
|
-
set_client(connection_options)
|
10
|
+
def initialize(connection_options = {}, debug: false)
|
11
|
+
set_client(connection_options, debug: debug)
|
12
12
|
end
|
13
13
|
|
14
|
-
def set_client(connection_options = {})
|
14
|
+
def set_client(connection_options = {}, debug: false)
|
15
15
|
connection_options = generate_connection_options(connection_options)
|
16
16
|
|
17
17
|
self.client = XMLRPC::Client.new_from_hash(connection_options)
|
18
|
+
enable_debugging if debug
|
18
19
|
set_client_options(connection_options)
|
19
20
|
end
|
20
21
|
|
@@ -71,6 +72,10 @@ module Loopiator
|
|
71
72
|
default_options.merge(connection_options)
|
72
73
|
end
|
73
74
|
|
75
|
+
def enable_debugging
|
76
|
+
self.client.instance_variable_get(:@http).set_debug_output($stderr)
|
77
|
+
end
|
78
|
+
|
74
79
|
def set_client_options(connection_options = {})
|
75
80
|
self.client.instance_variable_get(:@http).instance_variable_set(:@verify_mode, OpenSSL::SSL::VERIFY_NONE)
|
76
81
|
|
data/loopiator.gemspec
CHANGED
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
|
|
3
3
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if s.respond_to? :required_rubygems_version=
|
4
4
|
|
5
5
|
s.name = 'loopiator'
|
6
|
-
s.version = '0.3.
|
6
|
+
s.version = '0.3.3'
|
7
7
|
|
8
8
|
s.homepage = "https://github.com/Agiley/Loopiator"
|
9
9
|
s.email = "sebastian@agiley.se"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loopiator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Johnsson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simpleidn
|