citygrid_api 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
data/citygrid_api.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{citygrid_api}
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Elpizo Choi"]
12
- s.date = %q{2011-07-15}
12
+ s.date = %q{2011-07-18}
13
13
  s.description = %q{Ruby wrapper for CityGrid APIs}
14
14
  s.email = %q{fu7iin@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -26,7 +26,7 @@ class CityGrid
26
26
 
27
27
  def preprocess response
28
28
  response.locations.map do |detail|
29
- Listing.new(detail).send(:load)
29
+ Listing.new(detail).send(:load, false)
30
30
  end
31
31
  end
32
32
  end
@@ -12,14 +12,15 @@ class CityGrid
12
12
  end
13
13
 
14
14
  def method_missing meth, *args, &block
15
- load.update_details unless @loaded
15
+ load unless @loaded
16
16
  send(meth, *args, &block) rescue super
17
17
  end
18
18
 
19
19
  private
20
20
 
21
- def load
21
+ def load hit_api = true
22
22
  extend LoadedMethods
23
+ update_details if hit_api
23
24
  @loaded = true
24
25
  self
25
26
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: citygrid_api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Elpizo Choi
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-15 00:00:00 Z
18
+ date: 2011-07-18 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :runtime