direct_address 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/direct_address.gemspec +2 -2
- data/lib/direct_address/harvester/geoname.rb +1 -1
- data/lib/direct_address.rb +2 -2
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -24,7 +24,7 @@ Once that's complete, migrate your database
|
|
24
24
|
|
25
25
|
Now you're ready to download up-to-date country and region information from geoname.org
|
26
26
|
|
27
|
-
rake direct_address:
|
27
|
+
rake direct_address:seed
|
28
28
|
|
29
29
|
<b>This will take a few minutes and should be done on a decent connection.</b>
|
30
30
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/direct_address.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{direct_address}
|
8
|
-
s.version = "0.0.
|
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 = ["Mike Nelson"]
|
12
|
-
s.date = %q{2010-02-
|
12
|
+
s.date = %q{2010-02-26}
|
13
13
|
s.description = %q{Direct Address provides a rails app with simple address features. This is a streamlined implementation of address functionality. Direct Address provides you with address, country, and region classes. It also provides a generator which generates the necessary javascript and rake tasks to implement properly. You'll also get form helpers to easily implement Direct Address in your views. A rake task is provided that allows up to date country and region information to be downloaded from geoname.org.}
|
14
14
|
s.email = %q{mdnelson30@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -71,7 +71,7 @@ class Geoname
|
|
71
71
|
|
72
72
|
def self.parse_regions(body)
|
73
73
|
doc = Hpricot(body)
|
74
|
-
(doc/"#subdivtable td
|
74
|
+
(doc/"#subdivtable tr td:nth-child(4) a[@href]").collect {|elem| elem.innerHTML}
|
75
75
|
end
|
76
76
|
|
77
77
|
def self.url_format(string)
|
data/lib/direct_address.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
[:form_builder, :form_helper, :acts_as_addressable].each do |file|
|
2
|
-
require File.dirname(__FILE__)
|
2
|
+
require File.join(File.dirname(__FILE__), 'direct_address', file.to_s)
|
3
3
|
end
|
4
4
|
|
5
|
-
require File.dirname(__FILE__)
|
5
|
+
require File.join(File.dirname(__FILE__), 'direct_address', 'harvester', 'geoname.rb')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: direct_address
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Nelson
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-02-
|
12
|
+
date: 2010-02-26 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|