faker 2.20.0 → 3.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +346 -7
- data/History.md +1 -1
- data/README.md +193 -107
- data/lib/faker/blockchain/aeternity.rb +1 -1
- data/lib/faker/blockchain/ethereum.rb +1 -1
- data/lib/faker/blockchain/tezos.rb +1 -1
- data/lib/faker/books/dune.rb +2 -10
- data/lib/faker/books/lovecraft.rb +7 -38
- data/lib/faker/default/address.rb +5 -25
- data/lib/faker/default/alphanumeric.rb +2 -8
- data/lib/faker/default/app.rb +1 -10
- data/lib/faker/default/avatar.rb +1 -12
- data/lib/faker/default/bank.rb +9 -17
- data/lib/faker/default/boolean.rb +1 -4
- data/lib/faker/default/chile_rut.rb +25 -25
- data/lib/faker/default/code.rb +68 -39
- data/lib/faker/default/color.rb +77 -6
- data/lib/faker/default/commerce.rb +3 -17
- data/lib/faker/default/company.rb +50 -19
- data/lib/faker/default/crypto_coin.rb +3 -15
- data/lib/faker/default/date.rb +65 -42
- data/lib/faker/default/demographic.rb +1 -5
- data/lib/faker/default/driving_licence.rb +20 -19
- data/lib/faker/default/drone.rb +1 -1
- data/lib/faker/default/file.rb +5 -24
- data/lib/faker/default/finance.rb +17 -7
- data/lib/faker/default/food.rb +14 -1
- data/lib/faker/default/hipster.rb +6 -45
- data/lib/faker/default/html.rb +230 -0
- data/lib/faker/default/id_number.rb +125 -14
- data/lib/faker/default/internet.rb +116 -111
- data/lib/faker/default/invoice.rb +4 -17
- data/lib/faker/default/json.rb +2 -20
- data/lib/faker/default/lorem.rb +25 -74
- data/lib/faker/default/lorem_flickr.rb +4 -32
- data/lib/faker/default/markdown.rb +6 -11
- data/lib/faker/default/marketing.rb +1 -1
- data/lib/faker/default/measurement.rb +16 -48
- data/lib/faker/default/name.rb +1 -5
- data/lib/faker/default/nhs.rb +2 -6
- data/lib/faker/default/number.rb +10 -55
- data/lib/faker/default/omniauth.rb +6 -40
- data/lib/faker/default/phone_number.rb +2 -6
- data/lib/faker/default/placeholdit.rb +1 -12
- data/lib/faker/default/relationship.rb +1 -5
- data/lib/faker/default/release notes.md +59 -0
- data/lib/faker/default/source.rb +3 -16
- data/lib/faker/default/string.rb +1 -5
- data/lib/faker/default/stripe.rb +4 -20
- data/lib/faker/default/time.rb +4 -32
- data/lib/faker/default/twitter.rb +7 -23
- data/lib/faker/default/types.rb +7 -28
- data/lib/faker/default/vehicle.rb +40 -51
- data/lib/faker/default/vulnerability_identifier.rb +23 -0
- data/lib/faker/default/world_cup.rb +2 -11
- data/lib/faker/games/clash_of_clans.rb +1 -1
- data/lib/faker/games/dnd.rb +49 -7
- data/lib/faker/games/dota.rb +1 -5
- data/lib/faker/games/final_fantasy_xiv.rb +73 -0
- data/lib/faker/games/minecraft.rb +1 -1
- data/lib/faker/games/myst.rb +1 -1
- data/lib/faker/games/tarkov.rb +205 -0
- data/lib/faker/japanese_media/cowboy_bebop.rb +61 -0
- data/lib/faker/japanese_media/kamen_rider.rb +2 -2
- data/lib/faker/japanese_media/one_piece.rb +1 -1
- data/lib/faker/movies/avatar.rb +49 -0
- data/lib/faker/movies/hackers.rb +48 -0
- data/lib/faker/movies/star_wars.rb +1 -5
- data/lib/faker/movies/tron.rb +161 -0
- data/lib/faker/quotes/quote.rb +13 -0
- data/lib/faker/sports/chess.rb +90 -0
- data/lib/faker/sports/mountaineering.rb +22 -0
- data/lib/faker/sports/sport.rb +116 -0
- data/lib/faker/travel/airport.rb +43 -0
- data/lib/faker/travel/train_station.rb +54 -0
- data/lib/faker/tv_shows/archer.rb +51 -0
- data/lib/faker/tv_shows/south_park.rb +15 -0
- data/lib/faker/tv_shows/spongebob.rb +50 -0
- data/lib/faker/version.rb +1 -1
- data/lib/faker.rb +26 -67
- data/lib/helpers/base58.rb +1 -1
- data/lib/helpers/positional_generator.rb +480 -0
- data/lib/helpers/unique_generator.rb +13 -11
- data/lib/locales/README.md +18 -2
- data/lib/locales/ar.yml +1 -0
- data/lib/locales/bg.yml +1 -1
- data/lib/locales/da-DK.yml +1 -1
- data/lib/locales/de-AT.yml +1 -2
- data/lib/locales/de-CH.yml +4336 -12
- data/lib/locales/de.yml +1 -1
- data/lib/locales/en/airport.yml +381 -0
- data/lib/locales/en/archer.yml +75 -0
- data/lib/locales/en/australia.yml +3 -4
- data/lib/locales/en/avatar.yml +31 -0
- data/lib/locales/en/chess.yml +103 -0
- data/lib/locales/en/company.yml +1 -0
- data/lib/locales/en/computer.yml +23 -4
- data/lib/locales/en/cowboy_bebop.yml +163 -0
- data/lib/locales/en/dnd.yml +186 -1
- data/lib/locales/en/dota.yml +113 -0
- data/lib/locales/en/file.yml +9 -1
- data/lib/locales/en/final_fantasy_xiv.yml +754 -0
- data/lib/locales/en/finance.yml +3 -1
- data/lib/locales/en/food.yml +12 -0
- data/lib/locales/en/game.yml +0 -1
- data/lib/locales/en/hackers.yml +53 -0
- data/lib/locales/en/heroes.yml +2 -2
- data/lib/locales/en/internet.yml +32 -0
- data/lib/locales/en/minecraft.yml +4 -4
- data/lib/locales/en/mitch_hedberg.yml +46 -0
- data/lib/locales/en/mountaineering.yml +14 -0
- data/lib/locales/en/movie.yml +2 -1
- data/lib/locales/en/naruto.yml +2 -3
- data/lib/locales/en/one_piece.yml +1 -1
- data/lib/locales/en/opera.yml +2 -2
- data/lib/locales/en/overwatch.yml +5 -7
- data/lib/locales/en/source.yml +5 -0
- data/lib/locales/en/south_park.yml +360 -2
- data/lib/locales/en/spongebob.yml +489 -0
- data/lib/locales/en/sport.yml +130 -0
- data/lib/locales/en/star_wars.yml +1 -1
- data/lib/locales/en/tarkov.yml +593 -0
- data/lib/locales/en/train_station.yml +280 -0
- data/lib/locales/en/tron.yml +227 -0
- data/lib/locales/en/vehicle.yml +2809 -75
- data/lib/locales/en-AU.yml +2 -2
- data/lib/locales/en-CA.yml +2 -1
- data/lib/locales/en-GB.yml +2 -1
- data/lib/locales/en-MS.yml +1 -0
- data/lib/locales/en-NG.yml +1 -0
- data/lib/locales/en-NZ.yml +1 -0
- data/lib/locales/en-PAK.yml +1 -0
- data/lib/locales/en-SG.yml +1 -0
- data/lib/locales/en-UG.yml +1 -0
- data/lib/locales/en-US.yml +1 -1
- data/lib/locales/en-ZA.yml +1 -1
- data/lib/locales/en-au-ocker.yml +2 -0
- data/lib/locales/es-AR.yml +3 -2
- data/lib/locales/es-MX.yml +1 -1
- data/lib/locales/es.yml +2 -2
- data/lib/locales/fi-FI.yml +3 -1
- data/lib/locales/fr/address.yml +0 -1
- data/lib/locales/fr/adjective.yml +266 -0
- data/lib/locales/fr/ancient.yml +141 -0
- data/lib/locales/fr/name.yml +2 -1
- data/lib/locales/fr-CA.yml +1 -1
- data/lib/locales/fr-CH.yml +1 -1
- data/lib/locales/hy.yml +2 -1
- data/lib/locales/it.yml +1 -0
- data/lib/locales/ja/adjective.yml +148 -0
- data/lib/locales/ja/dog.yml +1 -0
- data/lib/locales/ja/emotion.yml +51 -0
- data/lib/locales/ja/naruto.yml +230 -0
- data/lib/locales/ja/relationship.yml +10 -0
- data/lib/locales/ja/sport.yml +130 -0
- data/lib/locales/ja/super_mario.yml +1 -1
- data/lib/locales/ko.yml +1 -0
- data/lib/locales/lt.yml +0 -1
- data/lib/locales/mi-NZ.yml +2 -0
- data/lib/locales/nb-NO.yml +1 -0
- data/lib/locales/nl.yml +1 -0
- data/lib/locales/pl.yml +2 -2
- data/lib/locales/pt-BR.yml +1 -0
- data/lib/locales/pt.yml +1 -1
- data/lib/locales/ru.yml +1 -0
- data/lib/locales/sk.yml +1 -0
- data/lib/locales/sv.yml +1 -0
- data/lib/locales/th.yml +76 -76
- data/lib/locales/tr.yml +1 -0
- data/lib/locales/uk.yml +3 -0
- data/lib/locales/vi.yml +1 -0
- data/lib/locales/zh-CN.yml +1 -0
- data/lib/locales/zh-TW.yml +1 -0
- metadata +46 -127
- data/lib/faker/default/fillmurray.rb +0 -45
- data/lib/faker/default/lorem_pixel.rb +0 -70
- /data/lib/faker/default/{faker_adjective.rb → adjective.rb} +0 -0
data/lib/locales/zh-TW.yml
CHANGED
|
@@ -16,6 +16,7 @@ zh-TW:
|
|
|
16
16
|
street_address:
|
|
17
17
|
- "#{street_name} #{building_number} 號"
|
|
18
18
|
default_country: [台灣]
|
|
19
|
+
default_country_code: ["TW"]
|
|
19
20
|
|
|
20
21
|
name:
|
|
21
22
|
last_name: [趙, 錢, 孫, 李, 周, 吳, 鄭, 王, 馮, 陳, 褚, 衛, 蔣, 沈, 韓, 楊, 朱, 秦, 尤, 許, 何, 呂, 施, 張, 孔, 曹, 嚴, 華, 金, 魏, 陶, 薑, 戚, 謝, 鄒, 喻, 柏, 水, 竇, 章, 雲, 蘇, 潘, 葛, 奚, 範, 彭, 郎, 魯, 韋, 昌, 馬, 苗, 鳳, 花, 方, 俞, 任, 袁, 柳, 酆, 鮑, 史, 唐, 費, 廉, 岑, 薛, 雷, 賀, 倪, 湯, 滕, 殷, 羅, 畢, 郝, 鄔, 安, 常, 樂, 於, 時, 傅, 皮, 卞, 齊, 康, 伍, 餘, 元, 蔔, 顧, 孟, 平, 黃, 和, 穆, 蕭, 尹, 姚, 邵, 湛, 汪, 祁, 毛, 禹, 狄, 米, 貝, 明, 臧, 計, 伏, 成, 戴, 談, 宋, 茅, 龐, 熊, 紀, 舒, 屈, 項, 祝, 董, 梁, 杜, 阮, 藍, 閔, 席, 季, 麻, 強, 賈, 路, 婁, 危, 江, 童, 顏, 郭, 梅, 盛, 林, 刁, 鍾, 徐, 邱, 駱, 高, 夏, 蔡, 田, 樊, 胡, 淩, 霍, 虞, 萬, 支, 柯, 昝, 管, 盧, 莫, 柯, 房, 裘, 繆, 幹, 解, 應, 宗, 丁, 宣, 賁, 鄧, 鬱, 單, 杭, 洪, 包, 諸, 左, 石, 崔, 吉, 鈕, 龔, 程, 嵇, 邢, 滑, 裴, 陸, 榮, 翁, 荀, 羊, 于, 惠, 甄, 曲, 家, 封, 芮, 羿, 儲, 靳, 汲, 邴, 糜, 松, 井, 段, 富, 巫, 烏, 焦, 巴, 弓, 牧, 隗, 山, 穀, 車, 侯, 宓, 蓬, 全, 郗, 班, 仰, 秋, 仲, 伊, 宮, 甯, 仇, 欒, 暴, 甘, 鈄, 曆, 戎, 祖, 武, 符, 劉, 景, 詹, 束, 龍, 葉, 幸, 司, 韶, 郜, 黎, 薊, 溥, 印, 宿, 白, 懷, 蒲, 邰, 從, 鄂, 索, 鹹, 籍, 賴, 卓, 藺, 屠, 蒙, 池, 喬, 陽, 鬱, 胥, 能, 蒼, 雙, 聞, 莘, 党, 翟, 譚, 貢, 勞, 逄, 姬, 申, 扶, 堵, 冉, 宰, 酈, 雍, 卻, 璩, 桑, 桂, 濮, 牛, 壽, 通, 邊, 扈, 燕, 冀, 浦, 尚, 農, 溫, 別, 莊, 晏, 柴, 瞿, 閻, 充, 慕, 連, 茹, 習, 宦, 艾, 魚, 容, 向, 古, 易, 慎, 戈, 廖, 庾, 終, 暨, 居, 衡, 步, 都, 耿, 滿, 弘, 匡, 國, 文, 寇, 廣, 祿, 闕, 東, 歐, 殳, 沃, 利, 蔚, 越, 夔, 隆, 師, 鞏, 厙, 聶, 晁, 勾, 敖, 融, 冷, 訾, 辛, 闞, 那, 簡, 饒, 空, 曾, 毋, 沙, 乜, 養, 鞠, 須, 豐, 巢, 關, 蒯, 相, 查, 後, 荊, 紅, 遊, 竺, 權, 逮, 盍, 益, 桓, 公, 萬俟, 司馬, 上官, 歐陽, 夏侯, 諸葛, 聞人, 東方, 赫連, 皇甫, 尉遲, 公羊, 澹台, 公冶, 宗政, 濮陽, 淳于, 單於, 太叔, 申屠, 公孫, 仲孫, 軒轅, 令狐, 徐離, 宇文, 長孫, 慕容, 司徒, 司空]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: faker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 3.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Benjamin Curtis
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2023-08-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: i18n
|
|
@@ -31,124 +31,6 @@ dependencies:
|
|
|
31
31
|
- - "<"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '2'
|
|
34
|
-
- !ruby/object:Gem::Dependency
|
|
35
|
-
name: minitest
|
|
36
|
-
requirement: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - '='
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: 5.15.0
|
|
41
|
-
type: :development
|
|
42
|
-
prerelease: false
|
|
43
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - '='
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: 5.15.0
|
|
48
|
-
- !ruby/object:Gem::Dependency
|
|
49
|
-
name: pry
|
|
50
|
-
requirement: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - '='
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: 0.14.1
|
|
55
|
-
type: :development
|
|
56
|
-
prerelease: false
|
|
57
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - '='
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: 0.14.1
|
|
62
|
-
- !ruby/object:Gem::Dependency
|
|
63
|
-
name: rake
|
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - '='
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: 13.0.6
|
|
69
|
-
type: :development
|
|
70
|
-
prerelease: false
|
|
71
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - '='
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: 13.0.6
|
|
76
|
-
- !ruby/object:Gem::Dependency
|
|
77
|
-
name: rubocop
|
|
78
|
-
requirement: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - '='
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: 1.25.0
|
|
83
|
-
type: :development
|
|
84
|
-
prerelease: false
|
|
85
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
86
|
-
requirements:
|
|
87
|
-
- - '='
|
|
88
|
-
- !ruby/object:Gem::Version
|
|
89
|
-
version: 1.25.0
|
|
90
|
-
- !ruby/object:Gem::Dependency
|
|
91
|
-
name: simplecov
|
|
92
|
-
requirement: !ruby/object:Gem::Requirement
|
|
93
|
-
requirements:
|
|
94
|
-
- - '='
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: 0.17.1
|
|
97
|
-
- - "<"
|
|
98
|
-
- !ruby/object:Gem::Version
|
|
99
|
-
version: '0.18'
|
|
100
|
-
type: :development
|
|
101
|
-
prerelease: false
|
|
102
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
103
|
-
requirements:
|
|
104
|
-
- - '='
|
|
105
|
-
- !ruby/object:Gem::Version
|
|
106
|
-
version: 0.17.1
|
|
107
|
-
- - "<"
|
|
108
|
-
- !ruby/object:Gem::Version
|
|
109
|
-
version: '0.18'
|
|
110
|
-
- !ruby/object:Gem::Dependency
|
|
111
|
-
name: test-unit
|
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
|
113
|
-
requirements:
|
|
114
|
-
- - '='
|
|
115
|
-
- !ruby/object:Gem::Version
|
|
116
|
-
version: 3.5.3
|
|
117
|
-
type: :development
|
|
118
|
-
prerelease: false
|
|
119
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
120
|
-
requirements:
|
|
121
|
-
- - '='
|
|
122
|
-
- !ruby/object:Gem::Version
|
|
123
|
-
version: 3.5.3
|
|
124
|
-
- !ruby/object:Gem::Dependency
|
|
125
|
-
name: timecop
|
|
126
|
-
requirement: !ruby/object:Gem::Requirement
|
|
127
|
-
requirements:
|
|
128
|
-
- - '='
|
|
129
|
-
- !ruby/object:Gem::Version
|
|
130
|
-
version: 0.9.4
|
|
131
|
-
type: :development
|
|
132
|
-
prerelease: false
|
|
133
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
134
|
-
requirements:
|
|
135
|
-
- - '='
|
|
136
|
-
- !ruby/object:Gem::Version
|
|
137
|
-
version: 0.9.4
|
|
138
|
-
- !ruby/object:Gem::Dependency
|
|
139
|
-
name: yard
|
|
140
|
-
requirement: !ruby/object:Gem::Requirement
|
|
141
|
-
requirements:
|
|
142
|
-
- - '='
|
|
143
|
-
- !ruby/object:Gem::Version
|
|
144
|
-
version: 0.9.27
|
|
145
|
-
type: :development
|
|
146
|
-
prerelease: false
|
|
147
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
148
|
-
requirements:
|
|
149
|
-
- - '='
|
|
150
|
-
- !ruby/object:Gem::Version
|
|
151
|
-
version: 0.9.27
|
|
152
34
|
description: 'Faker, a port of Data::Faker from Perl, is used to easily generate fake
|
|
153
35
|
data: names, addresses, phone numbers, etc.'
|
|
154
36
|
email:
|
|
@@ -180,6 +62,7 @@ files:
|
|
|
180
62
|
- lib/faker/creature/dog.rb
|
|
181
63
|
- lib/faker/creature/horse.rb
|
|
182
64
|
- lib/faker/default/address.rb
|
|
65
|
+
- lib/faker/default/adjective.rb
|
|
183
66
|
- lib/faker/default/alphanumeric.rb
|
|
184
67
|
- lib/faker/default/ancient.rb
|
|
185
68
|
- lib/faker/default/app.rb
|
|
@@ -221,9 +104,7 @@ files:
|
|
|
221
104
|
- lib/faker/default/electrical_components.rb
|
|
222
105
|
- lib/faker/default/emotion.rb
|
|
223
106
|
- lib/faker/default/esport.rb
|
|
224
|
-
- lib/faker/default/faker_adjective.rb
|
|
225
107
|
- lib/faker/default/file.rb
|
|
226
|
-
- lib/faker/default/fillmurray.rb
|
|
227
108
|
- lib/faker/default/finance.rb
|
|
228
109
|
- lib/faker/default/food.rb
|
|
229
110
|
- lib/faker/default/funny_name.rb
|
|
@@ -233,6 +114,7 @@ files:
|
|
|
233
114
|
- lib/faker/default/hipster.rb
|
|
234
115
|
- lib/faker/default/hobby.rb
|
|
235
116
|
- lib/faker/default/house.rb
|
|
117
|
+
- lib/faker/default/html.rb
|
|
236
118
|
- lib/faker/default/id_number.rb
|
|
237
119
|
- lib/faker/default/industry_segments.rb
|
|
238
120
|
- lib/faker/default/internet.rb
|
|
@@ -243,7 +125,6 @@ files:
|
|
|
243
125
|
- lib/faker/default/kpop.rb
|
|
244
126
|
- lib/faker/default/lorem.rb
|
|
245
127
|
- lib/faker/default/lorem_flickr.rb
|
|
246
|
-
- lib/faker/default/lorem_pixel.rb
|
|
247
128
|
- lib/faker/default/markdown.rb
|
|
248
129
|
- lib/faker/default/marketing.rb
|
|
249
130
|
- lib/faker/default/measurement.rb
|
|
@@ -259,6 +140,7 @@ files:
|
|
|
259
140
|
- lib/faker/default/placeholdit.rb
|
|
260
141
|
- lib/faker/default/programming_language.rb
|
|
261
142
|
- lib/faker/default/relationship.rb
|
|
143
|
+
- lib/faker/default/release notes.md
|
|
262
144
|
- lib/faker/default/religion.rb
|
|
263
145
|
- lib/faker/default/restaurant.rb
|
|
264
146
|
- lib/faker/default/science.rb
|
|
@@ -278,6 +160,7 @@ files:
|
|
|
278
160
|
- lib/faker/default/university.rb
|
|
279
161
|
- lib/faker/default/vehicle.rb
|
|
280
162
|
- lib/faker/default/verb.rb
|
|
163
|
+
- lib/faker/default/vulnerability_identifier.rb
|
|
281
164
|
- lib/faker/default/world_cup.rb
|
|
282
165
|
- lib/faker/fantasy/tolkien.rb
|
|
283
166
|
- lib/faker/games/clash_of_clans.rb
|
|
@@ -286,6 +169,7 @@ files:
|
|
|
286
169
|
- lib/faker/games/dota.rb
|
|
287
170
|
- lib/faker/games/elder_scrolls.rb
|
|
288
171
|
- lib/faker/games/fallout.rb
|
|
172
|
+
- lib/faker/games/final_fantasy_xiv.rb
|
|
289
173
|
- lib/faker/games/game.rb
|
|
290
174
|
- lib/faker/games/half_life.rb
|
|
291
175
|
- lib/faker/games/heroes.rb
|
|
@@ -299,12 +183,14 @@ files:
|
|
|
299
183
|
- lib/faker/games/street_fighter.rb
|
|
300
184
|
- lib/faker/games/super_mario.rb
|
|
301
185
|
- lib/faker/games/super_smash_bros.rb
|
|
186
|
+
- lib/faker/games/tarkov.rb
|
|
302
187
|
- lib/faker/games/touhou.rb
|
|
303
188
|
- lib/faker/games/warhammer_fantasy.rb
|
|
304
189
|
- lib/faker/games/witcher.rb
|
|
305
190
|
- lib/faker/games/world_of_warcraft.rb
|
|
306
191
|
- lib/faker/games/zelda.rb
|
|
307
192
|
- lib/faker/japanese_media/conan.rb
|
|
193
|
+
- lib/faker/japanese_media/cowboy_bebop.rb
|
|
308
194
|
- lib/faker/japanese_media/doraemon.rb
|
|
309
195
|
- lib/faker/japanese_media/dragon_ball.rb
|
|
310
196
|
- lib/faker/japanese_media/fullmetal_alchemist_brotherhood.rb
|
|
@@ -314,9 +200,11 @@ files:
|
|
|
314
200
|
- lib/faker/japanese_media/studio_ghibli.rb
|
|
315
201
|
- lib/faker/japanese_media/sword_art_online.rb
|
|
316
202
|
- lib/faker/locations/australia.rb
|
|
203
|
+
- lib/faker/movies/avatar.rb
|
|
317
204
|
- lib/faker/movies/back_to_the_future.rb
|
|
318
205
|
- lib/faker/movies/departed.rb
|
|
319
206
|
- lib/faker/movies/ghostbusters.rb
|
|
207
|
+
- lib/faker/movies/hackers.rb
|
|
320
208
|
- lib/faker/movies/harry_potter.rb
|
|
321
209
|
- lib/faker/movies/hitchhikers_guide_to_the_galaxy.rb
|
|
322
210
|
- lib/faker/movies/hobbit.rb
|
|
@@ -327,6 +215,7 @@ files:
|
|
|
327
215
|
- lib/faker/movies/princess_bride.rb
|
|
328
216
|
- lib/faker/movies/room.rb
|
|
329
217
|
- lib/faker/movies/star_wars.rb
|
|
218
|
+
- lib/faker/movies/tron.rb
|
|
330
219
|
- lib/faker/movies/v_for_vendetta.rb
|
|
331
220
|
- lib/faker/music/grateful_dead.rb
|
|
332
221
|
- lib/faker/music/hiphop.rb
|
|
@@ -345,9 +234,15 @@ files:
|
|
|
345
234
|
- lib/faker/quotes/shakespeare.rb
|
|
346
235
|
- lib/faker/religion/bible.rb
|
|
347
236
|
- lib/faker/sports/basketball.rb
|
|
237
|
+
- lib/faker/sports/chess.rb
|
|
348
238
|
- lib/faker/sports/football.rb
|
|
239
|
+
- lib/faker/sports/mountaineering.rb
|
|
240
|
+
- lib/faker/sports/sport.rb
|
|
349
241
|
- lib/faker/sports/volleyball.rb
|
|
242
|
+
- lib/faker/travel/airport.rb
|
|
243
|
+
- lib/faker/travel/train_station.rb
|
|
350
244
|
- lib/faker/tv_shows/aqua_teen_hunger_force.rb
|
|
245
|
+
- lib/faker/tv_shows/archer.rb
|
|
351
246
|
- lib/faker/tv_shows/big_bang_theory.rb
|
|
352
247
|
- lib/faker/tv_shows/bojack_horseman.rb
|
|
353
248
|
- lib/faker/tv_shows/breaking_bad.rb
|
|
@@ -372,6 +267,7 @@ files:
|
|
|
372
267
|
- lib/faker/tv_shows/silicon_valley.rb
|
|
373
268
|
- lib/faker/tv_shows/simpsons.rb
|
|
374
269
|
- lib/faker/tv_shows/south_park.rb
|
|
270
|
+
- lib/faker/tv_shows/spongebob.rb
|
|
375
271
|
- lib/faker/tv_shows/star_trek.rb
|
|
376
272
|
- lib/faker/tv_shows/stargate.rb
|
|
377
273
|
- lib/faker/tv_shows/stranger_things.rb
|
|
@@ -387,6 +283,7 @@ files:
|
|
|
387
283
|
- lib/faker/version.rb
|
|
388
284
|
- lib/helpers/base58.rb
|
|
389
285
|
- lib/helpers/char.rb
|
|
286
|
+
- lib/helpers/positional_generator.rb
|
|
390
287
|
- lib/helpers/unique_generator.rb
|
|
391
288
|
- lib/locales/README.md
|
|
392
289
|
- lib/locales/ar.yml
|
|
@@ -418,13 +315,16 @@ files:
|
|
|
418
315
|
- lib/locales/en/README.md
|
|
419
316
|
- lib/locales/en/address.yml
|
|
420
317
|
- lib/locales/en/adjective.yml
|
|
318
|
+
- lib/locales/en/airport.yml
|
|
421
319
|
- lib/locales/en/ancient.yml
|
|
422
320
|
- lib/locales/en/animal.yml
|
|
423
321
|
- lib/locales/en/app.yml
|
|
424
322
|
- lib/locales/en/appliance.yml
|
|
425
323
|
- lib/locales/en/aqua_teen_hunger_force.yml
|
|
324
|
+
- lib/locales/en/archer.yml
|
|
426
325
|
- lib/locales/en/artist.yml
|
|
427
326
|
- lib/locales/en/australia.yml
|
|
327
|
+
- lib/locales/en/avatar.yml
|
|
428
328
|
- lib/locales/en/back_to_the_future.yml
|
|
429
329
|
- lib/locales/en/bank.yml
|
|
430
330
|
- lib/locales/en/barcode.yml
|
|
@@ -444,6 +344,7 @@ files:
|
|
|
444
344
|
- lib/locales/en/camera.yml
|
|
445
345
|
- lib/locales/en/cannabis.yml
|
|
446
346
|
- lib/locales/en/cat.yml
|
|
347
|
+
- lib/locales/en/chess.yml
|
|
447
348
|
- lib/locales/en/chiquito.yml
|
|
448
349
|
- lib/locales/en/chuck_norris.yml
|
|
449
350
|
- lib/locales/en/clash_of_clan.yml
|
|
@@ -460,6 +361,7 @@ files:
|
|
|
460
361
|
- lib/locales/en/construction.yml
|
|
461
362
|
- lib/locales/en/control.yml
|
|
462
363
|
- lib/locales/en/cosmere.yml
|
|
364
|
+
- lib/locales/en/cowboy_bebop.yml
|
|
463
365
|
- lib/locales/en/crypto_coin.yml
|
|
464
366
|
- lib/locales/en/culture_series.yml
|
|
465
367
|
- lib/locales/en/currency.yml
|
|
@@ -486,6 +388,7 @@ files:
|
|
|
486
388
|
- lib/locales/en/fallout.yml
|
|
487
389
|
- lib/locales/en/family_guy.yml
|
|
488
390
|
- lib/locales/en/file.yml
|
|
391
|
+
- lib/locales/en/final_fantasy_xiv.yml
|
|
489
392
|
- lib/locales/en/final_space.yml
|
|
490
393
|
- lib/locales/en/finance.yml
|
|
491
394
|
- lib/locales/en/fma_brotherhood.yml
|
|
@@ -502,6 +405,7 @@ files:
|
|
|
502
405
|
- lib/locales/en/grateful_dead.yml
|
|
503
406
|
- lib/locales/en/greek_philosophers.yml
|
|
504
407
|
- lib/locales/en/hacker.yml
|
|
408
|
+
- lib/locales/en/hackers.yml
|
|
505
409
|
- lib/locales/en/half_life.yml
|
|
506
410
|
- lib/locales/en/harry_potter.yml
|
|
507
411
|
- lib/locales/en/heroes.yml
|
|
@@ -532,7 +436,9 @@ files:
|
|
|
532
436
|
- lib/locales/en/michael_scott.yml
|
|
533
437
|
- lib/locales/en/military.yml
|
|
534
438
|
- lib/locales/en/minecraft.yml
|
|
439
|
+
- lib/locales/en/mitch_hedberg.yml
|
|
535
440
|
- lib/locales/en/mountain.yml
|
|
441
|
+
- lib/locales/en/mountaineering.yml
|
|
536
442
|
- lib/locales/en/movie.yml
|
|
537
443
|
- lib/locales/en/music.yml
|
|
538
444
|
- lib/locales/en/myst.yml
|
|
@@ -572,6 +478,8 @@ files:
|
|
|
572
478
|
- lib/locales/en/source.yml
|
|
573
479
|
- lib/locales/en/south_park.yml
|
|
574
480
|
- lib/locales/en/space.yml
|
|
481
|
+
- lib/locales/en/spongebob.yml
|
|
482
|
+
- lib/locales/en/sport.yml
|
|
575
483
|
- lib/locales/en/star_trek.yml
|
|
576
484
|
- lib/locales/en/star_wars.yml
|
|
577
485
|
- lib/locales/en/stargate.yml
|
|
@@ -586,6 +494,7 @@ files:
|
|
|
586
494
|
- lib/locales/en/superhero.yml
|
|
587
495
|
- lib/locales/en/supernatural.yml
|
|
588
496
|
- lib/locales/en/sword_art_online.yml
|
|
497
|
+
- lib/locales/en/tarkov.yml
|
|
589
498
|
- lib/locales/en/tea.yml
|
|
590
499
|
- lib/locales/en/team.yml
|
|
591
500
|
- lib/locales/en/the_expanse.yml
|
|
@@ -595,6 +504,8 @@ files:
|
|
|
595
504
|
- lib/locales/en/the_thick_of_it.yml
|
|
596
505
|
- lib/locales/en/tolkien.yml
|
|
597
506
|
- lib/locales/en/touhou.yml
|
|
507
|
+
- lib/locales/en/train_station.yml
|
|
508
|
+
- lib/locales/en/tron.yml
|
|
598
509
|
- lib/locales/en/twin_peaks.yml
|
|
599
510
|
- lib/locales/en/umphreys_mcgee.yml
|
|
600
511
|
- lib/locales/en/university.yml
|
|
@@ -618,6 +529,8 @@ files:
|
|
|
618
529
|
- lib/locales/fr-CH.yml
|
|
619
530
|
- lib/locales/fr.yml
|
|
620
531
|
- lib/locales/fr/address.yml
|
|
532
|
+
- lib/locales/fr/adjective.yml
|
|
533
|
+
- lib/locales/fr/ancient.yml
|
|
621
534
|
- lib/locales/fr/animal.yml
|
|
622
535
|
- lib/locales/fr/appliance.yml
|
|
623
536
|
- lib/locales/fr/book.yml
|
|
@@ -638,6 +551,7 @@ files:
|
|
|
638
551
|
- lib/locales/it.yml
|
|
639
552
|
- lib/locales/ja/README.md
|
|
640
553
|
- lib/locales/ja/address.yml
|
|
554
|
+
- lib/locales/ja/adjective.yml
|
|
641
555
|
- lib/locales/ja/ancient.yml
|
|
642
556
|
- lib/locales/ja/animal.yml
|
|
643
557
|
- lib/locales/ja/bank.yml
|
|
@@ -648,15 +562,19 @@ files:
|
|
|
648
562
|
- lib/locales/ja/commerce.yml
|
|
649
563
|
- lib/locales/ja/company.yml
|
|
650
564
|
- lib/locales/ja/dog.yml
|
|
565
|
+
- lib/locales/ja/emotion.yml
|
|
651
566
|
- lib/locales/ja/food.yml
|
|
652
567
|
- lib/locales/ja/gender.yml
|
|
653
568
|
- lib/locales/ja/lorem.yml
|
|
654
569
|
- lib/locales/ja/name.yml
|
|
570
|
+
- lib/locales/ja/naruto.yml
|
|
655
571
|
- lib/locales/ja/overwatch.yml
|
|
656
572
|
- lib/locales/ja/phone_number.yml
|
|
657
573
|
- lib/locales/ja/pokemon.yml
|
|
574
|
+
- lib/locales/ja/relationship.yml
|
|
658
575
|
- lib/locales/ja/restaurant.yml
|
|
659
576
|
- lib/locales/ja/space.yml
|
|
577
|
+
- lib/locales/ja/sport.yml
|
|
660
578
|
- lib/locales/ja/studio_ghibli.yml
|
|
661
579
|
- lib/locales/ja/subscription.yml
|
|
662
580
|
- lib/locales/ja/super_mario.yml
|
|
@@ -686,11 +604,12 @@ homepage: https://github.com/faker-ruby/faker
|
|
|
686
604
|
licenses:
|
|
687
605
|
- MIT
|
|
688
606
|
metadata:
|
|
689
|
-
changelog_uri: https://github.com/faker-ruby/faker/blob/
|
|
607
|
+
changelog_uri: https://github.com/faker-ruby/faker/blob/main/CHANGELOG.md
|
|
690
608
|
source_code_uri: https://github.com/faker-ruby/faker
|
|
691
609
|
bug_tracker_uri: https://github.com/faker-ruby/faker/issues
|
|
692
|
-
documentation_uri: https://rubydoc.info/github/faker-ruby/faker
|
|
610
|
+
documentation_uri: https://rubydoc.info/github/faker-ruby/faker
|
|
693
611
|
yard.run: yri
|
|
612
|
+
rubygems_mfa_required: 'true'
|
|
694
613
|
post_install_message:
|
|
695
614
|
rdoc_options: []
|
|
696
615
|
require_paths:
|
|
@@ -699,14 +618,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
699
618
|
requirements:
|
|
700
619
|
- - ">="
|
|
701
620
|
- !ruby/object:Gem::Version
|
|
702
|
-
version: '2.
|
|
621
|
+
version: '2.7'
|
|
703
622
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
704
623
|
requirements:
|
|
705
624
|
- - ">="
|
|
706
625
|
- !ruby/object:Gem::Version
|
|
707
626
|
version: '0'
|
|
708
627
|
requirements: []
|
|
709
|
-
rubygems_version: 3.
|
|
628
|
+
rubygems_version: 3.4.10
|
|
710
629
|
signing_key:
|
|
711
630
|
specification_version: 4
|
|
712
631
|
summary: Easily generate fake data
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Faker
|
|
4
|
-
class Fillmurray < Base
|
|
5
|
-
class << self
|
|
6
|
-
# rubocop:disable Metrics/ParameterLists
|
|
7
|
-
|
|
8
|
-
##
|
|
9
|
-
# Produces the URL of an image from Fill Murray, a site which hosts
|
|
10
|
-
# exclusively photographs of actor Bill Murray.
|
|
11
|
-
#
|
|
12
|
-
# @param grayscale [Boolean] Whether to return a grayscale image.
|
|
13
|
-
# @param width [Integer] The iamage width.
|
|
14
|
-
# @param height [Integer] The image height.
|
|
15
|
-
# @return [String]
|
|
16
|
-
#
|
|
17
|
-
# @example
|
|
18
|
-
# Faker::Fillmurray.image #=> "https://www.fillmurray.com/300/300"
|
|
19
|
-
#
|
|
20
|
-
# @example
|
|
21
|
-
# Faker::Fillmurray.image(grayscale: true)
|
|
22
|
-
# #=> "https://fillmurray.com/g/300/300"
|
|
23
|
-
#
|
|
24
|
-
# @example
|
|
25
|
-
# Faker::Fillmurray.image(grayscale: false, width: 200, height: 400)
|
|
26
|
-
# #=> "https://fillmurray.com/200/400"
|
|
27
|
-
#
|
|
28
|
-
# @faker.version 1.7.1
|
|
29
|
-
def image(legacy_grayscale = NOT_GIVEN, legacy_width = NOT_GIVEN, legacy_height = NOT_GIVEN, grayscale: false, width: 200, height: 200)
|
|
30
|
-
warn_for_deprecated_arguments do |keywords|
|
|
31
|
-
keywords << :grayscale if legacy_grayscale != NOT_GIVEN
|
|
32
|
-
keywords << :width if legacy_width != NOT_GIVEN
|
|
33
|
-
keywords << :height if legacy_height != NOT_GIVEN
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
raise ArgumentError, 'Width should be a number' unless width.to_s =~ /^\d+$/
|
|
37
|
-
raise ArgumentError, 'Height should be a number' unless height.to_s =~ /^\d+$/
|
|
38
|
-
raise ArgumentError, 'Grayscale should be a boolean' unless [true, false].include?(grayscale)
|
|
39
|
-
|
|
40
|
-
"https://www.fillmurray.com#{'/g' if grayscale == true}/#{width}/#{height}"
|
|
41
|
-
end
|
|
42
|
-
# rubocop:enable Metrics/ParameterLists
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
end
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Faker
|
|
4
|
-
class LoremPixel < Base
|
|
5
|
-
class << self
|
|
6
|
-
SUPPORTED_CATEGORIES = %w[abstract
|
|
7
|
-
animals
|
|
8
|
-
business
|
|
9
|
-
cats
|
|
10
|
-
city
|
|
11
|
-
food
|
|
12
|
-
nightlife
|
|
13
|
-
fashion
|
|
14
|
-
people
|
|
15
|
-
nature
|
|
16
|
-
sports
|
|
17
|
-
technics
|
|
18
|
-
transport].freeze
|
|
19
|
-
|
|
20
|
-
# rubocop:disable Metrics/ParameterLists
|
|
21
|
-
|
|
22
|
-
##
|
|
23
|
-
# Produces a random image URL from lorempixel.com.
|
|
24
|
-
#
|
|
25
|
-
# @param size [String] Specifies the size of image to generate.
|
|
26
|
-
# @param is_gray [Boolean] Determines if the image is gray.
|
|
27
|
-
# @param category [Symbol] Adds the category of the generated image to the URL.
|
|
28
|
-
# @param number [Integer] Adds a number as part of the URL.
|
|
29
|
-
# @param text [Integer] Adds dummy text as part of the URL.
|
|
30
|
-
# @param secure [Boolean] Changes the image URL between http and https.
|
|
31
|
-
# @return [String]
|
|
32
|
-
#
|
|
33
|
-
# @example
|
|
34
|
-
# Faker::LoremPixel.image #=> "https://lorempixel.com/300/300"
|
|
35
|
-
# Faker::LoremPixel.image(size: "50x60") #=> "https://lorempixel.com/50/60"
|
|
36
|
-
# Faker::LoremPixel.image(size: "50x60", is_gray: true) #=> "https://lorempixel.com/g/50/60"
|
|
37
|
-
# Faker::LoremPixel.image(size: "50x60", is_gray: false, category: 'sports') #=> "https://lorempixel.com/50/60/sports"
|
|
38
|
-
# Faker::LoremPixel.image(size: "50x60", is_gray: false, category: 'sports', number: 3) #=> "https://lorempixel.com/50/60/sports/3"
|
|
39
|
-
# Faker::LoremPixel.image(size: "50x60", is_gray: false, category: 'sports', number: 3, text: 'Dummy-text') #=> "https://lorempixel.com/50/60/sports/3/Dummy-text"
|
|
40
|
-
# Faker::LoremPixel.image(size: "50x60", is_gray: false, category: 'sports', number: nil, text: 'Dummy-text') #=> "https://lorempixel.com/50/60/sports/Dummy-text"
|
|
41
|
-
# Faker::LoremPixel.image(secure: false) #=> "http://lorempixel.com/300/300"
|
|
42
|
-
#
|
|
43
|
-
# @faker.version 1.7.0
|
|
44
|
-
def image(legacy_size = NOT_GIVEN, legacy_is_gray = NOT_GIVEN, legacy_category = NOT_GIVEN, legacy_number = NOT_GIVEN, legacy_text = NOT_GIVEN, legacy_secure = NOT_GIVEN, size: '300x300', is_gray: false, category: nil, number: nil, text: nil, secure: true)
|
|
45
|
-
warn_for_deprecated_arguments do |keywords|
|
|
46
|
-
keywords << :size if legacy_size != NOT_GIVEN
|
|
47
|
-
keywords << :is_gray if legacy_is_gray != NOT_GIVEN
|
|
48
|
-
keywords << :category if legacy_category != NOT_GIVEN
|
|
49
|
-
keywords << :number if legacy_number != NOT_GIVEN
|
|
50
|
-
keywords << :text if legacy_text != NOT_GIVEN
|
|
51
|
-
keywords << :secure if legacy_secure != NOT_GIVEN
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
raise ArgumentError, 'Size should be specified in format 300x300' unless size =~ /^[0-9]+x[0-9]+$/
|
|
55
|
-
raise ArgumentError, "Supported categories are #{SUPPORTED_CATEGORIES.join(', ')}" unless category.nil? || SUPPORTED_CATEGORIES.include?(category)
|
|
56
|
-
raise ArgumentError, 'Category required when number is passed' if !number.nil? && category.nil?
|
|
57
|
-
raise ArgumentError, 'Number must be between 1 and 10' unless number.nil? || (1..10).cover?(number)
|
|
58
|
-
raise ArgumentError, 'Category and number must be passed when text is passed' if !text.nil? && number.nil? && category.nil?
|
|
59
|
-
|
|
60
|
-
url_parts = secure ? ['https:/'] : ['http:/']
|
|
61
|
-
url_parts << ['lorempixel.com']
|
|
62
|
-
url_parts << 'g' if is_gray
|
|
63
|
-
url_parts += size.split('x')
|
|
64
|
-
url_parts += [category, number, text].compact
|
|
65
|
-
url_parts.join('/')
|
|
66
|
-
end
|
|
67
|
-
# rubocop:enable Metrics/ParameterLists
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
end
|
|
File without changes
|