iarea 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ .bundle
2
+ pkg
3
+ rdoc
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in iarea.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,34 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ iarea (0.1.4)
5
+ sequel
6
+ sqlite3-ruby
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ diff-lcs (1.1.2)
12
+ rake (0.9.2)
13
+ rdoc (3.8)
14
+ rspec (2.6.0)
15
+ rspec-core (~> 2.6.0)
16
+ rspec-expectations (~> 2.6.0)
17
+ rspec-mocks (~> 2.6.0)
18
+ rspec-core (2.6.4)
19
+ rspec-expectations (2.6.0)
20
+ diff-lcs (~> 1.1.2)
21
+ rspec-mocks (2.6.0)
22
+ sequel (3.25.0)
23
+ sqlite3 (1.3.3)
24
+ sqlite3-ruby (1.3.3)
25
+ sqlite3 (>= 1.3.3)
26
+
27
+ PLATFORMS
28
+ ruby
29
+
30
+ DEPENDENCIES
31
+ iarea!
32
+ rake
33
+ rdoc
34
+ rspec
data/Rakefile CHANGED
@@ -1,35 +1,12 @@
1
- require 'psych'
2
- load 'lib/tasks/iarea.rake'
3
-
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "iarea"
8
- gem.summary = "A library for DoCoMo Open Iarea."
9
- gem.description = "A library for DoCoMo Open Iarea."
10
- gem.email = "dara@shidara.net"
11
- gem.homepage = "http://github.com/darashi/iarea"
12
- gem.authors = ["Yoji Shidara"]
13
-
14
- gem.add_dependency "sequel", ">= 3.22.0"
15
- gem.add_dependency "sqlite3-ruby", ">= 1.3.3"
16
-
17
- gem.add_development_dependency "rspec", ">= 2.5.0"
18
- end
19
- rescue LoadError
20
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
21
- end
22
-
23
- Jeweler::GemcutterTasks.new
24
-
25
1
  require 'rspec/core/rake_task.rb'
26
2
  RSpec::Core::RakeTask.new(:test) do |t|
27
3
  t.verbose = true
28
4
  end
29
5
 
30
- require 'rake/rdoctask'
31
- Rake::RDocTask.new do |rdoc|
32
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
6
+ require 'rdoc/task'
7
+ RDoc::Task.new do |rdoc|
8
+ require_relative 'lib/iarea/version'
9
+ version = Iarea::VERSION
33
10
 
34
11
  rdoc.rdoc_dir = 'rdoc'
35
12
  rdoc.title = "iarea #{version}"
@@ -38,3 +15,5 @@ Rake::RDocTask.new do |rdoc|
38
15
  end
39
16
 
40
17
  task :default => :test
18
+
19
+ require 'bundler/gem_tasks'
data/iarea.gemspec CHANGED
@@ -1,69 +1,26 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "iarea/version"
5
4
 
6
5
  Gem::Specification.new do |s|
7
- s.name = %q{iarea}
8
- s.version = "0.1.3"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Yoji Shidara"]
12
- s.date = %q{2011-04-11}
6
+ s.name = "iarea"
7
+ s.version = Iarea::VERSION
8
+ s.authors = ["SHIDARA Yoji"]
9
+ s.email = ["dara@shidara.net"]
10
+ s.homepage = "http://github.com/darashi/iarea"
11
+ s.summary = %q{A library for DoCoMo Open Iarea.}
13
12
  s.description = %q{A library for DoCoMo Open Iarea.}
14
- s.email = %q{dara@shidara.net}
15
- s.extra_rdoc_files = [
16
- "README.rdoc"
17
- ]
18
- s.files = [
19
- "MIT-LICENSE",
20
- "README.rdoc",
21
- "Rakefile",
22
- "VERSION",
23
- "db/iareadata.sqlite3",
24
- "iarea.gemspec",
25
- "lib/iarea.rb",
26
- "lib/iarea/area.rb",
27
- "lib/iarea/prefecture.rb",
28
- "lib/iarea/utils.rb",
29
- "lib/iarea/zone.rb",
30
- "lib/tasks/iarea.rake",
31
- "spec/iarea/area_spec.rb",
32
- "spec/iarea/prefecture_spec.rb",
33
- "spec/iarea/util_spec.rb",
34
- "spec/iarea/zone_spec.rb",
35
- "spec/spec_helper.rb",
36
- "tools/import_areas.rb",
37
- "tools/import_meshes.rb"
38
- ]
39
- s.homepage = %q{http://github.com/darashi/iarea}
40
- s.require_paths = ["lib"]
41
- s.rubygems_version = %q{1.5.2}
42
- s.summary = %q{A library for DoCoMo Open Iarea.}
43
- s.test_files = [
44
- "spec/iarea/area_spec.rb",
45
- "spec/iarea/prefecture_spec.rb",
46
- "spec/iarea/util_spec.rb",
47
- "spec/iarea/zone_spec.rb",
48
- "spec/spec_helper.rb"
49
- ]
50
13
 
51
- if s.respond_to? :specification_version then
52
- s.specification_version = 3
14
+ s.rubyforge_project = "iarea"
53
15
 
54
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
55
- s.add_runtime_dependency(%q<sequel>, [">= 3.22.0"])
56
- s.add_runtime_dependency(%q<sqlite3-ruby>, [">= 1.3.3"])
57
- s.add_development_dependency(%q<rspec>, [">= 2.5.0"])
58
- else
59
- s.add_dependency(%q<sequel>, [">= 3.22.0"])
60
- s.add_dependency(%q<sqlite3-ruby>, [">= 1.3.3"])
61
- s.add_dependency(%q<rspec>, [">= 2.5.0"])
62
- end
63
- else
64
- s.add_dependency(%q<sequel>, [">= 3.22.0"])
65
- s.add_dependency(%q<sqlite3-ruby>, [">= 1.3.3"])
66
- s.add_dependency(%q<rspec>, [">= 2.5.0"])
67
- end
68
- end
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
69
20
 
21
+ s.add_runtime_dependency 'sequel'
22
+ s.add_runtime_dependency 'sqlite3-ruby'
23
+ s.add_development_dependency 'rspec'
24
+ s.add_development_dependency 'rdoc'
25
+ s.add_development_dependency 'rake'
26
+ end
@@ -0,0 +1,3 @@
1
+ module Iarea
2
+ VERSION = "0.1.4"
3
+ end
data/lib/iarea.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'sequel'
2
2
  require 'ostruct'
3
+ require_relative 'iarea/version'
3
4
 
4
5
  module Iarea # :nodoc:
5
6
  DB = Sequel.sqlite(File.expand_path("../../db/iareadata.sqlite3", __FILE__)) # :nodoc:
metadata CHANGED
@@ -1,57 +1,81 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iarea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - Yoji Shidara
8
+ - SHIDARA Yoji
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-04-11 00:00:00.000000000 %:z
13
- default_executable:
12
+ date: 2011-07-21 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: sequel
17
- requirement: &2157279440 !ruby/object:Gem::Requirement
16
+ requirement: &2152073560 !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
19
  - - ! '>='
21
20
  - !ruby/object:Gem::Version
22
- version: 3.22.0
21
+ version: '0'
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *2157279440
24
+ version_requirements: *2152073560
26
25
  - !ruby/object:Gem::Dependency
27
26
  name: sqlite3-ruby
28
- requirement: &2157277700 !ruby/object:Gem::Requirement
27
+ requirement: &2152072320 !ruby/object:Gem::Requirement
29
28
  none: false
30
29
  requirements:
31
30
  - - ! '>='
32
31
  - !ruby/object:Gem::Version
33
- version: 1.3.3
32
+ version: '0'
34
33
  type: :runtime
35
34
  prerelease: false
36
- version_requirements: *2157277700
35
+ version_requirements: *2152072320
37
36
  - !ruby/object:Gem::Dependency
38
37
  name: rspec
39
- requirement: &2157276080 !ruby/object:Gem::Requirement
38
+ requirement: &2152071540 !ruby/object:Gem::Requirement
40
39
  none: false
41
40
  requirements:
42
41
  - - ! '>='
43
42
  - !ruby/object:Gem::Version
44
- version: 2.5.0
43
+ version: '0'
45
44
  type: :development
46
45
  prerelease: false
47
- version_requirements: *2157276080
46
+ version_requirements: *2152071540
47
+ - !ruby/object:Gem::Dependency
48
+ name: rdoc
49
+ requirement: &2152066340 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *2152066340
58
+ - !ruby/object:Gem::Dependency
59
+ name: rake
60
+ requirement: &2152065540 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *2152065540
48
69
  description: A library for DoCoMo Open Iarea.
49
- email: dara@shidara.net
70
+ email:
71
+ - dara@shidara.net
50
72
  executables: []
51
73
  extensions: []
52
- extra_rdoc_files:
53
- - README.rdoc
74
+ extra_rdoc_files: []
54
75
  files:
76
+ - .gitignore
77
+ - Gemfile
78
+ - Gemfile.lock
55
79
  - MIT-LICENSE
56
80
  - README.rdoc
57
81
  - Rakefile
@@ -62,6 +86,7 @@ files:
62
86
  - lib/iarea/area.rb
63
87
  - lib/iarea/prefecture.rb
64
88
  - lib/iarea/utils.rb
89
+ - lib/iarea/version.rb
65
90
  - lib/iarea/zone.rb
66
91
  - lib/tasks/iarea.rake
67
92
  - spec/iarea/area_spec.rb
@@ -71,7 +96,6 @@ files:
71
96
  - spec/spec_helper.rb
72
97
  - tools/import_areas.rb
73
98
  - tools/import_meshes.rb
74
- has_rdoc: true
75
99
  homepage: http://github.com/darashi/iarea
76
100
  licenses: []
77
101
  post_install_message:
@@ -84,15 +108,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
84
108
  - - ! '>='
85
109
  - !ruby/object:Gem::Version
86
110
  version: '0'
111
+ segments:
112
+ - 0
113
+ hash: 2329483377850070231
87
114
  required_rubygems_version: !ruby/object:Gem::Requirement
88
115
  none: false
89
116
  requirements:
90
117
  - - ! '>='
91
118
  - !ruby/object:Gem::Version
92
119
  version: '0'
120
+ segments:
121
+ - 0
122
+ hash: 2329483377850070231
93
123
  requirements: []
94
- rubyforge_project:
95
- rubygems_version: 1.5.2
124
+ rubyforge_project: iarea
125
+ rubygems_version: 1.8.3
96
126
  signing_key:
97
127
  specification_version: 3
98
128
  summary: A library for DoCoMo Open Iarea.