faker 3.1.1 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +64 -1
- data/README.md +15 -6
- data/lib/faker/default/chile_rut.rb +23 -17
- data/lib/faker/default/code.rb +60 -18
- data/lib/faker/default/company.rb +44 -5
- data/lib/faker/default/date.rb +61 -5
- data/lib/faker/default/driving_licence.rb +19 -8
- data/lib/faker/default/food.rb +13 -0
- data/lib/faker/default/html.rb +230 -0
- data/lib/faker/default/id_number.rb +17 -3
- data/lib/faker/default/internet.rb +62 -31
- data/lib/faker/default/lorem.rb +5 -2
- data/lib/faker/default/marketing.rb +1 -1
- data/lib/faker/default/omniauth.rb +1 -1
- data/lib/faker/default/release notes.md +59 -0
- data/lib/faker/default/twitter.rb +1 -1
- data/lib/faker/default/types.rb +3 -2
- data/lib/faker/default/vehicle.rb +19 -8
- data/lib/faker/games/dnd.rb +49 -7
- data/lib/faker/games/final_fantasy_xiv.rb +73 -0
- data/lib/faker/movies/avatar.rb +49 -0
- data/lib/faker/quotes/quote.rb +13 -0
- data/lib/faker/sports/chess.rb +90 -0
- data/lib/faker/travel/airport.rb +2 -6
- 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/version.rb +1 -1
- data/lib/faker.rb +13 -6
- data/lib/helpers/positional_generator.rb +480 -0
- 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 -0
- data/lib/locales/de-AT.yml +1 -1
- data/lib/locales/de-CH.yml +4336 -11
- data/lib/locales/de.yml +1 -0
- data/lib/locales/en/archer.yml +75 -0
- 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/dnd.yml +186 -1
- data/lib/locales/en/final_fantasy_xiv.yml +754 -0
- data/lib/locales/en/food.yml +12 -0
- data/lib/locales/en/internet.yml +3 -0
- data/lib/locales/en/minecraft.yml +4 -4
- data/lib/locales/en/mitch_hedberg.yml +46 -0
- data/lib/locales/en/opera.yml +1 -1
- data/lib/locales/en/south_park.yml +360 -2
- data/lib/locales/en/train_station.yml +280 -0
- data/lib/locales/en-AU.yml +1 -0
- data/lib/locales/en-CA.yml +1 -0
- data/lib/locales/en-GB.yml +2 -0
- 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 -0
- data/lib/locales/en-ZA.yml +1 -0
- data/lib/locales/en-au-ocker.yml +2 -0
- data/lib/locales/es-AR.yml +1 -0
- data/lib/locales/es-MX.yml +1 -0
- data/lib/locales/es.yml +1 -0
- data/lib/locales/fi-FI.yml +1 -0
- data/lib/locales/fr/name.yml +2 -1
- data/lib/locales/fr-CA.yml +1 -0
- data/lib/locales/fr-CH.yml +1 -0
- data/lib/locales/hy.yml +1 -0
- data/lib/locales/it.yml +1 -0
- data/lib/locales/ja/sport.yml +130 -0
- data/lib/locales/ko.yml +1 -0
- 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 +1 -0
- data/lib/locales/pt-BR.yml +1 -0
- data/lib/locales/pt.yml +1 -0
- data/lib/locales/ru.yml +1 -0
- data/lib/locales/sk.yml +1 -0
- data/lib/locales/sv.yml +1 -0
- 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 +18 -144
- data/lib/faker/default/fillmurray.rb +0 -38
data/lib/locales/pt-BR.yml
CHANGED
data/lib/locales/pt.yml
CHANGED
@@ -33,6 +33,7 @@ pt:
|
|
33
33
|
postcode: ["####"]
|
34
34
|
state: ["Lisboa", "Leiria", "Santarém", "Setúbal", "Beja", "Faro", "Évora", "Portalegre", "Castelo Branco", "Guarda", "Coimbra", "Aveiro", "Viseu", "Bragança", "Vila Real", "Porto", "Braga", "Viana do Castelo"]
|
35
35
|
default_country: [Portugal]
|
36
|
+
default_country_code: ["PT"]
|
36
37
|
|
37
38
|
company:
|
38
39
|
suffix: ["S.A.", "LTDA", "e Associados", "Comércio", "EIRELI"]
|
data/lib/locales/ru.yml
CHANGED
@@ -18,6 +18,7 @@ ru:
|
|
18
18
|
street_address:
|
19
19
|
- "#{street_name}, #{building_number}"
|
20
20
|
default_country: [Россия]
|
21
|
+
default_country_code: ["RU"]
|
21
22
|
full_address:
|
22
23
|
- "#{postcode} #{default_country}, #{city}, #{street_address}"
|
23
24
|
- "#{postcode} #{default_country}, #{city}, #{street_address} #{secondary_address}"
|
data/lib/locales/sk.yml
CHANGED
data/lib/locales/sv.yml
CHANGED
data/lib/locales/tr.yml
CHANGED
@@ -32,6 +32,7 @@ tr:
|
|
32
32
|
- "#{city_name}"
|
33
33
|
country: [Afganistan, Amerika Birleşik Devletleri, Fransa, Hollanda, Belçika, Nepal, Hindistan, Kuala Lumpur, Rusya]
|
34
34
|
default_country: [Turkey]
|
35
|
+
default_country_code: ["TR"]
|
35
36
|
|
36
37
|
book:
|
37
38
|
title: ['Taht Oyunları', 'Maymunlar Gezegeni', 'Benim Adım Kırmızı', 'Uykuların Doğusu', 'Yılanların Öcü']
|
data/lib/locales/uk.yml
CHANGED
@@ -28,6 +28,7 @@ uk:
|
|
28
28
|
full_address:
|
29
29
|
- "#{street_address}, #{city}, #{state}, #{postcode}"
|
30
30
|
default_country: [Україна]
|
31
|
+
default_country_code: ["UA"]
|
31
32
|
|
32
33
|
internet:
|
33
34
|
free_email: [ukr.net, ex.ua, e-mail.ua, i.ua, meta.ua, yandex.ua, gmail.com]
|
@@ -54,6 +55,8 @@ uk:
|
|
54
55
|
name_with_middle:
|
55
56
|
- "#{first_name} #{last_name} #{last_name}"
|
56
57
|
|
58
|
+
country_code: ['380']
|
59
|
+
|
57
60
|
phone_number:
|
58
61
|
formats: ['(044) ###-##-##', '(050) ###-##-##', '(063) ###-##-##', '(066) ###-##-##', '(073) ###-##-##', '(091) ###-##-##', '(092) ###-##-##', '(093) ###-##-##', '(094) ###-##-##', '(095) ###-##-##', '(096) ###-##-##', '(097) ###-##-##', '(098) ###-##-##', '(099) ###-##-##']
|
59
62
|
cell_phone:
|
data/lib/locales/vi.yml
CHANGED
@@ -24,6 +24,7 @@ vi:
|
|
24
24
|
"Staffordshire", "Strathclyde", "Suffolk", "Surrey", "Tayside", "Tyne and Wear", "Việt Nam", "Warwickshire",
|
25
25
|
"West Glamorgan", "West Midlands", "West Sussex", "West Yorkshire", "Wiltshire", "Worcestershire"]
|
26
26
|
default_country: ["Việt Nam"]
|
27
|
+
default_country_code: ["VN"]
|
27
28
|
internet:
|
28
29
|
domain_suffix: [com, net, info, vn, com.vn]
|
29
30
|
phone_number:
|
data/lib/locales/zh-CN.yml
CHANGED
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: 3.
|
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: 2023-
|
12
|
+
date: 2023-08-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
@@ -31,146 +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.17.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.17.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.2
|
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.2
|
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.44.1
|
83
|
-
type: :development
|
84
|
-
prerelease: false
|
85
|
-
version_requirements: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - '='
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 1.44.1
|
90
|
-
- !ruby/object:Gem::Dependency
|
91
|
-
name: rubocop-minitest
|
92
|
-
requirement: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - '='
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 0.25.1
|
97
|
-
type: :development
|
98
|
-
prerelease: false
|
99
|
-
version_requirements: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - '='
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: 0.25.1
|
104
|
-
- !ruby/object:Gem::Dependency
|
105
|
-
name: rubocop-rake
|
106
|
-
requirement: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - '='
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: 0.6.0
|
111
|
-
type: :development
|
112
|
-
prerelease: false
|
113
|
-
version_requirements: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - '='
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 0.6.0
|
118
|
-
- !ruby/object:Gem::Dependency
|
119
|
-
name: simplecov
|
120
|
-
requirement: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - '='
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: 0.22.0
|
125
|
-
type: :development
|
126
|
-
prerelease: false
|
127
|
-
version_requirements: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - '='
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: 0.22.0
|
132
|
-
- !ruby/object:Gem::Dependency
|
133
|
-
name: test-unit
|
134
|
-
requirement: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - '='
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: 3.5.7
|
139
|
-
type: :development
|
140
|
-
prerelease: false
|
141
|
-
version_requirements: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - '='
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: 3.5.7
|
146
|
-
- !ruby/object:Gem::Dependency
|
147
|
-
name: timecop
|
148
|
-
requirement: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - '='
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: 0.9.6
|
153
|
-
type: :development
|
154
|
-
prerelease: false
|
155
|
-
version_requirements: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - '='
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: 0.9.6
|
160
|
-
- !ruby/object:Gem::Dependency
|
161
|
-
name: yard
|
162
|
-
requirement: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - '='
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: 0.9.27
|
167
|
-
type: :development
|
168
|
-
prerelease: false
|
169
|
-
version_requirements: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - '='
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: 0.9.27
|
174
34
|
description: 'Faker, a port of Data::Faker from Perl, is used to easily generate fake
|
175
35
|
data: names, addresses, phone numbers, etc.'
|
176
36
|
email:
|
@@ -245,7 +105,6 @@ files:
|
|
245
105
|
- lib/faker/default/emotion.rb
|
246
106
|
- lib/faker/default/esport.rb
|
247
107
|
- lib/faker/default/file.rb
|
248
|
-
- lib/faker/default/fillmurray.rb
|
249
108
|
- lib/faker/default/finance.rb
|
250
109
|
- lib/faker/default/food.rb
|
251
110
|
- lib/faker/default/funny_name.rb
|
@@ -255,6 +114,7 @@ files:
|
|
255
114
|
- lib/faker/default/hipster.rb
|
256
115
|
- lib/faker/default/hobby.rb
|
257
116
|
- lib/faker/default/house.rb
|
117
|
+
- lib/faker/default/html.rb
|
258
118
|
- lib/faker/default/id_number.rb
|
259
119
|
- lib/faker/default/industry_segments.rb
|
260
120
|
- lib/faker/default/internet.rb
|
@@ -280,6 +140,7 @@ files:
|
|
280
140
|
- lib/faker/default/placeholdit.rb
|
281
141
|
- lib/faker/default/programming_language.rb
|
282
142
|
- lib/faker/default/relationship.rb
|
143
|
+
- lib/faker/default/release notes.md
|
283
144
|
- lib/faker/default/religion.rb
|
284
145
|
- lib/faker/default/restaurant.rb
|
285
146
|
- lib/faker/default/science.rb
|
@@ -308,6 +169,7 @@ files:
|
|
308
169
|
- lib/faker/games/dota.rb
|
309
170
|
- lib/faker/games/elder_scrolls.rb
|
310
171
|
- lib/faker/games/fallout.rb
|
172
|
+
- lib/faker/games/final_fantasy_xiv.rb
|
311
173
|
- lib/faker/games/game.rb
|
312
174
|
- lib/faker/games/half_life.rb
|
313
175
|
- lib/faker/games/heroes.rb
|
@@ -338,6 +200,7 @@ files:
|
|
338
200
|
- lib/faker/japanese_media/studio_ghibli.rb
|
339
201
|
- lib/faker/japanese_media/sword_art_online.rb
|
340
202
|
- lib/faker/locations/australia.rb
|
203
|
+
- lib/faker/movies/avatar.rb
|
341
204
|
- lib/faker/movies/back_to_the_future.rb
|
342
205
|
- lib/faker/movies/departed.rb
|
343
206
|
- lib/faker/movies/ghostbusters.rb
|
@@ -371,12 +234,15 @@ files:
|
|
371
234
|
- lib/faker/quotes/shakespeare.rb
|
372
235
|
- lib/faker/religion/bible.rb
|
373
236
|
- lib/faker/sports/basketball.rb
|
237
|
+
- lib/faker/sports/chess.rb
|
374
238
|
- lib/faker/sports/football.rb
|
375
239
|
- lib/faker/sports/mountaineering.rb
|
376
240
|
- lib/faker/sports/sport.rb
|
377
241
|
- lib/faker/sports/volleyball.rb
|
378
242
|
- lib/faker/travel/airport.rb
|
243
|
+
- lib/faker/travel/train_station.rb
|
379
244
|
- lib/faker/tv_shows/aqua_teen_hunger_force.rb
|
245
|
+
- lib/faker/tv_shows/archer.rb
|
380
246
|
- lib/faker/tv_shows/big_bang_theory.rb
|
381
247
|
- lib/faker/tv_shows/bojack_horseman.rb
|
382
248
|
- lib/faker/tv_shows/breaking_bad.rb
|
@@ -417,6 +283,7 @@ files:
|
|
417
283
|
- lib/faker/version.rb
|
418
284
|
- lib/helpers/base58.rb
|
419
285
|
- lib/helpers/char.rb
|
286
|
+
- lib/helpers/positional_generator.rb
|
420
287
|
- lib/helpers/unique_generator.rb
|
421
288
|
- lib/locales/README.md
|
422
289
|
- lib/locales/ar.yml
|
@@ -454,8 +321,10 @@ files:
|
|
454
321
|
- lib/locales/en/app.yml
|
455
322
|
- lib/locales/en/appliance.yml
|
456
323
|
- lib/locales/en/aqua_teen_hunger_force.yml
|
324
|
+
- lib/locales/en/archer.yml
|
457
325
|
- lib/locales/en/artist.yml
|
458
326
|
- lib/locales/en/australia.yml
|
327
|
+
- lib/locales/en/avatar.yml
|
459
328
|
- lib/locales/en/back_to_the_future.yml
|
460
329
|
- lib/locales/en/bank.yml
|
461
330
|
- lib/locales/en/barcode.yml
|
@@ -475,6 +344,7 @@ files:
|
|
475
344
|
- lib/locales/en/camera.yml
|
476
345
|
- lib/locales/en/cannabis.yml
|
477
346
|
- lib/locales/en/cat.yml
|
347
|
+
- lib/locales/en/chess.yml
|
478
348
|
- lib/locales/en/chiquito.yml
|
479
349
|
- lib/locales/en/chuck_norris.yml
|
480
350
|
- lib/locales/en/clash_of_clan.yml
|
@@ -518,6 +388,7 @@ files:
|
|
518
388
|
- lib/locales/en/fallout.yml
|
519
389
|
- lib/locales/en/family_guy.yml
|
520
390
|
- lib/locales/en/file.yml
|
391
|
+
- lib/locales/en/final_fantasy_xiv.yml
|
521
392
|
- lib/locales/en/final_space.yml
|
522
393
|
- lib/locales/en/finance.yml
|
523
394
|
- lib/locales/en/fma_brotherhood.yml
|
@@ -565,6 +436,7 @@ files:
|
|
565
436
|
- lib/locales/en/michael_scott.yml
|
566
437
|
- lib/locales/en/military.yml
|
567
438
|
- lib/locales/en/minecraft.yml
|
439
|
+
- lib/locales/en/mitch_hedberg.yml
|
568
440
|
- lib/locales/en/mountain.yml
|
569
441
|
- lib/locales/en/mountaineering.yml
|
570
442
|
- lib/locales/en/movie.yml
|
@@ -632,6 +504,7 @@ files:
|
|
632
504
|
- lib/locales/en/the_thick_of_it.yml
|
633
505
|
- lib/locales/en/tolkien.yml
|
634
506
|
- lib/locales/en/touhou.yml
|
507
|
+
- lib/locales/en/train_station.yml
|
635
508
|
- lib/locales/en/tron.yml
|
636
509
|
- lib/locales/en/twin_peaks.yml
|
637
510
|
- lib/locales/en/umphreys_mcgee.yml
|
@@ -701,6 +574,7 @@ files:
|
|
701
574
|
- lib/locales/ja/relationship.yml
|
702
575
|
- lib/locales/ja/restaurant.yml
|
703
576
|
- lib/locales/ja/space.yml
|
577
|
+
- lib/locales/ja/sport.yml
|
704
578
|
- lib/locales/ja/studio_ghibli.yml
|
705
579
|
- lib/locales/ja/subscription.yml
|
706
580
|
- lib/locales/ja/super_mario.yml
|
@@ -751,7 +625,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
751
625
|
- !ruby/object:Gem::Version
|
752
626
|
version: '0'
|
753
627
|
requirements: []
|
754
|
-
rubygems_version: 3.
|
628
|
+
rubygems_version: 3.4.10
|
755
629
|
signing_key:
|
756
630
|
specification_version: 4
|
757
631
|
summary: Easily generate fake data
|
@@ -1,38 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Faker
|
4
|
-
class Fillmurray < Base
|
5
|
-
class << self
|
6
|
-
##
|
7
|
-
# Produces the URL of an image from Fill Murray, a site which hosts
|
8
|
-
# exclusively photographs of actor Bill Murray.
|
9
|
-
#
|
10
|
-
# @param grayscale [Boolean] Whether to return a grayscale image.
|
11
|
-
# @param width [Integer] The iamage width.
|
12
|
-
# @param height [Integer] The image height.
|
13
|
-
# @return [String]
|
14
|
-
#
|
15
|
-
# @example
|
16
|
-
# Faker::Fillmurray.image #=> "https://www.fillmurray.com/300/300"
|
17
|
-
#
|
18
|
-
# @example
|
19
|
-
# Faker::Fillmurray.image(grayscale: true)
|
20
|
-
# #=> "https://fillmurray.com/g/300/300"
|
21
|
-
#
|
22
|
-
# @example
|
23
|
-
# Faker::Fillmurray.image(grayscale: false, width: 200, height: 400)
|
24
|
-
# #=> "https://fillmurray.com/200/400"
|
25
|
-
#
|
26
|
-
# @faker.version 1.7.1
|
27
|
-
extend Gem::Deprecate
|
28
|
-
def image(grayscale: false, width: 200, height: 200)
|
29
|
-
raise ArgumentError, 'Width should be a number' unless width.to_s =~ /^\d+$/
|
30
|
-
raise ArgumentError, 'Height should be a number' unless height.to_s =~ /^\d+$/
|
31
|
-
raise ArgumentError, 'Grayscale should be a boolean' unless [true, false].include?(grayscale)
|
32
|
-
|
33
|
-
"https://www.fillmurray.com#{'/g' if grayscale == true}/#{width}/#{height}"
|
34
|
-
end
|
35
|
-
deprecate :image, 'Faker::LoremFlickr.image', 2023, 2
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|