runpuppet 0.5.2 → 0.5.3

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/runpuppet.rb +6 -1
  3. data/runpuppet.gemspec +1 -1
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
data/lib/runpuppet.rb CHANGED
@@ -33,7 +33,12 @@ class Runpuppet
33
33
  def self.get(path)
34
34
  path += (path.include?('?') ? '&' : '?')
35
35
  path += "hostname=#{Socket.gethostname}&ip=#{Config.local_ip}"
36
- open(Config.puppet_controller_url + path, Config.puppet_controller_auth) rescue puts "WARNING: no connection to puppet controller!"
36
+ begin
37
+ open(Config.puppet_controller_url + path, {:http_basic_authentication =>Config.puppet_controller_auth} )
38
+ rescue Exception => e
39
+ puts e.inspect
40
+ puts "WARNING: no connection to puppet controller!"
41
+ end
37
42
  end
38
43
 
39
44
 
data/runpuppet.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{runpuppet}
8
- s.version = "0.5.2"
8
+ s.version = "0.5.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Roman Heinrich"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runpuppet
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 2
10
- version: 0.5.2
9
+ - 3
10
+ version: 0.5.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roman Heinrich