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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4324e0e9a25a23c3f4fde4bf1aa8f78ff2c66688
4
- data.tar.gz: 36626e841e19b7ba2ad1bf3778eb21168a093304
3
+ metadata.gz: bc65dc0ed358865f9e04035ddc87a7d7e56c8c6b
4
+ data.tar.gz: a24334dc1016bc71ec185ba49baf96a2c987e915
5
5
  SHA512:
6
- metadata.gz: e0a9c4430167a1b3f51023348eeb60b6230c8341031e5fef7872525cc4ed380d6ee0843ea231991b6392abe874f631d2444e084549551aed18c3c5ff39d6c246
7
- data.tar.gz: 15fee396261a94f0551c68929973c9c84e1c6a3d48737f1fd617b5bbe9295c1d28fafabf7a127f8437be35d3fe3a374adaf2f03269693e95fc7323070d75dbc8
6
+ metadata.gz: 345a83d52c1488574892cb12e4c4e049a2c9fa860fa41e8ece88b13a18eb0682032c122580b675d1dcca78e2b4e6b0761a70cd51c7917145006863bb004e04f7
7
+ data.tar.gz: 233de04b3747022b55c2d80080e57063fb8271713f1461f24a920afef0b103ca26bda102775c07f2cc1e9db0c18dc077f14ce602d97e0bd43e9db346e944a8a3
data/lib/loopiator.rb CHANGED
@@ -10,7 +10,7 @@ require File.join(File.dirname(__FILE__), 'loopiator/credits')
10
10
  require File.join(File.dirname(__FILE__), 'loopiator/client')
11
11
 
12
12
  module Loopiator
13
- VERSION = "0.3.2"
13
+ VERSION = "0.3.3"
14
14
 
15
15
  class << self
16
16
  attr_writer :configuration
@@ -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.2'
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.2
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-21 00:00:00.000000000 Z
11
+ date: 2015-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simpleidn