diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 283959e203..68b3f8fcd6 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -42,7 +42,6 @@ jobs: fail-fast: false # don't fail all matrix builds if one fails matrix: ruby: - - '3.1' - '3.2' - '3.3' - '3.4' diff --git a/.rubocop.yml b/.rubocop.yml index 1cd23860ce..404dd7d884 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -3,7 +3,7 @@ plugins: - rubocop-rake AllCops: - TargetRubyVersion: 3.1 + TargetRubyVersion: 3.2 NewCops: enable # Suppress noise for obvious operator precedence. diff --git a/Gemfile b/Gemfile index 2e1d3da397..d585f2d254 100644 --- a/Gemfile +++ b/Gemfile @@ -18,9 +18,6 @@ gem 'test-unit', '3.7.7' gem 'timecop', '0.9.11' gem 'yard', '0.9.40' -# TODO: remove when Ruby 3.1 is no longer supported -gem 'erb', '~> 4.0.4' - group :benchmark do gem 'benchmark' gem 'benchmark-ips' diff --git a/Gemfile.lock b/Gemfile.lock index 62247d19c9..dd3e30a691 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -101,7 +101,6 @@ PLATFORMS DEPENDENCIES benchmark benchmark-ips - erb (~> 4.0.4) faker! irb minitest (= 5.27.0) diff --git a/faker.gemspec b/faker.gemspec index 9455a5e572..b65986765e 100644 --- a/faker.gemspec +++ b/faker.gemspec @@ -19,7 +19,7 @@ Gem::Specification.new do |spec| spec.bindir = 'bin' spec.executables = ['faker'] spec.require_paths = ['lib'] - spec.required_ruby_version = '>= 3.1' + spec.required_ruby_version = '>= 3.2' spec.metadata['changelog_uri'] = 'https://github.com/faker-ruby/faker/blob/main/CHANGELOG.md' spec.metadata['source_code_uri'] = 'https://github.com/faker-ruby/faker' diff --git a/lib/faker/default/driving_licence.rb b/lib/faker/default/driving_licence.rb index a10612a200..7e577ce2cc 100644 --- a/lib/faker/default/driving_licence.rb +++ b/lib/faker/default/driving_licence.rb @@ -61,11 +61,11 @@ def northern_irish_driving_licence # Faker::DrivingLicence.uk_driving_licence #=> "70702548" # # @faker.version 1.9.2 - def uk_driving_licence(*args) + def uk_driving_licence(*) if Faker::Config.random.rand < NI_CHANCE northern_irish_driving_licence else - british_driving_licence(*args) + british_driving_licence(*) end end diff --git a/lib/helpers/positional_generator.rb b/lib/helpers/positional_generator.rb index 1ddf535ba7..d81a2e754a 100644 --- a/lib/helpers/positional_generator.rb +++ b/lib/helpers/positional_generator.rb @@ -278,8 +278,6 @@ def build_graph # [2] # ] def build_stack(graph) - require 'set' - terminals = graph.filter_map { |(from, to)| to.nil? && from } stack = [terminals] seen = Set.new(terminals)