jprefecture 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in jprefecture.gemspec
4
+ gemspec
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,25 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "jprefecture/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "jprefecture"
7
+ s.version = JPrefecture::VERSION
8
+ s.authors = ["Akihiro Matsumura"]
9
+ s.email = ["matsumura.aki@gmail.com"]
10
+ s.homepage = ""
11
+ s.summary = %q{Japanese Prefecture}
12
+ s.description = %q{Japanese Prefecture list}
13
+
14
+ s.rubyforge_project = "jprefecture"
15
+
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"]
20
+
21
+ # specify any dependencies here; for example:
22
+ s.add_development_dependency 'rake', [">= 0"]
23
+ s.add_development_dependency 'rspec', ['>= 0']
24
+ # s.add_runtime_dependency "rest-client"
25
+ end
@@ -0,0 +1,58 @@
1
+ # -*- coding: utf-8 -*-
2
+ require "jprefecture/version"
3
+
4
+ module JPrefecture
5
+ PREFECTURES = %w(
6
+ 北海道
7
+ 青森県
8
+ 岩手県
9
+ 宮城県
10
+ 秋田県
11
+ 山形県
12
+ 福島県
13
+ 茨城県
14
+ 栃木県
15
+ 群馬県
16
+ 埼玉県
17
+ 千葉県
18
+ 東京都
19
+ 神奈川県
20
+ 新潟県
21
+ 富山県
22
+ 石川県
23
+ 福井県
24
+ 山梨県
25
+ 長野県
26
+ 岐阜県
27
+ 静岡県
28
+ 愛知県
29
+ 三重県
30
+ 滋賀県
31
+ 京都府
32
+ 大阪府
33
+ 兵庫県
34
+ 奈良県
35
+ 和歌山県
36
+ 鳥取県
37
+ 島根県
38
+ 岡山県
39
+ 広島県
40
+ 山口県
41
+ 徳島県
42
+ 香川県
43
+ 愛媛県
44
+ 高知県
45
+ 福岡県
46
+ 佐賀県
47
+ 長崎県
48
+ 熊本県
49
+ 大分県
50
+ 宮崎県
51
+ 鹿児島県
52
+ 沖縄県
53
+ )
54
+
55
+ def self.all
56
+ PREFECTURES
57
+ end
58
+ end
@@ -0,0 +1,3 @@
1
+ module JPrefecture
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,7 @@
1
+ require File.expand_path('spec_helper', File.dirname(__FILE__))
2
+
3
+ describe JPrefecture do
4
+ it "should return 47 prefectures" do
5
+ JPrefecture.all.size.should == 47
6
+ end
7
+ end
@@ -0,0 +1,4 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+
4
+ require "jprefecture"
metadata ADDED
@@ -0,0 +1,78 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jprefecture
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Akihiro Matsumura
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-03-22 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: &70232586363060 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: *70232586363060
25
+ - !ruby/object:Gem::Dependency
26
+ name: rspec
27
+ requirement: &70232586362540 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70232586362540
36
+ description: Japanese Prefecture list
37
+ email:
38
+ - matsumura.aki@gmail.com
39
+ executables: []
40
+ extensions: []
41
+ extra_rdoc_files: []
42
+ files:
43
+ - .gitignore
44
+ - Gemfile
45
+ - Rakefile
46
+ - jprefecture.gemspec
47
+ - lib/jprefecture.rb
48
+ - lib/jprefecture/version.rb
49
+ - spec/jprefecture_spec.rb
50
+ - spec/spec_helper.rb
51
+ homepage: ''
52
+ licenses: []
53
+ post_install_message:
54
+ rdoc_options: []
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ required_rubygems_version: !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ requirements: []
70
+ rubyforge_project: jprefecture
71
+ rubygems_version: 1.8.15
72
+ signing_key:
73
+ specification_version: 3
74
+ summary: Japanese Prefecture
75
+ test_files:
76
+ - spec/jprefecture_spec.rb
77
+ - spec/spec_helper.rb
78
+ has_rdoc: