circonus 3.6.9 → 3.6.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/circonus.rb +1 -1
  2. metadata +2 -2
@@ -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'
155
+ params['period'] = 300 unless (params.has_key? 'period') or params['period'].nil?
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.9
4
+ version: 3.6.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-22 00:00:00.000000000 Z
12
+ date: 2015-03-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client