From 551bc8ecb035da26388000cc6a1f55097469b4e7 Mon Sep 17 00:00:00 2001 From: Eric Pugh Date: Sun, 1 Dec 2024 05:03:38 -0500 Subject: [PATCH] Add support for Rails 8 (#172) * Try out rc2 of Rails 8 * Move to Rails 8 * use released version * use two digits * remove third digit style * Exclude Ruby 3.1 for Rails 8, unsupported. --------- Co-authored-by: Mathieu Jobin <99191+mathieujobin@users.noreply.github.com> --- .github/workflows/build.yml | 4 ++++ CHANGELOG.md | 4 ++++ angular-rails-templates.gemspec | 2 +- gemfiles/rails_8.0.gemfile | 10 ++++++++++ lib/angular-rails-templates/version.rb | 2 +- 5 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 gemfiles/rails_8.0.gemfile diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7c3c5d2..d74b435 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,10 @@ jobs: - rails_7.0 - rails_7.1 - rails_7.2 + - rails_8.0 + exclude: + - gemfile: rails_8.0 + ruby: '3.1' include: - gemfile: rails_5.0 ruby: '2.6' diff --git a/CHANGELOG.md b/CHANGELOG.md index d120e21..1d783c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ### [Unreleased] +### 1.3.0 + +- Support Rails 8 + ### 1.2.2 - Support Rails 7.2 diff --git a/angular-rails-templates.gemspec b/angular-rails-templates.gemspec index affea6a..cd8de3e 100644 --- a/angular-rails-templates.gemspec +++ b/angular-rails-templates.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |s| s.require_paths = ["lib"] - s.add_dependency "railties", ">= 5.0", "< 7.3" + s.add_dependency "railties", ">= 5.0", "< 8.1" s.add_dependency "sprockets", ">= 3.0", '< 5' s.add_dependency "sprockets-rails" s.add_dependency "tilt" diff --git a/gemfiles/rails_8.0.gemfile b/gemfiles/rails_8.0.gemfile new file mode 100644 index 0000000..92062f5 --- /dev/null +++ b/gemfiles/rails_8.0.gemfile @@ -0,0 +1,10 @@ +source "https://rubygems.org" + +gem "rails", "~> 8.0.0" +gem "slim-rails" +gem "haml" +gem "kramdown" + +gem 'coveralls', require: false + +gemspec :path => ".././" diff --git a/lib/angular-rails-templates/version.rb b/lib/angular-rails-templates/version.rb index 4eb8de4..5b534b6 100644 --- a/lib/angular-rails-templates/version.rb +++ b/lib/angular-rails-templates/version.rb @@ -1,3 +1,3 @@ module AngularRailsTemplates - VERSION = '1.2.2' + VERSION = '1.3.0' end