faker 3.3.0 → 3.3.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 +19 -0
- data/README.md +1 -0
- data/lib/faker/{music/show.rb → default/theater.rb} +11 -8
- data/lib/faker/version.rb +1 -1
- data/lib/locales/en/{show.yml → theater.yml} +1 -1
- data/lib/locales/en-US.yml +10 -10
- metadata +5 -5
- /data/lib/faker/default/{nhs.rb → national_health_service.rb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cb066b564608902aac8699487a9d11cb48bac922915f51b2ca7d5e9ed2c3d5f
|
4
|
+
data.tar.gz: edfabcbea53ec9ed1c7acd2dcf6c8fe6475efa56bae692758aaf6103de771993
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f76bde79e5d96a73b34d487a7bb2a8d1cc5f05631d9ba48952edbb2a3f6470409586a974676c329b7a61112f338c33ad631e6362a4c54242e4d61efe52f1f29c
|
7
|
+
data.tar.gz: dcb683004a0cc255d076059a3b199870a921473355358d25afd73f904255db7f30297779ec75364ddebb2f806a6a874ef0e328e3dcce0549a3b6dfea8ee96e0a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,24 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v3.3.1](https://github.com/faker-ruby/faker/tree/v3.3.1) (2024-04-02)
|
4
|
+
|
5
|
+
### Bug fixes
|
6
|
+
|
7
|
+
* Fix bug on phone number generator for `en-US` locale caused by incorrect `.yml` file structure by @aprescott in https://github.com/faker-ruby/faker/pull/2924
|
8
|
+
|
9
|
+
### What's Changed
|
10
|
+
|
11
|
+
* Added docs for Deprecator in CONTRIBUTING.md by @keshavbiswa in https://github.com/faker-ruby/faker/pull/2919
|
12
|
+
* Rename Faker::show to Faker::Theater by @keshavbiswa in https://github.com/faker-ruby/faker/pull/2921
|
13
|
+
* renamed nhs to national_health_service by @keshavbiswa in https://github.com/faker-ruby/faker/pull/2923
|
14
|
+
|
15
|
+
### New Contributors
|
16
|
+
* @aprescott made their first contribution in https://github.com/faker-ruby/faker/pull/2924
|
17
|
+
|
18
|
+
**Full Changelog**: https://github.com/faker-ruby/faker/compare/v3.3.0...v3.3.1
|
19
|
+
|
20
|
+
-------------------------
|
21
|
+
|
3
22
|
## [v3.3.0](https://github.com/faker-ruby/faker/tree/v3.3.0) (2024-03-25)
|
4
23
|
|
5
24
|
### Bug Fixes
|
data/README.md
CHANGED
@@ -284,6 +284,7 @@ gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'main
|
|
284
284
|
- [Faker::Superhero](doc/default/superhero.md)
|
285
285
|
- [Faker::Tea](doc/default/tea.md)
|
286
286
|
- [Faker::Team](doc/default/team.md)
|
287
|
+
- [Faker::Theater](doc/default/theater.md)
|
287
288
|
- [Faker::Time](doc/default/time.md)
|
288
289
|
- [Faker::Twitter](doc/default/twitter.md)
|
289
290
|
- [Faker::Types](doc/default/types.md)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Faker
|
4
|
-
class
|
4
|
+
class Theater < Base
|
5
5
|
class << self
|
6
6
|
##
|
7
7
|
# Produces the name of a musical for an older audience
|
@@ -9,12 +9,12 @@ module Faker
|
|
9
9
|
# @return [String]
|
10
10
|
#
|
11
11
|
# @example
|
12
|
-
# Faker::
|
13
|
-
# #=> "
|
12
|
+
# Faker::Theater.adult_musical
|
13
|
+
# #=> "Mamma Mia!"
|
14
14
|
#
|
15
15
|
# @faker.version 2.13.0
|
16
16
|
def adult_musical
|
17
|
-
fetch('
|
17
|
+
fetch('theater.adult_musical')
|
18
18
|
end
|
19
19
|
|
20
20
|
##
|
@@ -23,12 +23,12 @@ module Faker
|
|
23
23
|
# @return [String]
|
24
24
|
#
|
25
25
|
# @example
|
26
|
-
# Faker::
|
26
|
+
# Faker::Theater.kids_musical
|
27
27
|
# #=> "Into the Woods JR."
|
28
28
|
#
|
29
29
|
# @faker.version 2.13.0
|
30
30
|
def kids_musical
|
31
|
-
fetch('
|
31
|
+
fetch('theater.kids_musical')
|
32
32
|
end
|
33
33
|
|
34
34
|
##
|
@@ -37,13 +37,16 @@ module Faker
|
|
37
37
|
# @return [String]
|
38
38
|
#
|
39
39
|
# @example
|
40
|
-
# Faker::
|
40
|
+
# Faker::Theater.play
|
41
41
|
# #=> "Death of a Salesman"
|
42
42
|
#
|
43
43
|
# @faker.version 2.13.0
|
44
44
|
def play
|
45
|
-
fetch('
|
45
|
+
fetch('theater.play')
|
46
46
|
end
|
47
47
|
end
|
48
48
|
end
|
49
|
+
|
50
|
+
include Faker::Deprecator
|
51
|
+
deprecate_generator('Show', Theater)
|
49
52
|
end
|
data/lib/faker/version.rb
CHANGED
data/lib/locales/en-US.yml
CHANGED
@@ -6949,16 +6949,16 @@ en-US:
|
|
6949
6949
|
- "(#{PhoneNumber.area_code}) #{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}"
|
6950
6950
|
- "#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}"
|
6951
6951
|
- "#{PhoneNumber.area_code}.#{PhoneNumber.exchange_code}.#{PhoneNumber.subscriber_number} x#{PhoneNumber.extension}"
|
6952
|
-
|
6953
|
-
|
6954
|
-
|
6955
|
-
|
6956
|
-
|
6957
|
-
|
6958
|
-
|
6959
|
-
|
6960
|
-
|
6961
|
-
|
6952
|
+
cell_phone:
|
6953
|
+
formats:
|
6954
|
+
- "#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}"
|
6955
|
+
- "(#{PhoneNumber.area_code}) #{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}"
|
6956
|
+
- "#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}"
|
6957
|
+
- "#{PhoneNumber.area_code}.#{PhoneNumber.exchange_code}.#{PhoneNumber.subscriber_number}"
|
6958
|
+
- "#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}"
|
6959
|
+
- "(#{PhoneNumber.area_code}) #{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}"
|
6960
|
+
- "#{PhoneNumber.area_code}-#{PhoneNumber.exchange_code}-#{PhoneNumber.subscriber_number}"
|
6961
|
+
- "#{PhoneNumber.area_code}.#{PhoneNumber.exchange_code}.#{PhoneNumber.subscriber_number}"
|
6962
6962
|
id_number:
|
6963
6963
|
valid: "#{IdNumber.ssn_valid}"
|
6964
6964
|
invalid:
|
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.3.
|
4
|
+
version: 3.3.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: 2024-
|
12
|
+
date: 2024-04-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
@@ -131,8 +131,8 @@ files:
|
|
131
131
|
- lib/faker/default/mountain.rb
|
132
132
|
- lib/faker/default/name.rb
|
133
133
|
- lib/faker/default/nation.rb
|
134
|
+
- lib/faker/default/national_health_service.rb
|
134
135
|
- lib/faker/default/nato_phonetic_alphabet.rb
|
135
|
-
- lib/faker/default/nhs.rb
|
136
136
|
- lib/faker/default/number.rb
|
137
137
|
- lib/faker/default/omniauth.rb
|
138
138
|
- lib/faker/default/phone_number.rb
|
@@ -152,6 +152,7 @@ files:
|
|
152
152
|
- lib/faker/default/superhero.rb
|
153
153
|
- lib/faker/default/tea.rb
|
154
154
|
- lib/faker/default/team.rb
|
155
|
+
- lib/faker/default/theater.rb
|
155
156
|
- lib/faker/default/time.rb
|
156
157
|
- lib/faker/default/twitter.rb
|
157
158
|
- lib/faker/default/types.rb
|
@@ -224,7 +225,6 @@ files:
|
|
224
225
|
- lib/faker/music/prince.rb
|
225
226
|
- lib/faker/music/rock_band.rb
|
226
227
|
- lib/faker/music/rush.rb
|
227
|
-
- lib/faker/music/show.rb
|
228
228
|
- lib/faker/music/smashing_pumpkins.rb
|
229
229
|
- lib/faker/music/umphreys_mcgee.rb
|
230
230
|
- lib/faker/quotes/chiquito.rb
|
@@ -470,7 +470,6 @@ files:
|
|
470
470
|
- lib/locales/en/science.yml
|
471
471
|
- lib/locales/en/seinfeld.yml
|
472
472
|
- lib/locales/en/shakespeare.yml
|
473
|
-
- lib/locales/en/show.yml
|
474
473
|
- lib/locales/en/silicon_valley.yml
|
475
474
|
- lib/locales/en/simpsons.yml
|
476
475
|
- lib/locales/en/slack_emoji.yml
|
@@ -504,6 +503,7 @@ files:
|
|
504
503
|
- lib/locales/en/the_office.yml
|
505
504
|
- lib/locales/en/the_room.yml
|
506
505
|
- lib/locales/en/the_thick_of_it.yml
|
506
|
+
- lib/locales/en/theater.yml
|
507
507
|
- lib/locales/en/tolkien.yml
|
508
508
|
- lib/locales/en/touhou.yml
|
509
509
|
- lib/locales/en/train_station.yml
|
File without changes
|