Skip to content

Commit

Permalink
chore: setting up for Rails 8 release
Browse files Browse the repository at this point in the history
  • Loading branch information
adzap committed Nov 30, 2024
1 parent 858b655 commit 84b86a8
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 35 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,9 @@ jobs:
fail-fast: false
matrix:
include:
- gemfile: rails_7_0
ruby: 2.7
- gemfile: rails_7_0
ruby: 3.0
- gemfile: rails_7_0
ruby: 3.1

- gemfile: rails_7_1
ruby: 2.7
- gemfile: rails_7_1
ruby: 3.0
- gemfile: rails_7_1
ruby: 3.1
- gemfile: rails_7_1
ruby: 3.2

- gemfile: rails_7_2
ruby: 3.1
- gemfile: rails_7_2
- gemfile: rails_8_0
ruby: 3.2
- gemfile: rails_7_2
- gemfile: rails_8_0
ruby: 3.3

name: ${{ matrix.gemfile }}, ruby ${{ matrix.ruby }}
Expand Down
12 changes: 2 additions & 10 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
appraise "rails_7_0" do
gem "rails", "~> 7.0.0"
end

appraise "rails_7_1" do
gem "rails", "~> 7.1.0"
end

appraise "rails_7_2" do
gem "rails", "~> 7.2.0"
appraise "rails_8_0" do
gem "rails", "~> 8.0.0"
end
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ source 'https://rubygems.org'

gemspec

gem 'rails', '~> 7.0.0'
gem 'rails', '~> 8.0.0'
gem 'rspec'
gem 'rspec-rails', '~> 6.0'
gem 'sqlite3', '~> 1.4'
gem 'sqlite3', '~> 2.0'
gem 'byebug'
gem 'appraisal'
gem 'nokogiri'
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@

## Description

Complete validation of dates, times and datetimes for Rails 7.x and ActiveModel.
Complete validation of dates, times and datetimes for Rails 8.x and ActiveModel.

Older Rails versions:

- Rails 4.x: [https://github.com/adzap/validates_timeliness/tree/4-0-stable]
- Rails 5.x: [https://github.com/adzap/validates_timeliness/tree/5-0-stable]
- Rails 6.x: [https://github.com/adzap/validates_timeliness/tree/6-0-stable]
- Rails 7.x: [https://github.com/adzap/validates_timeliness/tree/7-0-stable]


## Features
Expand All @@ -30,7 +31,7 @@ Older Rails versions:

In Gemfile
```ruby
gem 'validates_timeliness', '~> 7.0.0'
gem 'validates_timeliness', '~> 8.0.0.beta1'
```

Run bundler:
Expand Down
13 changes: 13 additions & 0 deletions gemfiles/rails_8_0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rails", "~> 8.0.0"
gem "rspec"
gem "rspec-rails", "~> 6.0"
gem "sqlite3", "~> 2.0"
gem "byebug"
gem "appraisal"
gem "nokogiri"

gemspec path: "../"
2 changes: 1 addition & 1 deletion validates_timeliness.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ Gem::Specification.new do |s|
"wiki_uri" => "#{github_url}/wiki",
}

s.add_runtime_dependency("activemodel", [">= 7.0.0", "< 8"])
s.add_runtime_dependency("activemodel", [">= 8.0.0", "< 9"])
s.add_runtime_dependency("timeliness", [">= 0.3.10", "< 1"])
end

0 comments on commit 84b86a8

Please sign in to comment.