forgery_ja 0.2.0 → 0.2.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.
- data/.yardoc/checksums +6 -6
- data/.yardoc/objects/root.dat +0 -0
- data/lib/forgery_ja/forgery_ja/address.rb +7 -2
- data/lib/forgery_ja/version.rb +1 -1
- metadata +1 -1
data/.yardoc/checksums
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
lib/forgery_ja/version.rb
|
1
|
+
lib/forgery_ja/version.rb 71b5b867e0b7f06b4f2f10c4f6e081af4910c7a7
|
2
2
|
lib/forgery_ja/constant.rb 725f1d5eb24f6d568d7d14b69ccc6780364cc343
|
3
|
-
lib/forgery_ja/forgery_ja.rb
|
4
|
-
lib/forgery_ja/forgery_ja_api.rb
|
3
|
+
lib/forgery_ja/forgery_ja.rb ea4f29270c4bb8fbbe12428b4805cbb6ed5af06c
|
4
|
+
lib/forgery_ja/forgery_ja_api.rb 0ace41ad9f8844d64636f664ac629f5587a9fea5
|
5
5
|
lib/forgery_ja/forgery_ja/date.rb fdc36502d38430114900f76c3bcbdab272c1bf1a
|
6
|
-
lib/forgery_ja/forgery_ja/name.rb
|
7
|
-
lib/forgery_ja/forgery_ja/address.rb
|
8
|
-
lib/forgery_ja/forgery_ja/monetary.rb
|
6
|
+
lib/forgery_ja/forgery_ja/name.rb 116f26497830ab72c23b83ebb325b5dc66929e6b
|
7
|
+
lib/forgery_ja/forgery_ja/address.rb bc2c537a00a68b9698f7466dbd4074a579938eb9
|
8
|
+
lib/forgery_ja/forgery_ja/monetary.rb f5ff0586c8ef87265f11c52cfacf06cf1673d588
|
data/.yardoc/objects/root.dat
CHANGED
Binary file
|
@@ -84,7 +84,7 @@ class ForgeryJa::Address < Forgery::Address
|
|
84
84
|
# @option options [Boolean] :city (true) 群市区を含めるかどうか
|
85
85
|
# @option options [Boolean] :street (true) 町名を含めるかどうか
|
86
86
|
# @option options [Boolean] :number (true) 番地を含めるかどうか
|
87
|
-
# @
|
87
|
+
# @option options [Boolean] :blank (false) それぞれのフィールドを半角スペースで区切るかどうか
|
88
88
|
# @option options [Fixnum] :to (ForgeryJa::KANA) 生成する文字の種類を指定します
|
89
89
|
# @return [String]
|
90
90
|
# @example
|
@@ -115,7 +115,7 @@ class ForgeryJa::Address < Forgery::Address
|
|
115
115
|
# @return [Hash]
|
116
116
|
# @example
|
117
117
|
# ForgeryJa(:address).address_list
|
118
|
-
# # =>
|
118
|
+
# # => {:state=>["大阪府", "おおさかふ", "オオサカフ", "オオサカフ", "Osaka"], :city=>["新宿区", "しんじゅくく", "シンジュクク", "シンジュクク", "Shinjyuku-ku"], :street=>["高倉町", "たかくらちょう", "タカクラチョウ", "タカクラチョウ", "Takakura-cho"], :number=>"6750-0"}
|
119
119
|
def self.address_list(options={})
|
120
120
|
options = {:state => true, :city => true, :street => true, :number => true}.merge(options)
|
121
121
|
list = {}
|
@@ -127,6 +127,11 @@ class ForgeryJa::Address < Forgery::Address
|
|
127
127
|
end
|
128
128
|
|
129
129
|
private
|
130
|
+
# Arrayの各列をmergeします
|
131
|
+
#
|
132
|
+
# @example
|
133
|
+
# list_merge(['x', 'y'], ['1', '2'], true)
|
134
|
+
# # => ['x 1', 'y 2']
|
130
135
|
def self.list_merge(target, data, blank)
|
131
136
|
return data if target.size == 0
|
132
137
|
return target if data.size == 0
|
data/lib/forgery_ja/version.rb
CHANGED