Skip to content
Open
Show file tree
Hide file tree
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
12 changes: 12 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@ jobs:
database: postgresql
storage: active_storage
experimental: true
- rails: "8.1"
ruby: "3.4"
database: postgresql
storage: active_storage
- rails: "8.1"
ruby: "3.4"
database: mariadb
storage: dragonfly
- rails: "8.1"
ruby: "3.4"
database: sqlite
storage: active_storage
continue-on-error: ${{ matrix.experimental == true }}

env:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source "https://rubygems.org"

gemspec

rails_version = ENV.fetch("RAILS_VERSION", "8.0")
rails_version = ENV.fetch("RAILS_VERSION", "8.1")
gem "rails", "~> #{rails_version}.0"

if ENV["DB"].nil? || ENV["DB"] == "sqlite"
Expand Down
4 changes: 2 additions & 2 deletions alchemy_cms.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ Gem::Specification.new do |gem|
activesupport
railties
].each do |rails_gem|
gem.add_runtime_dependency rails_gem, [">= 7.1", "< 8.1"]
gem.add_runtime_dependency rails_gem, [">= 7.1", "< 8.2"]
end

gem.add_runtime_dependency "active_model_serializers", ["~> 0.10.14"]
gem.add_runtime_dependency "acts_as_list", [">= 0.3", "< 2"]
gem.add_runtime_dependency "awesome_nested_set", ["~> 3.1", ">= 3.7.0"]
gem.add_runtime_dependency "awesome_nested_set", [">= 3.9.0", "< 4.0"]
gem.add_runtime_dependency "cancancan", [">= 2.1", "< 4.0"]
gem.add_runtime_dependency "csv", ["~> 3.3"]
gem.add_runtime_dependency "dragonfly", ["~> 1.4"]
Expand Down
5 changes: 4 additions & 1 deletion app/models/alchemy/element_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module Alchemy
class ElementDefinition
include ActiveModel::Model
include ActiveModel::Attributes
include Alchemy::Hints

extend ActiveModel::Translation

Expand All @@ -23,6 +22,10 @@ class ElementDefinition
attribute :hint
attribute :icon

# Needs to be down here in order to have the attribute reader
# available after the attribute is defined.
include Alchemy::Hints

validates :name,
presence: true,
format: {
Expand Down
5 changes: 4 additions & 1 deletion app/models/alchemy/ingredient_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module Alchemy
class IngredientDefinition
include ActiveModel::Model
include ActiveModel::Attributes
include Alchemy::Hints

extend ActiveModel::Translation

Expand All @@ -18,6 +17,10 @@ class IngredientDefinition
attribute :deprecated
attribute :hint

# Needs to be down here in order to have the attribute reader
# available after the attribute is defined.
include Alchemy::Hints

validates :role,
presence: true,
format: {
Expand Down
5 changes: 4 additions & 1 deletion app/models/alchemy/page_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module Alchemy
class PageDefinition
include ActiveModel::Model
include ActiveModel::Attributes
include Alchemy::Hints

extend ActiveModel::Translation

Expand All @@ -22,6 +21,10 @@ class PageDefinition
attribute :editable_by
attribute :hint

# Needs to be down here in order to have the attribute reader
# available after the attribute is defined.
include Alchemy::Hints

validates :name,
presence: true,
format: {
Expand Down
4 changes: 2 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

get "/sitemap.xml", to: "pages#sitemap", format: "xml"

scope Alchemy.admin_path, {constraints: Alchemy.admin_constraints} do
scope Alchemy.admin_path, constraints: Alchemy.admin_constraints do
get "/", to: redirect("#{Alchemy.admin_path}/dashboard"), as: :admin
get "/dashboard", to: "admin/dashboard#index", as: :admin_dashboard
get "/dashboard/info", to: "admin/dashboard#info", as: :dashboard_info
Expand All @@ -16,7 +16,7 @@
get "/leave", to: "admin/base#leave", as: :leave_admin
end

namespace :admin, {path: Alchemy.admin_path, constraints: Alchemy.admin_constraints} do
namespace :admin, path: Alchemy.admin_path, constraints: Alchemy.admin_constraints do
resources :nodes

resources :pages do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "all_you_can_eat";
@import "gallery";
@import "header";
@import "slider";
@use "all_you_can_eat";
@use "gallery";
@use "header";
@use "slider";
2 changes: 1 addition & 1 deletion spec/dummy/app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "alchemy/elements";
@use "alchemy/elements";

body {
background-color: #f9f9f9;
Expand Down
Loading