jp_prefecture 0.0.1

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.
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --colour
2
+ --format documentation
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in jp_prefecture.gemspec
4
+ gemspec
@@ -0,0 +1,5 @@
1
+ guard 'rspec' do
2
+ watch(%r{^spec/.+_spec\.rb$})
3
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
4
+ watch('spec/spec_helper.rb') { "spec" }
5
+ end
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 chocoby
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,97 @@
1
+ # JpPrefecture
2
+
3
+ ## jp_prefecture とは
4
+
5
+ 都道府県コードと都道府県名を変換するライブラリです。
6
+ Ruby on Rails で使用することもできます。
7
+
8
+ ## インストール方法
9
+
10
+ Gemfile に記述してインストールするか:
11
+
12
+ gem 'jp_prefecture'
13
+
14
+ $ bundle
15
+
16
+ 手動でインストールしてください:
17
+
18
+ $ gem install jp_prefecture
19
+
20
+ ## 使い方
21
+
22
+ ### 都道府県コードから都道府県名を取得
23
+
24
+ pref = JpPrefecture::Prefecture.find 13
25
+ # => #<JpPrefecture::Prefecture:0x007fd0a3d43fe8 @code=13, @name="東京都">
26
+ pref.code
27
+ # => 13
28
+ pref.name
29
+ # => "東京都"
30
+
31
+ ### 都道府県の一覧を取得
32
+
33
+ JpPrefecture::Prefecture.all
34
+ # => [#<JpPrefecture::Prefecture:0x007fd0a3d78d38 @code=1, @name="北海道">, ...
35
+
36
+ ### ActiveRecord で使用する
37
+
38
+ `ActiveRecord::Base` を継承した Model に include し、`jp_prefecture` を呼び出すことで、
39
+ 都道府県コードを扱うことができます。
40
+
41
+ **NOTE:** 現在、カラム名は `prefecture_code` 固定です。(変更できるようにします)
42
+
43
+ app/models/place.rb:
44
+
45
+ class Place < ActiveRecord::Base
46
+ # prefecture_code:string
47
+
48
+ include JpPrefecture
49
+ jp_prefecture
50
+ end
51
+
52
+ `prefecture` というメソッドが生成され、都道府県コード、都道府県名が参照できるようになります。:
53
+
54
+ place = Place.new
55
+ place.prefecture_code = 13
56
+ place.prefecture.name
57
+ # => "東京都"
58
+
59
+ ### テンプレートで使用する
60
+
61
+ `collection_select` を使用して、都道府県のセレクトボックスを生成することができます。
62
+
63
+ f.collection_select :prefecture_code, JpPrefecture::Prefecture.all, :code, :name
64
+
65
+ ## 都道府県コードと都道府県名のマッピングについて
66
+
67
+ JIS X 0402 で定義されている都道府県コードをベースに、
68
+ ゼロから始まるものはゼロを削除して使用しています。
69
+
70
+ 北海道 01 -> 1
71
+ 東京都 13 -> 13
72
+
73
+ 要望があれば JIS X 0402 で定義されている正規のコードもサポートするようにします。
74
+
75
+ 参考: [Wikipedia:全国地方公共団体コード](http://ja.wikipedia.org/wiki/%E5%85%A8%E5%9B%BD%E5%9C%B0%E6%96%B9%E5%85%AC%E5%85%B1%E5%9B%A3%E4%BD%93%E3%82%B3%E3%83%BC%E3%83%89#.E9.83.BD.E9.81.93.E5.BA.9C.E7.9C.8C.E3.82.B3.E3.83.BC.E3.83.89)
76
+
77
+ ## ドキュメント
78
+
79
+ [http://rdoc.info/github/chocoby/jp_prefecture/master/index](http://rdoc.info/github/chocoby/jp_prefecture/master/index)
80
+
81
+ ## TODO
82
+
83
+ * 対象カラムを指定できるようにする
84
+ * 現在は `prefecture_code` 固定
85
+ * 生成するメソッド名を指定できるようにする
86
+ * 現在は `prefecture` 固定
87
+ * バリデーター
88
+ * i18n?(tokyo などの文字列に対応)
89
+ * ドキュメントをちゃんと書く
90
+
91
+ ## Contributing
92
+
93
+ 1. Fork it
94
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
95
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
96
+ 4. Push to the branch (`git push origin my-new-feature`)
97
+ 5. Create new Pull Request
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -0,0 +1,30 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/jp_prefecture/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["chocoby"]
6
+ gem.email = ["chocoby@gmail.com"]
7
+ gem.summary = %q{Convert japan prefecture code into prefecture name}
8
+ gem.description = %q{Convert japan prefecture code(JIS X 0402 based) into prefecture name.}
9
+ gem.homepage = "https://github.com/chocoby/jp_prefecture"
10
+
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "jp_prefecture"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = JpPrefecture::VERSION
17
+
18
+ gem.add_development_dependency "rake"
19
+ gem.add_development_dependency "yard"
20
+ gem.add_development_dependency "redcarpet"
21
+
22
+ gem.add_development_dependency "awesome_print"
23
+
24
+ gem.add_development_dependency "activerecord", ">= 3.2.0"
25
+ gem.add_development_dependency "sqlite3"
26
+
27
+ gem.add_development_dependency "rspec", "~> 2.12.0"
28
+ gem.add_development_dependency "guard-rspec", "~> 2.4.0"
29
+ gem.add_development_dependency "growl-rspec", "~> 0.0.1"
30
+ end
@@ -0,0 +1,14 @@
1
+ # coding: utf-8
2
+ require "jp_prefecture/version"
3
+ require "jp_prefecture/mapping"
4
+ require "jp_prefecture/prefecture"
5
+ require "jp_prefecture/base"
6
+ require "jp_prefecture/model"
7
+
8
+ module JpPrefecture
9
+ def self.included(model_class)
10
+ model_class.instance_eval do
11
+ extend Base
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,8 @@
1
+ # coding: utf-8
2
+ module JpPrefecture
3
+ module Base
4
+ def jp_prefecture
5
+ include JpPrefecture::Model
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,57 @@
1
+ # coding: utf-8
2
+ module JpPrefecture
3
+ # コードと都道府県のマッピング
4
+ module Mapping
5
+ # JIS X 0402 で定義されている都道府県コードと都道府県名をベースに
6
+ # コードがゼロから始まるもの(09 など)を 1 ケタにしたもの
7
+ PREFECTURE_CODE_NAME = {
8
+ 1 => '北海道',
9
+ 2 => '青森県',
10
+ 3 => '岩手県',
11
+ 4 => '宮城県',
12
+ 5 => '秋田県',
13
+ 6 => '山形県',
14
+ 7 => '福島県',
15
+ 8 => '茨城県',
16
+ 9 => '栃木県',
17
+ 10 => '群馬県',
18
+ 11 => '埼玉県',
19
+ 12 => '千葉県',
20
+ 13 => '東京都',
21
+ 14 => '神奈川県',
22
+ 15 => '新潟県',
23
+ 16 => '富山県',
24
+ 17 => '石川県',
25
+ 18 => '福井県',
26
+ 19 => '山梨県',
27
+ 20 => '長野県',
28
+ 21 => '岐阜県',
29
+ 22 => '静岡県',
30
+ 23 => '愛知県',
31
+ 24 => '三重県',
32
+ 25 => '滋賀県',
33
+ 26 => '京都府',
34
+ 27 => '大阪府',
35
+ 28 => '兵庫県',
36
+ 29 => '奈良県',
37
+ 30 => '和歌山県',
38
+ 31 => '鳥取県',
39
+ 32 => '島根県',
40
+ 33 => '岡山県',
41
+ 34 => '広島県',
42
+ 35 => '山口県',
43
+ 36 => '徳島県',
44
+ 37 => '香川県',
45
+ 38 => '愛媛県',
46
+ 39 => '高知県',
47
+ 40 => '福岡県',
48
+ 41 => '佐賀県',
49
+ 42 => '長崎県',
50
+ 43 => '熊本県',
51
+ 44 => '大分県',
52
+ 45 => '宮崎県',
53
+ 46 => '鹿児島県',
54
+ 47 => '沖縄県'
55
+ }
56
+ end
57
+ end
@@ -0,0 +1,15 @@
1
+ # coding: utf-8
2
+ module JpPrefecture
3
+ # このモジュールが include されると、prefecture メソッドを呼び出せるようになります。
4
+ # prefecture メソッドを呼び出すと都道府県コードと名前が参照できます。
5
+ #
6
+ # p = Place.new
7
+ # p.prefecture_code = 1
8
+ # p.prefecture
9
+ # # => #<JpPrefecture::Prefecture:0x007fd0a3d10f30 @code=1, @name="北海道"> >
10
+ module Model
11
+ def prefecture
12
+ JpPrefecture::Prefecture.find(self.prefecture_code)
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,57 @@
1
+ # coding: utf-8
2
+
3
+ module JpPrefecture
4
+ # 都道府県のコードと名前を扱うクラス
5
+ class Prefecture
6
+ include JpPrefecture::Mapping
7
+
8
+ attr_accessor :code, :name
9
+
10
+ # 配列から都道府県クラスを生成
11
+ #
12
+ # @example
13
+ # # コード/名前から都道府県クラスを生成
14
+ # JpPrefecture::Prefecture.build [1, '北海道']
15
+ #
16
+ # @param pref [Array] コード/名前の配列
17
+ def self.build(pref)
18
+ p = self.new
19
+ p.code = pref[0]
20
+ p.name = pref[1]
21
+
22
+ p
23
+ end
24
+
25
+ # 都道府県コードから都道府県を検索
26
+ #
27
+ # @example
28
+ # JpPrefecture::Prefecture.find 1
29
+ #
30
+ # @param code [Integer] 都道府県コード
31
+ # @return [JpPrefecture::Prefecture] 都道府県が見つかった場合は都道府県クラス
32
+ # @return [nil] 都道府県が見つからない場合は nil
33
+ def self.find(code)
34
+ name = PREFECTURE_CODE_NAME[code]
35
+ return nil unless name
36
+
37
+ self.build([code, name])
38
+ end
39
+
40
+
41
+ # すべての都道府県クラスを返す
42
+ #
43
+ # @example
44
+ # # 都道府県の一覧を取得
45
+ # JpPrefecture::Prefecture.all
46
+ #
47
+ # # collection_select で選択肢を生成
48
+ # f.collection_select :prefecture_code, JpPrefecture::Prefecture.all, :code, :name
49
+ #
50
+ # @return [Array] 都道府県クラスの配列
51
+ def self.all
52
+ PREFECTURE_CODE_NAME.map do |pref|
53
+ self.build(pref)
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,3 @@
1
+ module JpPrefecture
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,35 @@
1
+ # coding: utf-8
2
+ require 'spec_helper'
3
+
4
+ class Place < ActiveRecord::Base
5
+ include JpPrefecture
6
+ jp_prefecture
7
+ end
8
+
9
+ describe ActiveRecord do
10
+ describe 'include されていない' do
11
+ before { @klass = Class.new(ActiveRecord::Base) }
12
+ it { @klass.should_not respond_to(:jp_prefecture) }
13
+ end
14
+
15
+ describe '普通のモデル' do
16
+ context '都道府県が見つかった場合' do
17
+ before do
18
+ @model_class = Place.new(:prefecture_code => 1)
19
+ end
20
+
21
+ it { @model_class.should respond_to(:prefecture) }
22
+ it { @model_class.prefecture.should be_an_instance_of(JpPrefecture::Prefecture) }
23
+ it { @model_class.prefecture.name.should eq '北海道' }
24
+ end
25
+
26
+ context '都道府県が見つからなかった場合' do
27
+ before do
28
+ @model_class = Place.new(:prefecture_code => 999)
29
+ end
30
+
31
+ it { @model_class.should respond_to(:prefecture) }
32
+ it { @model_class.prefecture.should be_nil }
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,14 @@
1
+ # coding: utf-8
2
+ require 'spec_helper'
3
+
4
+ describe JpPrefecture do
5
+ describe '.include' do
6
+ subject do
7
+ Class.new(ActiveRecord::Base) do
8
+ include JpPrefecture
9
+ end
10
+ end
11
+
12
+ it { should respond_to(:jp_prefecture) }
13
+ end
14
+ end
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ require 'spec_helper'
3
+
4
+ describe JpPrefecture::Prefecture do
5
+ describe '.build' do
6
+ before { @pref = JpPrefecture::Prefecture.build([1, '北海道']) }
7
+ it { @pref.code.should eq 1 }
8
+ it { @pref.name.should eq '北海道' }
9
+ end
10
+
11
+ describe '.find' do
12
+ context '都道府県が見つかった' do
13
+ before { @pref = JpPrefecture::Prefecture.find(1) }
14
+ it { @pref.code.should eq 1 }
15
+ it { @pref.name.should eq '北海道' }
16
+ end
17
+
18
+ context '都道府県が見つからなかった' do
19
+ it { JpPrefecture::Prefecture.find(999).should be_nil }
20
+ end
21
+ end
22
+
23
+ describe '.all' do
24
+ before { @prefs = JpPrefecture::Prefecture.all }
25
+ it { @prefs.count.should eq 47 }
26
+ it { @prefs.first.should be_an_instance_of(JpPrefecture::Prefecture) }
27
+ end
28
+ end
@@ -0,0 +1,33 @@
1
+ # coding: utf-8
2
+ require 'rubygems'
3
+ require 'jp_prefecture'
4
+
5
+ require "active_record"
6
+
7
+ require 'awesome_print'
8
+
9
+ RSpec.configure do |config|
10
+ config.before(:suite) do
11
+ setup_db
12
+ end
13
+
14
+ config.after(:suite) do
15
+ teardown_db
16
+ end
17
+ end
18
+
19
+ def setup_db
20
+ ActiveRecord::Base.establish_connection :adapter => "sqlite3", :database => ":memory:"
21
+
22
+ ActiveRecord::Schema.define(:version => 1) do
23
+ create_table :places do |t|
24
+ t.integer :prefecture_code
25
+ end
26
+ end
27
+ end
28
+
29
+ def teardown_db
30
+ ActiveRecord::Base.connection.tables.each do |table|
31
+ ActiveRecord::Base.connection.drop_table(table)
32
+ end
33
+ end
metadata ADDED
@@ -0,0 +1,212 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jp_prefecture
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - chocoby
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-14 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !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: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: yard
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: redcarpet
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: awesome_print
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: activerecord
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: 3.2.0
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: 3.2.0
94
+ - !ruby/object:Gem::Dependency
95
+ name: sqlite3
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: rspec
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: 2.12.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: 2.12.0
126
+ - !ruby/object:Gem::Dependency
127
+ name: guard-rspec
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ~>
132
+ - !ruby/object:Gem::Version
133
+ version: 2.4.0
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: 2.4.0
142
+ - !ruby/object:Gem::Dependency
143
+ name: growl-rspec
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ~>
148
+ - !ruby/object:Gem::Version
149
+ version: 0.0.1
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: 0.0.1
158
+ description: Convert japan prefecture code(JIS X 0402 based) into prefecture name.
159
+ email:
160
+ - chocoby@gmail.com
161
+ executables: []
162
+ extensions: []
163
+ extra_rdoc_files: []
164
+ files:
165
+ - .gitignore
166
+ - .rspec
167
+ - Gemfile
168
+ - Guardfile
169
+ - LICENSE
170
+ - README.md
171
+ - Rakefile
172
+ - jp_prefecture.gemspec
173
+ - lib/jp_prefecture.rb
174
+ - lib/jp_prefecture/base.rb
175
+ - lib/jp_prefecture/mapping.rb
176
+ - lib/jp_prefecture/model.rb
177
+ - lib/jp_prefecture/prefecture.rb
178
+ - lib/jp_prefecture/version.rb
179
+ - spec/active_record_spec.rb
180
+ - spec/jp_prefecture_spec.rb
181
+ - spec/prefecture_spec.rb
182
+ - spec/spec_helper.rb
183
+ homepage: https://github.com/chocoby/jp_prefecture
184
+ licenses: []
185
+ post_install_message:
186
+ rdoc_options: []
187
+ require_paths:
188
+ - lib
189
+ required_ruby_version: !ruby/object:Gem::Requirement
190
+ none: false
191
+ requirements:
192
+ - - ! '>='
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ required_rubygems_version: !ruby/object:Gem::Requirement
196
+ none: false
197
+ requirements:
198
+ - - ! '>='
199
+ - !ruby/object:Gem::Version
200
+ version: '0'
201
+ requirements: []
202
+ rubyforge_project:
203
+ rubygems_version: 1.8.21
204
+ signing_key:
205
+ specification_version: 3
206
+ summary: Convert japan prefecture code into prefecture name
207
+ test_files:
208
+ - spec/active_record_spec.rb
209
+ - spec/jp_prefecture_spec.rb
210
+ - spec/prefecture_spec.rb
211
+ - spec/spec_helper.rb
212
+ has_rdoc: