Skip to content

Commit

Permalink
[FEAT] Add support for rails 7 (#136)
Browse files Browse the repository at this point in the history
* add support for rails 7

* fix typo

* upgrade tzinfo

* try different gem config

* line at EOF
  • Loading branch information
KinWang-2013 authored Oct 2, 2024
1 parent 650fadb commit f2937ab
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ jobs:
gemfile: gemfiles/rails_5.2.gemfile
- ruby-version: 3.2
gemfile: gemfiles/rails_6.0.gemfile
- ruby-version: 3.2
gemfile: gemfiles/rails_7.0.gemfile
- ruby-version: 3.2
gemfile: gemfiles/rails_7.1.gemfile
- ruby-version: 3.2
gemfile: gemfiles/rails_7.2.gemfile
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
Expand Down
16 changes: 12 additions & 4 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
appraise 'rails_4' do
gem 'rails', '~> 4.0'
end

appraise 'rails_5.0' do
gem 'rails', '~> 5.0.0'
end
Expand All @@ -17,3 +13,15 @@ end
appraise 'rails_6.0' do
gem 'rails', '~> 6.0.0'
end

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'
end
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* [#133](https://github.com/radar/distance_of_time_in_words/pull/133): Test on Ruby 3.0 and 3.1 - [@dblock](https://github.com/dblock).
* [#134](https://github.com/radar/distance_of_time_in_words/pull/134): Add support for Dzongkha, the National language of Bhutan - [@KinWang-2013](https://github.com/KinWang-2013).
* [#135](https://github.com/radar/distance_of_time_in_words/pull/135): Add support for Ruby 2.7 and 3.2, removed support for ruby 2.4, 2.5, 2.6 and Rails 4 - [@KinWang-2013](https://github.com/KinWang-2013).
* [#136](https://github.com/radar/distance_of_time_in_words/pull/136): Add support for Rails 7 - [@KinWang-2013](https://github.com/KinWang-2013).
* Your contribution here.

## 5.3.3 (2022/04/25)
Expand Down
10 changes: 10 additions & 0 deletions gemfiles/rails_7.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true

# This file was generated by Appraisal

source 'http://rubygems.org'

gem 'rails', '~> 7.0.0'
gem 'tzinfo', '~> 2.0'

gemspec path: '../'
11 changes: 11 additions & 0 deletions gemfiles/rails_7.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# frozen_string_literal: true

# This file was generated by Appraisal

source 'http://rubygems.org'

gem 'rails', '~> 7.1.0'
gem 'tzinfo', '~> 2.0'


gemspec path: '../'
11 changes: 11 additions & 0 deletions gemfiles/rails_7.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# frozen_string_literal: true

# This file was generated by Appraisal

source 'http://rubygems.org'

gem 'rails', '~> 7.2.0'
gem 'tzinfo', '~> 2.0'


gemspec path: '../'

0 comments on commit f2937ab

Please sign in to comment.