librato_silverline_api 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- librato_silverline_api (1.0.1)
4
+ librato_silverline_api (1.0.2)
5
5
  json (= 1.4.6)
6
6
  rest-client (= 1.6.1)
7
7
 
@@ -131,7 +131,7 @@ module SilverlineAPI
131
131
  options = args.slice!(0) || {}
132
132
 
133
133
  if scope == :all
134
- array = options.map {|k, v| "#{k}=#{URI.escape(v)}"}
134
+ array = options.map {|k, v| "#{k}=#{URI.escape(v.to_s)}"}
135
135
  arguments = array.join("&")
136
136
  unless arguments.empty?
137
137
  query = "/templates.json?#{arguments}"
@@ -1,3 +1,3 @@
1
1
  module SilverlineAPI
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -18,6 +18,9 @@ module SilverlineAPI
18
18
 
19
19
  templates = Template.find(:all)
20
20
  assert templates.count > 0
21
+
22
+ templates = Template.find(:all, :offset => 0)
23
+ assert templates.count > 0
21
24
 
22
25
  templates = Template.find(:all, :name => "oo")
23
26
  assert templates.first.name == "foo"
@@ -82,4 +85,4 @@ module SilverlineAPI
82
85
  assert container.name == "system"
83
86
  end
84
87
  end
85
- end
88
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: librato_silverline_api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Blaettermann