Skip to content

Use Ruby 3.2.2 #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -40,6 +40,7 @@ jobs:

lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
@@ -53,3 +54,19 @@ jobs:
- name: Lint code for consistent style
run: bin/rubocop -f github

test:

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
bundler-cache: true

- name: Run tests
run: bundle exec rake
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-3.1.4
ruby-3.2.2
7 changes: 5 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
source "https://rubygems.org"

# Version from .tool-versions (can use asdf); default to 3.2+ (e.g. for dependabot)
ruby file: ".tool-versions" rescue "~> 3.2"

# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem "rails", "~> 7.2.2"
# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
@@ -49,13 +52,13 @@ group :development, :test do

# Testing Framework
gem "rspec", "~> 3.13"
gem 'rspec-rails'
gem "rspec-rails"
end

group :development do
# Use console on exceptions pages [https://github.com/rails/web-console]
gem "web-console"

# Highlight the fine-grained location where an error occurred [https://github.com/ruby/error_highlight]
gem "error_highlight", ">= 0.4.0", platforms: [ :ruby ]
# gem "error_highlight", ">= 0.4.0", platforms: [ :ruby ]
end
2 changes: 0 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -93,7 +93,6 @@ GEM
reline (>= 0.3.8)
diff-lcs (1.5.1)
drb (2.2.1)
error_highlight (0.7.0)
erubi (1.13.0)
globalid (1.2.1)
activesupport (>= 6.1)
@@ -313,7 +312,6 @@ DEPENDENCIES
bootsnap
brakeman
debug
error_highlight (>= 0.4.0)
importmap-rails
jbuilder
puma (>= 5.0)
2 changes: 1 addition & 1 deletion app/controllers/donations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class DonationsController < ApplicationController
before_action :set_donation, only: %i[ show edit update destroy ]
# following line makes the cURL request from the README work
skip_before_action :verify_authenticity_token, only: [:create] if Rails.env.development?
skip_before_action :verify_authenticity_token, only: [ :create ] if Rails.env.development?

# GET /donations or /donations.json
def index