Skip to content

Commit ed11973

Browse files
Merge branch 'main' into ta/reformat-locales
2 parents c6039b4 + 92186cd commit ed11973

File tree

8 files changed

+40
-40
lines changed

8 files changed

+40
-40
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
version: 2
22
updates:
3-
- package-ecosystem: bundler
3+
- package-ecosystem: "bundler"
44
directory: "/"
55
schedule:
66
interval: daily
77
open-pull-requests-limit: 10
8+
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: weekly
813

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ jobs:
2020

2121
steps:
2222
- name: Checkout repository
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v6
2424

2525
# Initializes the CodeQL tools for scanning.
2626
- name: Initialize CodeQL
27-
uses: github/codeql-action/init@v2
27+
uses: github/codeql-action/init@v4
2828
with:
2929
languages: ${{ matrix.language }}
3030
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -37,7 +37,7 @@ jobs:
3737
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
3838
# If this step fails, then you should remove it and run the build manually (see below)
3939
- name: Autobuild
40-
uses: github/codeql-action/autobuild@v2
40+
uses: github/codeql-action/autobuild@v4
4141

4242
# ℹ️ Command-line programs to run using the OS shell.
4343
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -50,6 +50,6 @@ jobs:
5050
# ./location_of_script_within_repo/buildscript.sh
5151

5252
- name: Perform CodeQL Analysis
53-
uses: github/codeql-action/analyze@v2
53+
uses: github/codeql-action/analyze@v4
5454
with:
5555
category: "/language:${{matrix.language}}"

.github/workflows/ruby.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
name: RuboCop
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v6
2525
- uses: ruby/setup-ruby@v1
2626
with:
2727
ruby-version: '3.4'
@@ -38,28 +38,22 @@ jobs:
3838
fail-fast: false # don't fail all matrix builds if one fails
3939
matrix:
4040
ruby:
41-
- '3.0'
4241
- '3.1'
4342
- '3.2'
4443
- '3.3'
4544
- '3.4'
45+
- '4.0'
4646
- 'head'
4747
- truffleruby-head
4848
continue-on-error: ${{ endsWith(matrix.ruby, 'head') }}
4949
steps:
50-
- uses: actions/checkout@v3
50+
- uses: actions/checkout@v6
5151
- uses: ruby/setup-ruby@v1
5252
with:
5353
ruby-version: ${{ matrix.ruby }}
5454

5555
- name: Install dependencies
56-
run: |
57-
if [[ "${{ matrix.ruby }}" < "3.1" ]]; then
58-
gem install bundler:2.4.22
59-
bundle _2.4.22_ install
60-
else
61-
bundle install
62-
fi
56+
run: bundle install
6357

6458
- name: Run tests
6559
run: bundle exec rake test

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins:
33
- rubocop-rake
44

55
AllCops:
6-
TargetRubyVersion: 3.0
6+
TargetRubyVersion: 3.1
77
NewCops: enable
88

99
# Suppress noise for obvious operator precedence.

Gemfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ gemspec
88
gem 'benchmark'
99
gem 'irb'
1010
gem 'minitest', '5.26.1'
11-
gem 'pry', '0.15.2'
11+
gem 'pry', '0.16.0'
1212
gem 'rake', '13.3.1'
1313
gem 'rdoc'
14-
gem 'rubocop', '1.81.7'
14+
gem 'rubocop', '1.82.1'
1515
gem 'rubocop-minitest', '0.38.2'
1616
gem 'rubocop-rake', '0.7.1'
1717
gem 'simplecov', '0.22.0'
18-
gem 'test-unit', '3.7.1'
18+
gem 'test-unit', '3.7.7'
1919
gem 'timecop', '0.9.10'
20-
gem 'yard', '0.9.37'
20+
gem 'yard', '0.9.38'

Gemfile.lock

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ GEM
1010
ast (2.4.3)
1111
benchmark (0.5.0)
1212
coderay (1.1.3)
13-
concurrent-ruby (1.3.5)
13+
concurrent-ruby (1.3.6)
1414
date (3.5.1)
1515
docile (1.4.1)
1616
erb (6.0.1)
17-
i18n (1.14.7)
17+
i18n (1.14.8)
1818
concurrent-ruby (~> 1.0)
1919
io-console (0.8.2)
2020
irb (1.16.0)
2121
pp (>= 0.6.0)
2222
rdoc (>= 4.0.0)
2323
reline (>= 0.4.2)
24-
json (2.16.0)
24+
json (2.18.0)
2525
language_server-protocol (3.17.0.5)
2626
lint_roller (1.1.0)
2727
method_source (1.1.0)
@@ -34,10 +34,11 @@ GEM
3434
pp (0.6.3)
3535
prettyprint
3636
prettyprint (0.2.0)
37-
prism (1.6.0)
38-
pry (0.15.2)
37+
prism (1.7.0)
38+
pry (0.16.0)
3939
coderay (~> 1.1)
4040
method_source (~> 1.0)
41+
reline (>= 0.6.0)
4142
psych (5.3.1)
4243
date
4344
stringio
@@ -51,20 +52,20 @@ GEM
5152
regexp_parser (2.11.3)
5253
reline (0.6.3)
5354
io-console (~> 0.5)
54-
rubocop (1.81.7)
55+
rubocop (1.82.1)
5556
json (~> 2.3)
5657
language_server-protocol (~> 3.17.0.2)
5758
lint_roller (~> 1.1.0)
5859
parallel (~> 1.10)
5960
parser (>= 3.3.0.2)
6061
rainbow (>= 2.2.2, < 4.0)
6162
regexp_parser (>= 2.9.3, < 3.0)
62-
rubocop-ast (>= 1.47.1, < 2.0)
63+
rubocop-ast (>= 1.48.0, < 2.0)
6364
ruby-progressbar (~> 1.7)
6465
unicode-display_width (>= 2.4.0, < 4.0)
65-
rubocop-ast (1.48.0)
66+
rubocop-ast (1.49.0)
6667
parser (>= 3.3.7.2)
67-
prism (~> 1.4)
68+
prism (~> 1.7)
6869
rubocop-minitest (0.38.2)
6970
lint_roller (~> 1.1)
7071
rubocop (>= 1.75.0, < 2.0)
@@ -80,14 +81,14 @@ GEM
8081
simplecov-html (0.13.2)
8182
simplecov_json_formatter (0.1.4)
8283
stringio (3.2.0)
83-
test-unit (3.7.1)
84+
test-unit (3.7.7)
8485
power_assert
8586
timecop (0.9.10)
8687
tsort (0.2.0)
8788
unicode-display_width (3.2.0)
8889
unicode-emoji (~> 4.1)
89-
unicode-emoji (4.1.0)
90-
yard (0.9.37)
90+
unicode-emoji (4.2.0)
91+
yard (0.9.38)
9192

9293
PLATFORMS
9394
arm64-darwin-22
@@ -98,16 +99,16 @@ DEPENDENCIES
9899
faker!
99100
irb
100101
minitest (= 5.26.1)
101-
pry (= 0.15.2)
102+
pry (= 0.16.0)
102103
rake (= 13.3.1)
103104
rdoc
104-
rubocop (= 1.81.7)
105+
rubocop (= 1.82.1)
105106
rubocop-minitest (= 0.38.2)
106107
rubocop-rake (= 0.7.1)
107108
simplecov (= 0.22.0)
108-
test-unit (= 3.7.1)
109+
test-unit (= 3.7.7)
109110
timecop (= 0.9.10)
110-
yard (= 0.9.37)
111+
yard (= 0.9.38)
111112

112113
BUNDLED WITH
113114
4.0.3

faker.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
1919
spec.bindir = 'bin'
2020
spec.executables = ['faker']
2121
spec.require_paths = ['lib']
22-
spec.required_ruby_version = '>= 3.0'
22+
spec.required_ruby_version = '>= 3.1'
2323

2424
spec.metadata['changelog_uri'] = 'https://github.com/faker-ruby/faker/blob/main/CHANGELOG.md'
2525
spec.metadata['source_code_uri'] = 'https://github.com/faker-ruby/faker'

lib/faker.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def bothify(string)
6565
letterify(numerify(string))
6666
end
6767

68-
def generate(as_type, &block)
69-
PositionalGenerator.new(as_type, &block).generate
68+
def generate(as_type, &)
69+
PositionalGenerator.new(as_type, &).generate
7070
end
7171

7272
# Given a regular expression, attempt to generate a string
@@ -195,7 +195,7 @@ def flexible(key)
195195
# name:
196196
# girls_name: ["Alice", "Cheryl", "Tatiana"]
197197
# Then you can call Faker::Name.girls_name and it will act like #first_name
198-
def method_missing(mth, *args, &block)
198+
def method_missing(mth, *args, &)
199199
super unless flexible_key
200200

201201
if (translation = translate("faker.#{flexible_key}.#{mth}"))

0 commit comments

Comments
 (0)