Skip to content

Commit 910b0cf

Browse files
Merge branch 'main' into add-en-GB-id-numbers
2 parents ca11234 + 3d94071 commit 910b0cf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+3360
-368
lines changed

.github/workflows/push_gem.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/ruby.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/checkout@v3
2525
- uses: ruby/setup-ruby@v1
2626
with:
27-
ruby-version: '3.0'
27+
ruby-version: '3.4'
2828

2929
- name: Install dependencies
3030
run: bundle install
@@ -42,6 +42,7 @@ jobs:
4242
- '3.1'
4343
- '3.2'
4444
- '3.3'
45+
- '3.4'
4546
- 'head'
4647
- truffleruby-head
4748
continue-on-error: ${{ endsWith(matrix.ruby, 'head') }}

.rubocop.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require:
1+
plugins:
22
- rubocop-minitest
33
- rubocop-rake
44

@@ -78,9 +78,6 @@ Style/FormatStringToken:
7878

7979
Style/FrozenStringLiteralComment:
8080
Description: Add the frozen_string_literal comment to the top of files to help transition from Ruby 2.3.0 to Ruby 3.0.
81-
Exclude:
82-
- 'lib/faker/default/json.rb'
83-
- 'test/faker/default/test_faker_json.rb'
8481

8582
Style/For:
8683
Description: Checks use of for or each in multiline loops.
@@ -113,3 +110,7 @@ Security/Eval:
113110
Style/IfUnlessModifier:
114111
Description: Checks for `if` and `unless` statements that would fit on one line if written as modifier `if`/`unless`. The cop also checks for modifier `if`/`unless` lines that exceed the maximum line length.
115112
Enabled: false
113+
114+
Style/MultipleComparison:
115+
Description: Avoid comparing a variable with multiple items in a conditional, use Array#include? instead.
116+
Enabled: false

CHANGELOG.md

Lines changed: 64 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,62 @@
11
# Changelog
22

3+
## [v3.5.2](https://github.com/faker-ruby/faker/tree/v3.5.2) (2025-07-01)
4+
5+
Happy Canada Day! 🍁
6+
7+
This version adds and improves some locales and fixes some bugs.
8+
9+
Thanks to all contributors!
10+
11+
### Improvements & Bug fixes
12+
* Correct `Faker::Address.city` and `Faker::Address.street_address` for `:fr` locale by @brupla6126 in https://github.com/faker-ruby/faker/pull/3018
13+
* fix condominium_fiscal_code generator length from 9 to 11 characters by @FiloSpaTeam in https://github.com/faker-ruby/faker/pull/3037
14+
* Add Cell Phone, Default Time Zone and State Abbreviation translation for en-PAK locale by @wonderer007 in https://github.com/faker-ruby/faker/pull/3024
15+
* Fix usage docs header indentation by @jaredsmithse in https://github.com/faker-ruby/faker/pull/3049
16+
* Fix nl phone format by @klaaspieter in https://github.com/faker-ruby/faker/pull/3050
17+
* Fix typo in `ja/book` locale by @thdaraujo in https://github.com/faker-ruby/faker/pull/3062
18+
* fix a typo by @jethrodaniel in https://github.com/faker-ruby/faker/pull/3060
19+
* Fix typo in `restaurant.yml` by @daniel-nerdgeschoss in https://github.com/faker-ruby/faker/pull/3067
20+
* Fix city address with number in `locales/fr/address.yml` by @brupla6126 in https://github.com/faker-ruby/faker/pull/3071
21+
* Fix unclosed quote in `locales/en/cosmere.yml` by @bensheldon in https://github.com/faker-ruby/faker/pull/3075
22+
* Remove inappropriate word from ja lorem by @se4weed in https://github.com/faker-ruby/faker/pull/3095
23+
* Add mountains to de-CH locale by @codez in https://github.com/faker-ruby/faker/pull/3066
24+
* Bump i18n from 1.14.6 to 1.14.7 by @dependabot in https://github.com/faker-ruby/faker/pull/3042
25+
26+
### Chore
27+
* ci: run against Ruby 3.4 by @thdaraujo in https://github.com/faker-ruby/faker/pull/3079
28+
* Fix Broken CI by @wonderer007 in https://github.com/faker-ruby/faker/pull/3073
29+
30+
### Update local dependencies
31+
* Bump rubocop from 1.67.0 to 1.68.0 by @dependabot in https://github.com/faker-ruby/faker/pull/3020
32+
* Bump rubocop from 1.68.0 to 1.69.2 by @dependabot in https://github.com/faker-ruby/faker/pull/3035
33+
* Bump rubocop version + offenses fixes by @stefannibrasil in https://github.com/faker-ruby/faker/pull/3053
34+
* deps: update dev dependencies by @thdaraujo in https://github.com/faker-ruby/faker/pull/3078
35+
* Bump rubocop-minitest and fix rubocop's offense by @stefannibrasil in https://github.com/faker-ruby/faker/pull/3052
36+
* Bump rubocop-minitest from 0.38.0 to 0.38.1 by @dependabot in https://github.com/faker-ruby/faker/pull/3088
37+
* Bump rubocop-rake from 0.6.0 to 0.7.1 by @dependabot in https://github.com/faker-ruby/faker/pull/3059
38+
* deps: bump `rubocop-minitest` from `0.37.1` to `0.38.0`. by @thdaraujo in https://github.com/faker-ruby/faker/pull/3080
39+
* Bump minitest from 5.25.1 to 5.25.4 by @dependabot in https://github.com/faker-ruby/faker/pull/3031
40+
* Bump test-unit from 3.6.2 to 3.6.7 by @dependabot in https://github.com/faker-ruby/faker/pull/3038
41+
* Bump benchmark from 0.3.0 to 0.4.0 by @dependabot in https://github.com/faker-ruby/faker/pull/3021
42+
* Bump benchmark from 0.4.0 to 0.4.1 by @dependabot in https://github.com/faker-ruby/faker/pull/3087
43+
* Bump pry from 0.14.2 to 0.15.2 by @dependabot in https://github.com/faker-ruby/faker/pull/3039
44+
* Bump rake from 13.2.1 to 13.3.0 by @dependabot in https://github.com/faker-ruby/faker/pull/3086
45+
* Bump test-unit from 3.6.8 to 3.6.9 by @dependabot in https://github.com/faker-ruby/faker/pull/3096
46+
47+
### New Contributors
48+
* @brupla6126 made their first contribution in https://github.com/faker-ruby/faker/pull/3018
49+
* @jaredsmithse made their first contribution in https://github.com/faker-ruby/faker/pull/3049
50+
* @klaaspieter made their first contribution in https://github.com/faker-ruby/faker/pull/3050
51+
* @jethrodaniel made their first contribution in https://github.com/faker-ruby/faker/pull/3060
52+
* @daniel-nerdgeschoss made their first contribution in https://github.com/faker-ruby/faker/pull/3067
53+
* @bensheldon made their first contribution in https://github.com/faker-ruby/faker/pull/3075
54+
* @se4weed made their first contribution in https://github.com/faker-ruby/faker/pull/3095
55+
56+
**Full Changelog**: https://github.com/faker-ruby/faker/compare/v3.5.1...v3.5.2
57+
58+
---------------------------------
59+
360
## [v3.5.1](https://github.com/faker-ruby/faker/tree/v3.5.1) (2024-10-18)
461

562
Happy October! 🎃
@@ -10,7 +67,7 @@ Besides that, this version removes deprecated generators, fixes some bugs, and a
1067

1168
Thanks to all contributors!
1269

13-
## Breaking Changes
70+
### Breaking Changes
1471
* Drop support for Ruby 2.7 by @tatheerf02 in https://github.com/faker-ruby/faker/pull/3006
1572
* Removes deprecated generators by @stefannibrasil in https://github.com/faker-ruby/faker/pull/3014
1673

@@ -46,7 +103,7 @@ The following deprecated generators are being removed. Please use the new genera
46103
* Bump yard from 0.9.36 to 0.9.37 by @dependabot in https://github.com/faker-ruby/faker/pull/3000
47104
* Bump rubocop from 1.65.1 to 1.66.1 by @dependabot in https://github.com/faker-ruby/faker/pull/3001
48105

49-
## New Contributors
106+
### New Contributors
50107
* @murichristopher made their first contribution in https://github.com/faker-ruby/faker/pull/2960
51108
* @admtnnr made their first contribution in https://github.com/faker-ruby/faker/pull/2996
52109
* @dirschn made their first contribution in https://github.com/faker-ruby/faker/pull/3007
@@ -93,7 +150,7 @@ Breaking change was introduced in "Add test range param to NHS numbers" by @nean
93150
* Bump rubocop from 1.64.1 to 1.65.0 by @dependabot in https://github.com/faker-ruby/faker/pull/2979
94151
* Bump rubocop-minitest from 0.35.0 to 0.35.1 by @dependabot in https://github.com/faker-ruby/faker/pull/2980
95152

96-
## New Contributors
153+
### New Contributors
97154
* @twk-mn made their first contribution in https://github.com/faker-ruby/faker/pull/2961
98155
* @neanias made their first contribution in https://github.com/faker-ruby/faker/pull/2947
99156
* @garrettgregor made their first contribution in https://github.com/faker-ruby/faker/pull/2963
@@ -136,7 +193,7 @@ Breaking change was introduced in "Add test range param to NHS numbers" by @nean
136193
* Bump minitest from 5.22.3 to 5.23.1 by @dependabot in https://github.com/faker-ruby/faker/pull/2957
137194
* Bump rubocop from 1.63.4 to 1.64.0 by @dependabot in https://github.com/faker-ruby/faker/pull/2958
138195

139-
## New Contributors
196+
### New Contributors
140197

141198
* @connie-feng made their first contribution in https://github.com/faker-ruby/faker/pull/2930
142199
* @andrelaszlo made their first contribution in https://github.com/faker-ruby/faker/pull/2927
@@ -291,7 +348,7 @@ This version:
291348
* Bump rubocop from 1.57.1 to 1.57.2 by @dependabot in https://github.com/faker-ruby/faker/pull/2844
292349
* Bump timecop from 0.9.6 to 0.9.8 by @dependabot in https://github.com/faker-ruby/faker/pull/2811
293350

294-
## New Contributors
351+
### New Contributors
295352
* @BelaBartok39 made their first contribution in https://github.com/faker-ruby/faker/pull/2812
296353
* @fernandomenolli made their first contribution in https://github.com/faker-ruby/faker/pull/2816
297354
* @hoshy made their first contribution in https://github.com/faker-ruby/faker/pull/2818
@@ -355,7 +412,7 @@ Other changes included in this version:
355412
* Update rubocop-minitest requirement from = 0.30.0 to = 0.31.0 by @dependabot in https://github.com/faker-ruby/faker/pull/2759
356413
* Bump minitest from 5.18.1 to 5.19.0 by @dependabot in https://github.com/faker-ruby/faker/pull/2804
357414

358-
## New Contributors
415+
### New Contributors
359416
* @old-dead-account made their first contribution in https://github.com/faker-ruby/faker/pull/2742
360417
* @IvanReyesO7 made their first contribution in https://github.com/faker-ruby/faker/pull/2744
361418
* @DeepakRaj228 made their first contribution in https://github.com/faker-ruby/faker/pull/2741
@@ -422,7 +479,7 @@ Other changes included in this version:
422479
* Add Faker::Company.department generator by @acuppy in https://github.com/faker-ruby/faker/pull/2737
423480
* Update Pull Request template and guides by @stefannibrasil in https://github.com/faker-ruby/faker/pull/2749
424481

425-
## New Contributors
482+
### New Contributors
426483
* @lexisvar made their first contribution in https://github.com/faker-ruby/faker/pull/2699
427484
* @danieldiekmeier made their first contribution in https://github.com/faker-ruby/faker/pull/2700
428485
* @AaronRustad made their first contribution in https://github.com/faker-ruby/faker/pull/2706

Gemfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ source 'https://rubygems.org'
66
gemspec
77

88
gem 'benchmark'
9-
gem 'minitest', '5.25.1'
10-
gem 'pry', '0.14.2'
11-
gem 'rake', '13.2.1'
12-
gem 'rubocop', '1.68.0'
13-
gem 'rubocop-minitest', '0.36.0'
14-
gem 'rubocop-rake', '0.6.0'
9+
gem 'minitest', '5.25.5'
10+
gem 'pry', '0.15.2'
11+
gem 'rake', '13.3.1'
12+
gem 'rubocop', '1.81.7'
13+
gem 'rubocop-minitest', '0.38.2'
14+
gem 'rubocop-rake', '0.7.1'
1515
gem 'simplecov', '0.22.0'
16-
gem 'test-unit', '3.6.2'
16+
gem 'test-unit', '3.7.1'
1717
gem 'timecop', '0.9.10'
1818
gem 'yard', '0.9.37'

Gemfile.lock

Lines changed: 46 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,71 @@
11
PATH
22
remote: .
33
specs:
4-
faker (3.5.1)
4+
faker (3.5.2)
55
i18n (>= 1.8.11, < 2)
66

77
GEM
88
remote: https://rubygems.org/
99
specs:
10-
ast (2.4.2)
11-
benchmark (0.3.0)
10+
ast (2.4.3)
11+
benchmark (0.5.0)
1212
coderay (1.1.3)
13-
concurrent-ruby (1.3.4)
14-
docile (1.4.0)
15-
i18n (1.14.6)
13+
concurrent-ruby (1.3.5)
14+
docile (1.4.1)
15+
i18n (1.14.7)
1616
concurrent-ruby (~> 1.0)
17-
json (2.7.5)
18-
language_server-protocol (3.17.0.3)
19-
method_source (1.0.0)
20-
minitest (5.25.1)
21-
parallel (1.26.3)
22-
parser (3.3.5.1)
17+
json (2.16.0)
18+
language_server-protocol (3.17.0.5)
19+
lint_roller (1.1.0)
20+
method_source (1.1.0)
21+
minitest (5.25.5)
22+
parallel (1.27.0)
23+
parser (3.3.10.0)
2324
ast (~> 2.4.1)
2425
racc
25-
power_assert (2.0.3)
26-
pry (0.14.2)
26+
power_assert (3.0.1)
27+
prism (1.6.0)
28+
pry (0.15.2)
2729
coderay (~> 1.1)
2830
method_source (~> 1.0)
2931
racc (1.8.1)
3032
rainbow (3.1.1)
31-
rake (13.2.1)
32-
regexp_parser (2.9.2)
33-
rubocop (1.68.0)
33+
rake (13.3.1)
34+
regexp_parser (2.11.3)
35+
rubocop (1.81.7)
3436
json (~> 2.3)
35-
language_server-protocol (>= 3.17.0)
37+
language_server-protocol (~> 3.17.0.2)
38+
lint_roller (~> 1.1.0)
3639
parallel (~> 1.10)
3740
parser (>= 3.3.0.2)
3841
rainbow (>= 2.2.2, < 4.0)
39-
regexp_parser (>= 2.4, < 3.0)
40-
rubocop-ast (>= 1.32.2, < 2.0)
42+
regexp_parser (>= 2.9.3, < 3.0)
43+
rubocop-ast (>= 1.47.1, < 2.0)
4144
ruby-progressbar (~> 1.7)
42-
unicode-display_width (>= 2.4.0, < 3.0)
43-
rubocop-ast (1.33.0)
44-
parser (>= 3.3.1.0)
45-
rubocop-minitest (0.36.0)
46-
rubocop (>= 1.61, < 2.0)
47-
rubocop-ast (>= 1.31.1, < 2.0)
48-
rubocop-rake (0.6.0)
49-
rubocop (~> 1.0)
45+
unicode-display_width (>= 2.4.0, < 4.0)
46+
rubocop-ast (1.48.0)
47+
parser (>= 3.3.7.2)
48+
prism (~> 1.4)
49+
rubocop-minitest (0.38.2)
50+
lint_roller (~> 1.1)
51+
rubocop (>= 1.75.0, < 2.0)
52+
rubocop-ast (>= 1.38.0, < 2.0)
53+
rubocop-rake (0.7.1)
54+
lint_roller (~> 1.1)
55+
rubocop (>= 1.72.1)
5056
ruby-progressbar (1.13.0)
5157
simplecov (0.22.0)
5258
docile (~> 1.1)
5359
simplecov-html (~> 0.11)
5460
simplecov_json_formatter (~> 0.1)
55-
simplecov-html (0.12.3)
61+
simplecov-html (0.13.2)
5662
simplecov_json_formatter (0.1.4)
57-
test-unit (3.6.2)
63+
test-unit (3.7.1)
5864
power_assert
5965
timecop (0.9.10)
60-
unicode-display_width (2.6.0)
66+
unicode-display_width (3.2.0)
67+
unicode-emoji (~> 4.1)
68+
unicode-emoji (4.1.0)
6169
yard (0.9.37)
6270

6371
PLATFORMS
@@ -67,14 +75,14 @@ PLATFORMS
6775
DEPENDENCIES
6876
benchmark
6977
faker!
70-
minitest (= 5.25.1)
71-
pry (= 0.14.2)
72-
rake (= 13.2.1)
73-
rubocop (= 1.68.0)
74-
rubocop-minitest (= 0.36.0)
75-
rubocop-rake (= 0.6.0)
78+
minitest (= 5.25.5)
79+
pry (= 0.15.2)
80+
rake (= 13.3.1)
81+
rubocop (= 1.81.7)
82+
rubocop-minitest (= 0.38.2)
83+
rubocop-rake (= 0.7.1)
7684
simplecov (= 0.22.0)
77-
test-unit (= 3.6.2)
85+
test-unit (= 3.7.1)
7886
timecop (= 0.9.10)
7987
yard (= 0.9.37)
8088

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ and it was the original impetus for the creation of this gem.
3838
- [Notes](#notes)
3939
- [Getting Started](#getting-started)
4040
- [Usage](#usage)
41-
- [A note about the Generators versions](#a-note-about-the-generators-versions)
41+
- [A note about the Generators versions](#a-note-about-the-generators-versions)
4242
- [Ensuring unique values](#ensuring-unique-values)
4343
- [Deterministic Random](#deterministic-random)
4444
- [Customization](#customization)
@@ -89,7 +89,7 @@ Faker::ProgrammingLanguage.name #=> "Ruby"
8989

9090
For a complete list of the generators, see [Generators](#generators).
9191

92-
#### A note about the Generators versions
92+
### A note about the Generators versions
9393

9494
If you get a `uninitialized constant Faker::[some_class]` error, your version of
9595
the gem is behind main.
@@ -214,7 +214,6 @@ gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'main
214214
- [Faker::Beer](doc/default/beer.md)
215215
- [Faker::Blood](doc/default/blood.md)
216216
- [Faker::Boolean](doc/default/boolean.md)
217-
- [Faker::BossaNova](doc/default/bossa_nova.md)
218217
- [Faker::Business](doc/default/business.md)
219218
- [Faker::Camera](doc/default/camera.md)
220219
- [Faker::Cannabis](doc/default/cannabis.md)
@@ -420,6 +419,7 @@ gem 'faker', :git => 'https://github.com/faker-ruby/faker.git', :branch => 'main
420419
- [Faker::Music::Rush](doc/music/rush.md)
421420
- [Faker::Music::SmashingPumpkins](doc/music/smashing_pumpkins.md)
422421
- [Faker::Music::UmphreysMcgee](doc/music/umphreys_mcgee.md)
422+
- [Faker::Music::BossaNova](doc/music/bossa_nova.md)
423423
</details>
424424

425425
<details>

doc/default/bossa_nova.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

doc/music/bossa_nova.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Faker::Music::BossaNova
2+
3+
```ruby
4+
Faker::Music::BossaNova.artist #=> "Tom Jobim"
5+
6+
Faker::Music::BossaNova.song #=> "Chega de Saudade"
7+
```

0 commit comments

Comments
 (0)