circonus 3.1.0 → 3.1.1

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 +2 -2
data/lib/circonus.rb CHANGED
@@ -107,7 +107,7 @@ class Circonus
107
107
  def list(method,filter=nil)
108
108
  url = @url_prefix + method
109
109
  if (not filter.nil?) and filter.any?
110
- query_string = filter.map { |k,v| "f_#{URI::escape(k)}=#{URI::escape(v)}" }.join('&')
110
+ query_string = filter.map { |k,v| [v].flatten.map { |val|"f_#{URI::escape(k)}=#{URI::escape(val)}" } }.flatten.join('&')
111
111
  url += '?' + query_string
112
112
  end
113
113
  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: 3.1.0
4
+ version: 3.1.1
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-01-28 00:00:00.000000000 Z
12
+ date: 2014-02-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client