rest_connection 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.19
1
+ 0.0.20
@@ -180,7 +180,7 @@ module RestConnection
180
180
  @@logger = Logger.new(STDOUT)
181
181
  init_message += "STDOUT"
182
182
  end
183
- STDOUT.puts init_message
183
+ @@logger.info(init_message)
184
184
  end
185
185
 
186
186
  @@logger.info(message)
@@ -107,10 +107,12 @@ module RightScale
107
107
 
108
108
  # filter is only implemented on some api endpoints
109
109
  def find_with_filter(filter = {})
110
- filter_params = ""
111
- filter.each {|key,val| filter_params += "filter[]=#{key}=#{val}&"}
110
+ filter_params = []
111
+ filter.each { |key,val|
112
+ filter_params << "#{key}=#{val}"
113
+ }
112
114
  a = Array.new
113
- connection.get(self.resource_plural_name, filter_params).each do |object|
115
+ connection.get(self.resource_plural_name, :filter => filter_params).each do |object|
114
116
  a << self.new(object)
115
117
  end
116
118
  return a
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rest_connection}
8
- s.version = "0.0.19"
8
+ s.version = "0.0.20"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeremy Deininger"]
12
- s.date = %q{2011-03-04}
12
+ s.date = %q{2011-03-25}
13
13
  s.description = %q{provides rest_connection}
14
14
  s.email = %q{jeremy@rubyonlinux.org}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest_connection
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
4
+ hash: 55
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 19
10
- version: 0.0.19
9
+ - 20
10
+ version: 0.0.20
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jeremy Deininger
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-04 00:00:00 -08:00
18
+ date: 2011-03-25 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency