Skip to content

Commit

Permalink
Update adapters to support ruby 3.2 (#444)
Browse files Browse the repository at this point in the history
* Update adapter dependencies for Ruby 3.2 support

* Fix deprecated File.exists? call
  • Loading branch information
dometto authored Mar 13, 2023
1 parent 02584cf commit 1a2db40
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [jruby-9.3.2.0]
ruby: [jruby-9.4.0.0]
steps:
- name: Check out repository code
uses: actions/checkout@v2
Expand All @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.7', '3.0', '3.1']
ruby: ['2.7', '3.1', '3.2.1']
steps:
- name: Check out repository code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ end
desc 'Build changlog'
task :changelog do
[latest_changes_file, history_file].each do |f|
unless File.exists?(f)
unless File.exist?(f)
puts "#{f} does not exist but is required to build a new release."
exit!
end
Expand Down
4 changes: 2 additions & 2 deletions gollum-lib.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ require File.join(File.dirname(__FILE__), 'lib', 'gollum-lib', 'version.rb')
# This file needs to conditionally define the default adapter for MRI and Java, because this is the file that is included from the Gemfile.
# In addition, the default Java adapter needs to be defined in gollum-lib_java.gemspec beause that file is used to *build* the Java gem.
if RUBY_PLATFORM == 'java' then
default_adapter = ['gollum-rjgit_adapter', '~> 0.6']
default_adapter = ['gollum-rjgit_adapter', '~> 1.0']
else
default_adapter = ['gollum-rugged_adapter', '~> 1.0']
default_adapter = ['gollum-rugged_adapter', '~> 2.0']
end
Gem::Specification.new &specification(Gollum::Lib::VERSION, default_adapter)

0 comments on commit 1a2db40

Please sign in to comment.