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 +1 -1
- data/lib/librato_silverline_api.rb +1 -1
- data/lib/librato_silverline_api/version.rb +1 -1
- data/test/functional_test.rb +4 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
@@ -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}"
|
data/test/functional_test.rb
CHANGED
@@ -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:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chris Blaettermann
|