chef-handler-opsmatic 0.0.9 → 0.0.10

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/chef/handler/opsmatic.rb +6 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 111a2d25c05ff91ddc37660487d6cf37d1dd9ad1
4
- data.tar.gz: d3e54a7e30a4332c724176812477bbf56f9d9740
3
+ metadata.gz: 50a432be3c1b081ad66641fa4c019cb0c741e197
4
+ data.tar.gz: 8f50b911b151d228840f15cb3314ea93ba6f0563
5
5
  SHA512:
6
- metadata.gz: 6a3fa5c15a7292e89e242d30aa5cba0acb2e3eac471620055691d8a8d9c42e7969eaa619345c318cfe9a36cf2623342c978902d80bbef06bba2aa49101305198
7
- data.tar.gz: c5fed53a6e356fe2d1baae07455afc214b66672e3bdc13ed42f5a933b0380c66d4fbdd21b083aa9231022dd1f3e2a151c5263b17001e0461d2204d7499bf9c6f
6
+ metadata.gz: 9d73aa4bcca6d02a7d50c5cfe72a0958286186000b0ed433fffcda17f7f2feb25fe5e04976d3f263401444ab20e0ec02e75b63e9eef985d3cc0e99831c8feca3
7
+ data.tar.gz: 6715f0f5af0b2379a703befcddcf22c1322ec394e0b9cb96a0fa0d0ebb8531b104cded691a2d4f7fc857dd4592364da191a94046677bee47cc13e486af9cf659
@@ -7,7 +7,7 @@ require 'json'
7
7
  class Chef
8
8
  class Handler
9
9
  class Opsmatic < ::Chef::Handler
10
- VERSION = "0.0.9"
10
+ VERSION = "0.0.10"
11
11
 
12
12
  def initialize(config = {})
13
13
  @config = config
@@ -110,7 +110,11 @@ class Chef
110
110
  def submit(event)
111
111
  Chef::Log.info("Posting chef run report to Opsmatic")
112
112
 
113
- url = URI.parse("#{@config[:collector_url]}?token=#{@config[:integration_token]}")
113
+ url = URI.parse(@config[:collector_url])
114
+
115
+ qs = url.query.nil? ? [] : url.query.split("&")
116
+ qs << "token=#{@config[:integration_token]}"
117
+ url.query = qs.join("&")
114
118
 
115
119
  http = Net::HTTP.new(url.host, url.port)
116
120
  http.open_timeout = 2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-handler-opsmatic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcus Barczak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-20 00:00:00.000000000 Z
11
+ date: 2014-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler