rentjuicer 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -51,7 +51,13 @@ module Rentjuicer
51
51
  end
52
52
 
53
53
  def neighborhood_name
54
- self.neighborhoods.first unless neighborhoods.blank?
54
+ unless neighborhoods.blank?
55
+ if self.neighborhoods.first.is_a?(String)
56
+ self.neighborhoods.first
57
+ elsif self.neighborhoods.first.is_a?(Array)
58
+ self.neighborhoods.first[1]
59
+ end
60
+ end
55
61
  end
56
62
 
57
63
  def mls_listing?
@@ -86,7 +86,7 @@ module Rentjuicer
86
86
  def paginator
87
87
  paginator_cache if paginator_cache
88
88
  self.paginator_cache = WillPaginate::Collection.create(
89
- self.body.page,
89
+ self.body.page ||= 1,
90
90
  @limit,
91
91
  (self.body.total_count ? self.body.total_count : properties.size)) do |pager|
92
92
  pager.replace properties
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.0"
8
+ s.version = "0.6.1"
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-04-21}
12
+ s.date = %q{2011-06-16}
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: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 0
10
- version: 0.6.0
9
+ - 1
10
+ version: 0.6.1
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-04-21 00:00:00 -04:00
18
+ date: 2011-06-16 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency