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 CHANGED
@@ -1,8 +1,8 @@
1
- lib/forgery_ja/version.rb cb80b1a6ef92bef543bfdf913f12a381ded58b9f
1
+ lib/forgery_ja/version.rb 71b5b867e0b7f06b4f2f10c4f6e081af4910c7a7
2
2
  lib/forgery_ja/constant.rb 725f1d5eb24f6d568d7d14b69ccc6780364cc343
3
- lib/forgery_ja/forgery_ja.rb 4bcbfc592564edff42dc21ce66f9a914057d1593
4
- lib/forgery_ja/forgery_ja_api.rb a6e0908d17ff65c2ed9d63bf321126d5d555e95f
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 3a3b61f87f1b935399a515ab151085aa2ac53488
7
- lib/forgery_ja/forgery_ja/address.rb 38ab2111b036e38f5b2513f37b689121dfb96742
8
- lib/forgery_ja/forgery_ja/monetary.rb bbaa75332899e9b2a26ceabb61c577b319ef2a82
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
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
- # @otpion options [Boolean] :blank (false) それぞれのフィールドを半角スペースで区切るかどうか
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
@@ -1,4 +1,4 @@
1
1
  class ForgeryJa
2
2
  # version number
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: forgery_ja
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.0
5
+ version: 0.2.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - namakesugi