iarea 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/db/iareadata.sqlite3 +0 -0
- data/iarea.gemspec +3 -3
- data/spec/iarea/area_spec.rb +5 -0
- data/tools/import_areas.rb +5 -0
- metadata +9 -9
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/db/iareadata.sqlite3
CHANGED
Binary file
|
data/iarea.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{iarea}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Yoji Shidara"]
|
12
|
-
s.date = %q{2011-04-
|
12
|
+
s.date = %q{2011-04-11}
|
13
13
|
s.description = %q{A library for DoCoMo Open Iarea.}
|
14
14
|
s.email = %q{dara@shidara.net}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -38,7 +38,7 @@ Gem::Specification.new do |s|
|
|
38
38
|
]
|
39
39
|
s.homepage = %q{http://github.com/darashi/iarea}
|
40
40
|
s.require_paths = ["lib"]
|
41
|
-
s.rubygems_version = %q{1.
|
41
|
+
s.rubygems_version = %q{1.5.2}
|
42
42
|
s.summary = %q{A library for DoCoMo Open Iarea.}
|
43
43
|
s.test_files = [
|
44
44
|
"spec/iarea/area_spec.rb",
|
data/spec/iarea/area_spec.rb
CHANGED
data/tools/import_areas.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# coding: utf-8
|
2
3
|
|
3
4
|
require 'csv'
|
4
5
|
require 'json'
|
@@ -87,6 +88,10 @@ db.transaction do
|
|
87
88
|
:zone_id => area['zone'],
|
88
89
|
:prefecture_id => area['pref']
|
89
90
|
}
|
91
|
+
# fix .js problem
|
92
|
+
if hash[:name] == '新宿1?2丁目'
|
93
|
+
hash[:name] = '新宿1〜2丁目'
|
94
|
+
end
|
90
95
|
db[:areas].insert(hash)
|
91
96
|
|
92
97
|
area['neighbors'].each do |neighbor|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iarea
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-04-
|
12
|
+
date: 2011-04-11 00:00:00.000000000 %:z
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: sequel
|
17
|
-
requirement: &
|
17
|
+
requirement: &2157279440 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 3.22.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2157279440
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: sqlite3-ruby
|
28
|
-
requirement: &
|
28
|
+
requirement: &2157277700 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 1.3.3
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2157277700
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: rspec
|
39
|
-
requirement: &
|
39
|
+
requirement: &2157276080 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: 2.5.0
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *2157276080
|
48
48
|
description: A library for DoCoMo Open Iarea.
|
49
49
|
email: dara@shidara.net
|
50
50
|
executables: []
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
94
|
rubyforge_project:
|
95
|
-
rubygems_version: 1.
|
95
|
+
rubygems_version: 1.5.2
|
96
96
|
signing_key:
|
97
97
|
specification_version: 3
|
98
98
|
summary: A library for DoCoMo Open Iarea.
|