rentjuicer 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rentjuicer/listings.rb +4 -4
- data/rentjuicer.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.3
|
data/lib/rentjuicer/listings.rb
CHANGED
@@ -20,8 +20,8 @@ module Rentjuicer
|
|
20
20
|
search(params)
|
21
21
|
end
|
22
22
|
|
23
|
-
def find_by_id(listing_id)
|
24
|
-
response = SearchResponse.new(self.client.process_get(resource,
|
23
|
+
def find_by_id(listing_id, params = {})
|
24
|
+
response = SearchResponse.new(self.client.process_get(resource, params.merge(:rentjuice_id => listing_id)))
|
25
25
|
(response.success? && response.properties.size > 0) ? response.properties.first : nil
|
26
26
|
end
|
27
27
|
|
@@ -45,12 +45,12 @@ module Rentjuicer
|
|
45
45
|
all_listings.flatten
|
46
46
|
end
|
47
47
|
|
48
|
-
def find_all_by_ids(listing_ids)
|
48
|
+
def find_all_by_ids(listing_ids, params = {})
|
49
49
|
listing_ids = listing_ids.split(',') if listing_ids.is_a?(String)
|
50
50
|
all_listings = []
|
51
51
|
listing_ids.in_groups_of(500, false).each do |group|
|
52
52
|
group.delete_if{|x| x.nil?}
|
53
|
-
all_listings << find_all(:rentjuice_id => group.join(','))
|
53
|
+
all_listings << find_all(params.merge(:rentjuice_id => group.join(',')))
|
54
54
|
end
|
55
55
|
all_listings.flatten
|
56
56
|
end
|
data/rentjuicer.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rentjuicer}
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["tcocca"]
|
12
|
-
s.date = %q{2011-06-
|
12
|
+
s.date = %q{2011-06-17}
|
13
13
|
s.description = %q{Ruby API wrapper for rentjuice.com built with httparty}
|
14
14
|
s.email = %q{tom.cocca@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rentjuicer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 3
|
10
|
+
version: 0.6.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- tcocca
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-06-
|
18
|
+
date: 2011-06-17 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|