circonus 1.0.2 → 1.0.4

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 (2) hide show
  1. data/lib/circonus.rb +1 -1
  2. metadata +1 -1
data/lib/circonus.rb CHANGED
@@ -167,7 +167,7 @@ class Circonus
167
167
  params['end'] = Time.now.to_i unless params.has_key? 'end'
168
168
  params['period'] = 300 unless params.has_key? 'period'
169
169
  params['type'] = 'numeric' unless params.has_key? 'type'
170
- url = @url_prefix + 'data' + '/' + cid + '_' + metric
170
+ url = @url_prefix + 'data' + '/' + cid.split('/').last + '_' + CGI::escape(metric)
171
171
  #puts "url=#{url}" if @debug
172
172
  headers = @headers.merge({:params => params})
173
173
  r,err = _rest('get',url, headers)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: circonus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: