circonus 3.6.10 → 3.6.11

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
@@ -152,7 +152,7 @@ class Circonus
152
152
  def get_data(cid,metric,params = {})
153
153
  params['start'] = (Time.now - 3600).to_i unless params.has_key? 'start'
154
154
  params['end'] = Time.now.to_i unless params.has_key? 'end'
155
- params['period'] = 300 unless (params.has_key? 'period') or params['period'].nil?
155
+ params['period'] = 300 unless params.has_key? 'period'
156
156
  params['type'] = 'numeric' unless params.has_key? 'type'
157
157
  url = @url_prefix + 'data' + '/' + URI.escape(cid.to_s.split('/').last) + '_' + URI::escape(metric)
158
158
  headers = @headers.merge({:params => params})
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: 3.6.10
4
+ version: 3.6.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: