Skip to content

Commit

Permalink
Adds ruby 3.3 to Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
LeFnord committed Dec 29, 2023
1 parent 62e1bd5 commit a7118fb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
RACK_ENV: test
strategy:
matrix:
ruby-version: ['3.1', '3.2', head]
ruby-version: ['3.1', '3.2', '3.3', head]

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.3.0
8 changes: 4 additions & 4 deletions template/config/boot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'api'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

Dir[File.expand_path('../config/initializers/*.rb', __dir__)].sort.each do |initializer|
Dir[File.expand_path('../config/initializers/*.rb', __dir__)].each do |initializer|
require initializer
end

Dir[File.expand_path('../lib/**/*.rb', __dir__)].sort.each do |lib|
Dir[File.expand_path('../lib/**/*.rb', __dir__)].each do |lib|
require lib
end

Dir[File.expand_path('../api/entities/*.rb', __dir__)].sort.each do |entity|
Dir[File.expand_path('../api/entities/*.rb', __dir__)].each do |entity|
require entity
end

Dir[File.expand_path('../api/endpoints/*.rb', __dir__)].sort.each do |endpoint|
Dir[File.expand_path('../api/endpoints/*.rb', __dir__)].each do |endpoint|
require endpoint
end
2 changes: 1 addition & 1 deletion template/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
require File.expand_path('../config/application', __dir__)

grape_starter_gem = Gem::Specification.find_by_name('grape-starter').gem_dir
Dir["#{grape_starter_gem}/lib/starter/rspec/**/*.rb"].sort.each { |f| require f }
Dir["#{grape_starter_gem}/lib/starter/rspec/**/*.rb"].each { |f| require f }

RSpec.configure do |config|
include Rack::Test::Methods
Expand Down

0 comments on commit a7118fb

Please sign in to comment.