Skip to content

Commit

Permalink
Update fakefs to fix test failures on Ruby 3.2.2 (#21588)
Browse files Browse the repository at this point in the history
* Update fakefs from 1.2 to 1.9

To fix failure on `bundle exec rspec` in Ruby 3.2.2

We kept having "NameError: undefined method `=~' for class `FakeFS::Pathname'" errors when running the tests in Ruby 3.2.2 on our Macs

* Use fakefs 1.8

As fakefs 1.9+ requires Ruby 2.7 while fastlane's gemspec still officially supports 2.6
  • Loading branch information
AliSoftware committed Oct 19, 2023
1 parent 35da455 commit 5c63bd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Expand Up @@ -120,7 +120,7 @@ GEM
dotenv (2.8.1)
emoji_regex (3.2.3)
excon (0.103.0)
fakefs (1.2.3)
fakefs (1.8.0)
faraday (1.4.1)
faraday-excon (~> 1.1)
faraday-net_http (~> 1.0)
Expand Down Expand Up @@ -371,7 +371,7 @@ DEPENDENCIES
coveralls (~> 0.8.13)
danger (~> 8.0)
danger-junit (~> 1.0)
fakefs (~> 1.2)
fakefs (= 1.8)
fastlane!
fastlane-plugin-clubmate
fastlane-plugin-ruby
Expand Down
2 changes: 1 addition & 1 deletion fastlane.gemspec
Expand Up @@ -116,7 +116,7 @@ Gem::Specification.new do |spec|
# Development only
spec.add_development_dependency('climate_control', '~> 0.2.0')
spec.add_development_dependency('coveralls', '~> 0.8.13')
spec.add_development_dependency('fakefs', '~> 1.2')
spec.add_development_dependency('fakefs', '1.8') # 1.9+ requires Ruby >=2.7, while fastlane uses a `required_ruby_version` of `>= 2.6``
spec.add_development_dependency('pry-byebug')
spec.add_development_dependency('pry-rescue')
spec.add_development_dependency('pry-stack_explorer')
Expand Down

0 comments on commit 5c63bd5

Please sign in to comment.