faker 3.0.0 → 3.5.2
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 +598 -1
- data/README.md +203 -107
- data/lib/faker/books/lovecraft.rb +2 -3
- data/lib/faker/default/address.rb +2 -2
- data/lib/faker/default/alphanumeric.rb +1 -1
- data/lib/faker/default/chile_rut.rb +23 -17
- data/lib/faker/default/code.rb +65 -19
- data/lib/faker/default/company.rb +112 -5
- data/lib/faker/default/crypto.rb +13 -4
- data/lib/faker/default/date.rb +61 -5
- data/lib/faker/default/driving_licence.rb +19 -8
- data/lib/faker/default/drone.rb +1 -1
- data/lib/faker/default/finance.rb +2 -2
- data/lib/faker/default/food.rb +14 -1
- data/lib/faker/default/hipster.rb +2 -3
- data/lib/faker/default/html.rb +230 -0
- data/lib/faker/default/id_number.rb +38 -24
- data/lib/faker/default/internet.rb +85 -78
- data/lib/faker/default/invoice.rb +4 -4
- data/lib/faker/default/json.rb +9 -4
- data/lib/faker/default/lorem.rb +24 -16
- data/lib/faker/default/marketing.rb +1 -1
- data/lib/faker/default/measurement.rb +8 -8
- data/lib/faker/default/{nhs.rb → national_health_service.rb} +8 -4
- data/lib/faker/default/number.rb +1 -1
- data/lib/faker/default/omniauth.rb +5 -5
- data/lib/faker/default/phone_number.rb +37 -18
- data/lib/faker/default/placeholdit.rb +1 -1
- data/lib/faker/default/south_africa.rb +3 -3
- data/lib/faker/{music/show.rb → default/theater.rb} +8 -8
- data/lib/faker/default/twitter.rb +4 -6
- data/lib/faker/default/types.rb +5 -6
- data/lib/faker/default/vehicle.rb +26 -36
- data/lib/faker/games/clash_of_clans.rb +1 -1
- data/lib/faker/games/dnd.rb +49 -7
- data/lib/faker/games/final_fantasy_xiv.rb +73 -0
- data/lib/faker/games/heroes_of_the_storm.rb +0 -11
- data/lib/faker/games/minecraft.rb +1 -1
- data/lib/faker/games/myst.rb +1 -1
- data/lib/faker/japanese_media/cowboy_bebop.rb +61 -0
- data/lib/faker/japanese_media/fullmetal_alchemist_brotherhood.rb +10 -10
- data/lib/faker/locations/australia.rb +40 -38
- data/lib/faker/movies/avatar.rb +49 -0
- data/lib/faker/movies/star_wars.rb +1 -1
- data/lib/faker/movies/{room.rb → the_room.rb} +4 -4
- data/lib/faker/music/smashing_pumpkins.rb +64 -0
- data/lib/faker/quotes/quote.rb +13 -0
- data/lib/faker/sports/chess.rb +90 -0
- data/lib/faker/sports/sport.rb +9 -3
- 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/buffy.rb +0 -13
- data/lib/faker/tv_shows/dr_who.rb +0 -13
- data/lib/faker/tv_shows/south_park.rb +15 -0
- data/lib/faker/tv_shows/spongebob.rb +50 -0
- data/lib/faker/tv_shows/the_fresh_prince_of_bel_air.rb +0 -13
- data/lib/faker/version.rb +1 -1
- data/lib/faker.rb +20 -9
- data/lib/helpers/deprecator.rb +118 -0
- 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 -2
- data/lib/locales/da-DK.yml +529 -35
- data/lib/locales/de-AT.yml +3487 -27
- data/lib/locales/de-CH.yml +4359 -12
- data/lib/locales/de.yml +7182 -100
- data/lib/locales/ee.yml +0 -1
- data/lib/locales/en/address.yml +1826 -561
- data/lib/locales/en/airport.yml +381 -0
- data/lib/locales/en/archer.yml +75 -0
- data/lib/locales/en/australia.yml +106 -105
- data/lib/locales/en/avatar.yml +31 -0
- data/lib/locales/en/bank.yml +1 -1
- data/lib/locales/en/chess.yml +103 -0
- data/lib/locales/en/company.yml +1 -0
- data/lib/locales/en/cosmere.yml +1 -1
- data/lib/locales/en/cowboy_bebop.yml +163 -0
- data/lib/locales/en/dnd.yml +186 -1
- data/lib/locales/en/dog.yml +262 -7
- data/lib/locales/en/dota.yml +120 -67
- data/lib/locales/en/final_fantasy_xiv.yml +754 -0
- data/lib/locales/en/finance.yml +4 -4
- data/lib/locales/en/food.yml +14 -1
- data/lib/locales/en/{fma_brotherhood.yml → fullmetal_alchemist_brotherhood.yml} +3 -3
- data/lib/locales/en/harry_potter.yml +1 -1
- data/lib/locales/en/heroes.yml +0 -0
- data/lib/locales/en/id_number.yml +1 -1
- data/lib/locales/en/internet.yml +3 -4
- data/lib/locales/en/minecraft.yml +4 -4
- data/lib/locales/en/mitch_hedberg.yml +46 -0
- data/lib/locales/en/music.yml +25 -25
- data/lib/locales/en/opera.yml +1 -1
- data/lib/locales/en/phone_number.yml +78 -3
- data/lib/locales/en/restaurant.yml +1 -1
- data/lib/locales/en/smashing_pumpkins.yml +382 -0
- data/lib/locales/en/south_park.yml +360 -2
- data/lib/locales/en/spongebob.yml +489 -0
- data/lib/locales/en/star_wars.yml +1 -1
- data/lib/locales/en/{room.yml → the_room.yml} +1 -1
- data/lib/locales/en/{show.yml → theater.yml} +1 -1
- data/lib/locales/en/train_station.yml +280 -0
- data/lib/locales/en/vehicle.yml +1 -1
- data/lib/locales/en-AU.yml +718 -47
- data/lib/locales/en-CA.yml +373 -19
- data/lib/locales/en-GB.yml +116 -8
- data/lib/locales/en-IND.yml +1259 -17
- data/lib/locales/en-KE.yml +212 -0
- data/lib/locales/en-MS.yml +364 -17
- data/lib/locales/en-NEP.yml +212 -38
- data/lib/locales/en-NG.yml +1 -0
- data/lib/locales/en-NZ.yml +1153 -123
- data/lib/locales/en-PAK.yml +392 -10
- data/lib/locales/en-SG.yml +581 -16
- data/lib/locales/en-UG.yml +1 -0
- data/lib/locales/en-US.yml +6914 -74
- data/lib/locales/en-ZA.yml +1 -1
- data/lib/locales/en-au-ocker.yml +266 -22
- data/lib/locales/es-AR.yml +4569 -4599
- data/lib/locales/es-MX.yml +1 -2
- data/lib/locales/es.yml +2 -3
- data/lib/locales/fi-FI.yml +1 -0
- data/lib/locales/fr/address.yml +761 -9
- data/lib/locales/fr/internet.yml +0 -1
- data/lib/locales/fr/name.yml +2 -1
- data/lib/locales/fr-CA.yml +2733 -44
- data/lib/locales/fr-CH.yml +1 -2
- data/lib/locales/fr.yml +3 -1
- data/lib/locales/hy.yml +3624 -119
- data/lib/locales/id.yml +839 -12
- data/lib/locales/it.yml +1304 -32
- data/lib/locales/ja/book.yml +492 -3
- data/lib/locales/ja/football.yml +115 -0
- data/lib/locales/ja/lorem.yml +1 -1
- data/lib/locales/ja/sport.yml +130 -0
- data/lib/locales/ja/super_mario.yml +1 -1
- data/lib/locales/ja/touhou.yml +466 -0
- data/lib/locales/ko.yml +1361 -20
- data/lib/locales/lt.yml +297 -17
- data/lib/locales/lv.yml +0 -1
- data/lib/locales/mi-NZ.yml +2 -0
- data/lib/locales/nb-NO.yml +518 -29
- data/lib/locales/nl.yml +10 -2
- data/lib/locales/pl.yml +1 -2
- data/lib/locales/pt-BR.yml +8205 -664
- data/lib/locales/pt.yml +844 -45
- data/lib/locales/ru.yml +1353 -69
- data/lib/locales/sk.yml +4410 -43
- data/lib/locales/sv.yml +100 -0
- data/lib/locales/tr.yml +1 -2
- data/lib/locales/uk.yml +1808 -44
- data/lib/locales/vi.yml +1 -0
- data/lib/locales/zh-CN/bank.yml +17 -0
- data/lib/locales/zh-CN.yml +1 -0
- data/lib/locales/zh-TW.yml +1 -0
- metadata +37 -156
- data/History.md +0 -176
- data/lib/faker/default/fillmurray.rb +0 -36
- data/lib/faker/default/lorem_pixel.rb +0 -64
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,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Curtis
|
8
8
|
- Vitor Oliveira
|
9
|
-
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2025-07-01 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: i18n
|
@@ -31,146 +30,6 @@ dependencies:
|
|
31
30
|
- - "<"
|
32
31
|
- !ruby/object:Gem::Version
|
33
32
|
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.16.3
|
41
|
-
type: :development
|
42
|
-
prerelease: false
|
43
|
-
version_requirements: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - '='
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 5.16.3
|
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.37.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.37.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.23.0
|
97
|
-
type: :development
|
98
|
-
prerelease: false
|
99
|
-
version_requirements: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - '='
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: 0.23.0
|
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.21'
|
125
|
-
type: :development
|
126
|
-
prerelease: false
|
127
|
-
version_requirements: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - '='
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0.21'
|
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.5
|
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.5
|
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.5
|
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.5
|
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
33
|
description: 'Faker, a port of Data::Faker from Perl, is used to easily generate fake
|
175
34
|
data: names, addresses, phone numbers, etc.'
|
176
35
|
email:
|
@@ -182,7 +41,6 @@ extensions: []
|
|
182
41
|
extra_rdoc_files: []
|
183
42
|
files:
|
184
43
|
- CHANGELOG.md
|
185
|
-
- History.md
|
186
44
|
- License.txt
|
187
45
|
- README.md
|
188
46
|
- bin/faker
|
@@ -245,7 +103,6 @@ files:
|
|
245
103
|
- lib/faker/default/emotion.rb
|
246
104
|
- lib/faker/default/esport.rb
|
247
105
|
- lib/faker/default/file.rb
|
248
|
-
- lib/faker/default/fillmurray.rb
|
249
106
|
- lib/faker/default/finance.rb
|
250
107
|
- lib/faker/default/food.rb
|
251
108
|
- lib/faker/default/funny_name.rb
|
@@ -255,6 +112,7 @@ files:
|
|
255
112
|
- lib/faker/default/hipster.rb
|
256
113
|
- lib/faker/default/hobby.rb
|
257
114
|
- lib/faker/default/house.rb
|
115
|
+
- lib/faker/default/html.rb
|
258
116
|
- lib/faker/default/id_number.rb
|
259
117
|
- lib/faker/default/industry_segments.rb
|
260
118
|
- lib/faker/default/internet.rb
|
@@ -265,7 +123,6 @@ files:
|
|
265
123
|
- lib/faker/default/kpop.rb
|
266
124
|
- lib/faker/default/lorem.rb
|
267
125
|
- lib/faker/default/lorem_flickr.rb
|
268
|
-
- lib/faker/default/lorem_pixel.rb
|
269
126
|
- lib/faker/default/markdown.rb
|
270
127
|
- lib/faker/default/marketing.rb
|
271
128
|
- lib/faker/default/measurement.rb
|
@@ -273,8 +130,8 @@ files:
|
|
273
130
|
- lib/faker/default/mountain.rb
|
274
131
|
- lib/faker/default/name.rb
|
275
132
|
- lib/faker/default/nation.rb
|
133
|
+
- lib/faker/default/national_health_service.rb
|
276
134
|
- lib/faker/default/nato_phonetic_alphabet.rb
|
277
|
-
- lib/faker/default/nhs.rb
|
278
135
|
- lib/faker/default/number.rb
|
279
136
|
- lib/faker/default/omniauth.rb
|
280
137
|
- lib/faker/default/phone_number.rb
|
@@ -294,6 +151,7 @@ files:
|
|
294
151
|
- lib/faker/default/superhero.rb
|
295
152
|
- lib/faker/default/tea.rb
|
296
153
|
- lib/faker/default/team.rb
|
154
|
+
- lib/faker/default/theater.rb
|
297
155
|
- lib/faker/default/time.rb
|
298
156
|
- lib/faker/default/twitter.rb
|
299
157
|
- lib/faker/default/types.rb
|
@@ -309,6 +167,7 @@ files:
|
|
309
167
|
- lib/faker/games/dota.rb
|
310
168
|
- lib/faker/games/elder_scrolls.rb
|
311
169
|
- lib/faker/games/fallout.rb
|
170
|
+
- lib/faker/games/final_fantasy_xiv.rb
|
312
171
|
- lib/faker/games/game.rb
|
313
172
|
- lib/faker/games/half_life.rb
|
314
173
|
- lib/faker/games/heroes.rb
|
@@ -329,6 +188,7 @@ files:
|
|
329
188
|
- lib/faker/games/world_of_warcraft.rb
|
330
189
|
- lib/faker/games/zelda.rb
|
331
190
|
- lib/faker/japanese_media/conan.rb
|
191
|
+
- lib/faker/japanese_media/cowboy_bebop.rb
|
332
192
|
- lib/faker/japanese_media/doraemon.rb
|
333
193
|
- lib/faker/japanese_media/dragon_ball.rb
|
334
194
|
- lib/faker/japanese_media/fullmetal_alchemist_brotherhood.rb
|
@@ -338,6 +198,7 @@ files:
|
|
338
198
|
- lib/faker/japanese_media/studio_ghibli.rb
|
339
199
|
- lib/faker/japanese_media/sword_art_online.rb
|
340
200
|
- lib/faker/locations/australia.rb
|
201
|
+
- lib/faker/movies/avatar.rb
|
341
202
|
- lib/faker/movies/back_to_the_future.rb
|
342
203
|
- lib/faker/movies/departed.rb
|
343
204
|
- lib/faker/movies/ghostbusters.rb
|
@@ -350,8 +211,8 @@ files:
|
|
350
211
|
- lib/faker/movies/lord_of_the_rings.rb
|
351
212
|
- lib/faker/movies/movie.rb
|
352
213
|
- lib/faker/movies/princess_bride.rb
|
353
|
-
- lib/faker/movies/room.rb
|
354
214
|
- lib/faker/movies/star_wars.rb
|
215
|
+
- lib/faker/movies/the_room.rb
|
355
216
|
- lib/faker/movies/tron.rb
|
356
217
|
- lib/faker/movies/v_for_vendetta.rb
|
357
218
|
- lib/faker/music/grateful_dead.rb
|
@@ -363,7 +224,7 @@ files:
|
|
363
224
|
- lib/faker/music/prince.rb
|
364
225
|
- lib/faker/music/rock_band.rb
|
365
226
|
- lib/faker/music/rush.rb
|
366
|
-
- lib/faker/music/
|
227
|
+
- lib/faker/music/smashing_pumpkins.rb
|
367
228
|
- lib/faker/music/umphreys_mcgee.rb
|
368
229
|
- lib/faker/quotes/chiquito.rb
|
369
230
|
- lib/faker/quotes/quote.rb
|
@@ -371,11 +232,15 @@ files:
|
|
371
232
|
- lib/faker/quotes/shakespeare.rb
|
372
233
|
- lib/faker/religion/bible.rb
|
373
234
|
- lib/faker/sports/basketball.rb
|
235
|
+
- lib/faker/sports/chess.rb
|
374
236
|
- lib/faker/sports/football.rb
|
375
237
|
- lib/faker/sports/mountaineering.rb
|
376
238
|
- lib/faker/sports/sport.rb
|
377
239
|
- lib/faker/sports/volleyball.rb
|
240
|
+
- lib/faker/travel/airport.rb
|
241
|
+
- lib/faker/travel/train_station.rb
|
378
242
|
- lib/faker/tv_shows/aqua_teen_hunger_force.rb
|
243
|
+
- lib/faker/tv_shows/archer.rb
|
379
244
|
- lib/faker/tv_shows/big_bang_theory.rb
|
380
245
|
- lib/faker/tv_shows/bojack_horseman.rb
|
381
246
|
- lib/faker/tv_shows/breaking_bad.rb
|
@@ -400,6 +265,7 @@ files:
|
|
400
265
|
- lib/faker/tv_shows/silicon_valley.rb
|
401
266
|
- lib/faker/tv_shows/simpsons.rb
|
402
267
|
- lib/faker/tv_shows/south_park.rb
|
268
|
+
- lib/faker/tv_shows/spongebob.rb
|
403
269
|
- lib/faker/tv_shows/star_trek.rb
|
404
270
|
- lib/faker/tv_shows/stargate.rb
|
405
271
|
- lib/faker/tv_shows/stranger_things.rb
|
@@ -415,6 +281,8 @@ files:
|
|
415
281
|
- lib/faker/version.rb
|
416
282
|
- lib/helpers/base58.rb
|
417
283
|
- lib/helpers/char.rb
|
284
|
+
- lib/helpers/deprecator.rb
|
285
|
+
- lib/helpers/positional_generator.rb
|
418
286
|
- lib/helpers/unique_generator.rb
|
419
287
|
- lib/locales/README.md
|
420
288
|
- lib/locales/ar.yml
|
@@ -431,6 +299,7 @@ files:
|
|
431
299
|
- lib/locales/en-CA.yml
|
432
300
|
- lib/locales/en-GB.yml
|
433
301
|
- lib/locales/en-IND.yml
|
302
|
+
- lib/locales/en-KE.yml
|
434
303
|
- lib/locales/en-MS.yml
|
435
304
|
- lib/locales/en-NEP.yml
|
436
305
|
- lib/locales/en-NG.yml
|
@@ -446,13 +315,16 @@ files:
|
|
446
315
|
- lib/locales/en/README.md
|
447
316
|
- lib/locales/en/address.yml
|
448
317
|
- lib/locales/en/adjective.yml
|
318
|
+
- lib/locales/en/airport.yml
|
449
319
|
- lib/locales/en/ancient.yml
|
450
320
|
- lib/locales/en/animal.yml
|
451
321
|
- lib/locales/en/app.yml
|
452
322
|
- lib/locales/en/appliance.yml
|
453
323
|
- lib/locales/en/aqua_teen_hunger_force.yml
|
324
|
+
- lib/locales/en/archer.yml
|
454
325
|
- lib/locales/en/artist.yml
|
455
326
|
- lib/locales/en/australia.yml
|
327
|
+
- lib/locales/en/avatar.yml
|
456
328
|
- lib/locales/en/back_to_the_future.yml
|
457
329
|
- lib/locales/en/bank.yml
|
458
330
|
- lib/locales/en/barcode.yml
|
@@ -472,6 +344,7 @@ files:
|
|
472
344
|
- lib/locales/en/camera.yml
|
473
345
|
- lib/locales/en/cannabis.yml
|
474
346
|
- lib/locales/en/cat.yml
|
347
|
+
- lib/locales/en/chess.yml
|
475
348
|
- lib/locales/en/chiquito.yml
|
476
349
|
- lib/locales/en/chuck_norris.yml
|
477
350
|
- lib/locales/en/clash_of_clan.yml
|
@@ -488,6 +361,7 @@ files:
|
|
488
361
|
- lib/locales/en/construction.yml
|
489
362
|
- lib/locales/en/control.yml
|
490
363
|
- lib/locales/en/cosmere.yml
|
364
|
+
- lib/locales/en/cowboy_bebop.yml
|
491
365
|
- lib/locales/en/crypto_coin.yml
|
492
366
|
- lib/locales/en/culture_series.yml
|
493
367
|
- lib/locales/en/currency.yml
|
@@ -514,13 +388,14 @@ files:
|
|
514
388
|
- lib/locales/en/fallout.yml
|
515
389
|
- lib/locales/en/family_guy.yml
|
516
390
|
- lib/locales/en/file.yml
|
391
|
+
- lib/locales/en/final_fantasy_xiv.yml
|
517
392
|
- lib/locales/en/final_space.yml
|
518
393
|
- lib/locales/en/finance.yml
|
519
|
-
- lib/locales/en/fma_brotherhood.yml
|
520
394
|
- lib/locales/en/food.yml
|
521
395
|
- lib/locales/en/football.yml
|
522
396
|
- lib/locales/en/fresh_prince_of_bel_air.yml
|
523
397
|
- lib/locales/en/friends.yml
|
398
|
+
- lib/locales/en/fullmetal_alchemist_brotherhood.yml
|
524
399
|
- lib/locales/en/funny_name.yml
|
525
400
|
- lib/locales/en/futurama.yml
|
526
401
|
- lib/locales/en/game.yml
|
@@ -561,6 +436,7 @@ files:
|
|
561
436
|
- lib/locales/en/michael_scott.yml
|
562
437
|
- lib/locales/en/military.yml
|
563
438
|
- lib/locales/en/minecraft.yml
|
439
|
+
- lib/locales/en/mitch_hedberg.yml
|
564
440
|
- lib/locales/en/mountain.yml
|
565
441
|
- lib/locales/en/mountaineering.yml
|
566
442
|
- lib/locales/en/movie.yml
|
@@ -588,20 +464,20 @@ files:
|
|
588
464
|
- lib/locales/en/restaurant.yml
|
589
465
|
- lib/locales/en/rick_and_morty.yml
|
590
466
|
- lib/locales/en/rock_band.yml
|
591
|
-
- lib/locales/en/room.yml
|
592
467
|
- lib/locales/en/rupaul.yml
|
593
468
|
- lib/locales/en/rush.yml
|
594
469
|
- lib/locales/en/science.yml
|
595
470
|
- lib/locales/en/seinfeld.yml
|
596
471
|
- lib/locales/en/shakespeare.yml
|
597
|
-
- lib/locales/en/show.yml
|
598
472
|
- lib/locales/en/silicon_valley.yml
|
599
473
|
- lib/locales/en/simpsons.yml
|
600
474
|
- lib/locales/en/slack_emoji.yml
|
475
|
+
- lib/locales/en/smashing_pumpkins.yml
|
601
476
|
- lib/locales/en/sonic_the_hedgehog.yml
|
602
477
|
- lib/locales/en/source.yml
|
603
478
|
- lib/locales/en/south_park.yml
|
604
479
|
- lib/locales/en/space.yml
|
480
|
+
- lib/locales/en/spongebob.yml
|
605
481
|
- lib/locales/en/sport.yml
|
606
482
|
- lib/locales/en/star_trek.yml
|
607
483
|
- lib/locales/en/star_wars.yml
|
@@ -624,9 +500,12 @@ files:
|
|
624
500
|
- lib/locales/en/the_it_crowd.yml
|
625
501
|
- lib/locales/en/the_kingkiller_chronicle.yml
|
626
502
|
- lib/locales/en/the_office.yml
|
503
|
+
- lib/locales/en/the_room.yml
|
627
504
|
- lib/locales/en/the_thick_of_it.yml
|
505
|
+
- lib/locales/en/theater.yml
|
628
506
|
- lib/locales/en/tolkien.yml
|
629
507
|
- lib/locales/en/touhou.yml
|
508
|
+
- lib/locales/en/train_station.yml
|
630
509
|
- lib/locales/en/tron.yml
|
631
510
|
- lib/locales/en/twin_peaks.yml
|
632
511
|
- lib/locales/en/umphreys_mcgee.yml
|
@@ -686,6 +565,7 @@ files:
|
|
686
565
|
- lib/locales/ja/dog.yml
|
687
566
|
- lib/locales/ja/emotion.yml
|
688
567
|
- lib/locales/ja/food.yml
|
568
|
+
- lib/locales/ja/football.yml
|
689
569
|
- lib/locales/ja/gender.yml
|
690
570
|
- lib/locales/ja/lorem.yml
|
691
571
|
- lib/locales/ja/name.yml
|
@@ -696,10 +576,12 @@ files:
|
|
696
576
|
- lib/locales/ja/relationship.yml
|
697
577
|
- lib/locales/ja/restaurant.yml
|
698
578
|
- lib/locales/ja/space.yml
|
579
|
+
- lib/locales/ja/sport.yml
|
699
580
|
- lib/locales/ja/studio_ghibli.yml
|
700
581
|
- lib/locales/ja/subscription.yml
|
701
582
|
- lib/locales/ja/super_mario.yml
|
702
583
|
- lib/locales/ja/super_smash_bros.yml
|
584
|
+
- lib/locales/ja/touhou.yml
|
703
585
|
- lib/locales/ja/university.yml
|
704
586
|
- lib/locales/ja/zelda.yml
|
705
587
|
- lib/locales/ko.yml
|
@@ -720,6 +602,7 @@ files:
|
|
720
602
|
- lib/locales/uk.yml
|
721
603
|
- lib/locales/vi.yml
|
722
604
|
- lib/locales/zh-CN.yml
|
605
|
+
- lib/locales/zh-CN/bank.yml
|
723
606
|
- lib/locales/zh-TW.yml
|
724
607
|
homepage: https://github.com/faker-ruby/faker
|
725
608
|
licenses:
|
@@ -731,7 +614,6 @@ metadata:
|
|
731
614
|
documentation_uri: https://rubydoc.info/github/faker-ruby/faker
|
732
615
|
yard.run: yri
|
733
616
|
rubygems_mfa_required: 'true'
|
734
|
-
post_install_message:
|
735
617
|
rdoc_options: []
|
736
618
|
require_paths:
|
737
619
|
- lib
|
@@ -739,15 +621,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
739
621
|
requirements:
|
740
622
|
- - ">="
|
741
623
|
- !ruby/object:Gem::Version
|
742
|
-
version: '
|
624
|
+
version: '3.0'
|
743
625
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
744
626
|
requirements:
|
745
627
|
- - ">="
|
746
628
|
- !ruby/object:Gem::Version
|
747
629
|
version: '0'
|
748
630
|
requirements: []
|
749
|
-
rubygems_version: 3.
|
750
|
-
signing_key:
|
631
|
+
rubygems_version: 3.6.2
|
751
632
|
specification_version: 4
|
752
633
|
summary: Easily generate fake data
|
753
634
|
test_files: []
|
data/History.md
DELETED
@@ -1,176 +0,0 @@
|
|
1
|
-
## v1.6.5 (2016-07-08)
|
2
|
-
* Removed Faker::ChuckNorris.name
|
3
|
-
|
4
|
-
## v1.6.4 (2016-07-06)
|
5
|
-
* Removed support for Ruby 1.9.3
|
6
|
-
* Added Faker::ChuckNorris, Faker::Crypto, Faker::Educator, Faker::File, Faker::Music, Faker::Space, Faker::Vehicle, and Faker::Yoda
|
7
|
-
* Fixed bug with credit card types
|
8
|
-
* DST fixes in Faker::Time
|
9
|
-
* Added Faker::Name.name_with_middle
|
10
|
-
* Added Faker::Code.imei
|
11
|
-
* Added Faker::Code.asin
|
12
|
-
* Added Faker::Lorem.question and Faker::Lorem.questions
|
13
|
-
* Added Faker::Internet.private_ip_v4_address
|
14
|
-
* Added Faker::Company.australian_business_number
|
15
|
-
* Other miscellaneous fixes and locale updates
|
16
|
-
|
17
|
-
## v1.6.3 (2016-02-23)
|
18
|
-
* Fix for UTF problem in Ruby 1.9.3
|
19
|
-
* Fix for Faker::StarWars.character
|
20
|
-
* Updated sv locale
|
21
|
-
|
22
|
-
## v1.6.2 (2016-02-20)
|
23
|
-
* Fix for locale-switching (Russian email addresses)
|
24
|
-
* Added Faker::Beer, Faker::Boolean, Faker::Cat, Faker::StarWars, and Faker::Superhero
|
25
|
-
* Added Faker::Color.color_name
|
26
|
-
* Added Faker::Date.between_except
|
27
|
-
* Fixed Faker::Internet.ip_v4_cidr and Faker::Internet.ip_v6_cidr
|
28
|
-
* Added locales: ca, ca-CAT, da-DK, fi-FI, and pt
|
29
|
-
|
30
|
-
## v1.6.1 (2015-11-23)
|
31
|
-
* Fix for locale issues in tests
|
32
|
-
|
33
|
-
## v1.6.0 (2015-11-23)
|
34
|
-
* Lots of bug fixes -- most notably, a fix for email addresses and domains in non-en locales
|
35
|
-
* Updated locales: de, en-AU, en-NZ, en-SG, en-US, en-au-ocker, en, es, fr, he, it, ja, nb-NO, pl, pt-BR, sk, and zh-CN
|
36
|
-
* Updated classes: Address, Avatar, Book, Code, Commerce, Company, Hipster, IDNumber, Internet, Number, Placeholdit, Shakespeare, and Time
|
37
|
-
|
38
|
-
## v1.5.0 (2015-08-17)
|
39
|
-
* Added logos
|
40
|
-
* Added Slack Emoji
|
41
|
-
* Updated image generators
|
42
|
-
* Updated Dutch Locale
|
43
|
-
* Added support for generating RGB values, HSL colors, alpha channel, and HSLA colors
|
44
|
-
* Added locale for Uganda
|
45
|
-
* Added basic Ukrainian support
|
46
|
-
* Added university name generator
|
47
|
-
* Updated documentation
|
48
|
-
* Updated a variety of locales
|
49
|
-
* Various fixes
|
50
|
-
|
51
|
-
## v1.4.3 (2014-08-15)
|
52
|
-
* Updated Russian locale
|
53
|
-
* Added EIN generator
|
54
|
-
* Fixed Swedish locale
|
55
|
-
* Added birthday to Faker::Date
|
56
|
-
* Added Faker::App
|
57
|
-
|
58
|
-
## v1.4.2 (2014-07-15)
|
59
|
-
* Added Swedish locale
|
60
|
-
* README update
|
61
|
-
|
62
|
-
## v1.4.1 (2014-07-04)
|
63
|
-
* Bugfix and cleanup
|
64
|
-
|
65
|
-
## v1.4.0 (2014-07-03)
|
66
|
-
* Many enhancements and bugfixes
|
67
|
-
|
68
|
-
## v1.3.0 (2014-03-08)
|
69
|
-
* Many enhancements and few bugfixes
|
70
|
-
|
71
|
-
## v1.2.0 (2013-07-27)
|
72
|
-
* Many major and minor enhancements :)
|
73
|
-
|
74
|
-
## v1.1.2 (2012-09-18)
|
75
|
-
* 1 minor change:
|
76
|
-
* Fixed Ruby 1.8 compatibility
|
77
|
-
|
78
|
-
## v1.1.1 (2012-09-17)
|
79
|
-
* 1 minor change:
|
80
|
-
* Removed ja locale because of parse errors
|
81
|
-
|
82
|
-
## v1.1.0 (2012-09-15)
|
83
|
-
* 1 major change:
|
84
|
-
* Removed deprecated methods from Address: earth_country, us_state, us_state_abbr, uk_postcode, uk_county
|
85
|
-
* Many minor changes (please see github pull requests for credits)
|
86
|
-
* Added many localizations
|
87
|
-
* Added range and array support for Lorem
|
88
|
-
|
89
|
-
## v1.0.1 (2011-09-27)
|
90
|
-
* 1 minor enhancement
|
91
|
-
* Added safe_email method to get someaddress@example.com [Kazimierz Kiełkowicz]
|
92
|
-
* 1 bug fix:
|
93
|
-
* Use the locale fallback properly when parsing string formats
|
94
|
-
|
95
|
-
## v1.0.0 (2011-09-08)
|
96
|
-
* 2 major enhancements
|
97
|
-
* Moved all formats to locale files
|
98
|
-
* Stopped interfering with I18n's global settings for fallbacks
|
99
|
-
* 3 minor bug fixes:
|
100
|
-
* Ruby 1.9.2 fixes [eMxyzptlk]
|
101
|
-
* UTF8 fixes [maxmiliano]
|
102
|
-
* Updated IPv4 generator to return valid addresses [Sylvain Desbureaux]
|
103
|
-
* Many minor enhancements:
|
104
|
-
* Added bork locale for bork-ified lorem [johnbentcope]
|
105
|
-
* Added IPv6 address generator [jc00ke]
|
106
|
-
* Removed deprecation warnings for Array#rand [chrismarshall]
|
107
|
-
* Added German translation and I18n improvements [Matthias Kühnert]
|
108
|
-
* Added Dutch translation [moretea]
|
109
|
-
* Added Lat/Long generator [Andy Callaghan]
|
110
|
-
* Added buzzword-laden title generator [supercleanse]
|
111
|
-
* Added optional extended wordlist for lorem [chriskottom]
|
112
|
-
* Updated German translation [Jan Schwenzien]
|
113
|
-
* Locale improvements [suweller]
|
114
|
-
* Added limit to lorem generator [darrenterhune]
|
115
|
-
* Added Brazilian Portuguese translation [maxmiliano]
|
116
|
-
* Added Australian translation [madeindata]
|
117
|
-
* Added Canadian translation [igbanam]
|
118
|
-
* Added Norwegian translation [kytrinyx]
|
119
|
-
* Lots of translation-related cleanup [kytrinyx]
|
120
|
-
|
121
|
-
|
122
|
-
## v0.9.5 (2011-01-27)
|
123
|
-
* 1 minor bug fix:
|
124
|
-
* Fixed YAML [Aaron Patterson]
|
125
|
-
* 3 minor enhancements:
|
126
|
-
* Added default rake task to run all tests [Aaron Patterson]
|
127
|
-
* Removed shuffle method [Aaron Patterson]
|
128
|
-
* Use psych if present [Aaron Patterson]
|
129
|
-
|
130
|
-
## v0.9.4 (2010-12-29)
|
131
|
-
* 1 minor bug fix:
|
132
|
-
* Stopped getting in the way of Rails' late locale loading
|
133
|
-
|
134
|
-
## v0.9.3 (2010-12-28)
|
135
|
-
* 1 minor enhancement:
|
136
|
-
* Added a faker namespace for translations
|
137
|
-
|
138
|
-
## v0.9.2 (2010-12-22)
|
139
|
-
* 1 bug fix:
|
140
|
-
* Stopped stomping on I18n load path
|
141
|
-
|
142
|
-
## v0.9.1 (2010-12-22)
|
143
|
-
* 1 bug fix:
|
144
|
-
* Stopped setting I18n default locale
|
145
|
-
* 1 major enhancement:
|
146
|
-
* Added method_missing to Address to add methods based on data in locale files
|
147
|
-
* 1 minor enhancement:
|
148
|
-
* Added Swiss locale [Lukas Westermann]
|
149
|
-
|
150
|
-
## v0.9.0 (2010-12-21)
|
151
|
-
* 1 major enhancement:
|
152
|
-
* Moved strings and some formats to locale files
|
153
|
-
|
154
|
-
## v0.3.1 (2008-04-03)
|
155
|
-
* 1 minor enhancement:
|
156
|
-
* Added city to Address
|
157
|
-
|
158
|
-
## v0.3.0 (2008-01-01)
|
159
|
-
* 3 major enhancements:
|
160
|
-
* Added Lorem to generate fake Latin
|
161
|
-
* Added secondary_address to Address, and made inclusion of
|
162
|
-
secondary address in street_address optional (false by
|
163
|
-
default).
|
164
|
-
* Added UK address methods [Caius Durling]
|
165
|
-
|
166
|
-
## v0.2.1 (2007-12-05)
|
167
|
-
* 1 major enhancement:
|
168
|
-
* Dropped facets to avoid conflict with ActiveSupport
|
169
|
-
* 2 minor enhancements:
|
170
|
-
* Changed the output of user_name to randomly separate with a . or _
|
171
|
-
* Added a few tests
|
172
|
-
|
173
|
-
## v0.1.0 (2007-11-22)
|
174
|
-
|
175
|
-
* 1 major enhancement:
|
176
|
-
* Initial release
|
@@ -1,36 +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
|
-
def image(grayscale: false, width: 200, height: 200)
|
28
|
-
raise ArgumentError, 'Width should be a number' unless width.to_s =~ /^\d+$/
|
29
|
-
raise ArgumentError, 'Height should be a number' unless height.to_s =~ /^\d+$/
|
30
|
-
raise ArgumentError, 'Grayscale should be a boolean' unless [true, false].include?(grayscale)
|
31
|
-
|
32
|
-
"https://www.fillmurray.com#{'/g' if grayscale == true}/#{width}/#{height}"
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|