0.01
A long-lived project that still receives updates
Manage the SEO attributes (title, keywords, description, author, image and canonical link) of Camaleon CMS posts, categories and post types, rendered as meta tags on the frontend.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 0
 Project Readme

Seo For Camaleon CMS

Permit to manage the seo attributes for each page of Camaleon CMS. Alt text

Installation

  • Go to admin -> plugins and activate the plugin
  • Edit your Post Types "Content Types" settings to enable or disable SEO

Development

The suite runs against a camaleon_cms-backed dummy Rails app under spec/ (the Ruby version comes from .tool-versions):

bundle install
(cd spec/dummy && RAILS_ENV=test bin/rails db:test:prepare)
bin/rspec

Lint with the same configuration CI enforces:

bin/rubocop

What CI runs

Three sets of checks test this plugin. Two run on the events of this repository. One runs on the events of camaleon_cms.

Event Check Workflow What it tests
A pull request or a master push in this repository CI / RSpec (camaleon_cms <version>) and CI / RuboCop ci.yml The commit of this plugin, against the released camaleon_cms gem that Gemfile.lock pins
A pull request or a master push in this repository Camaleon master / Suite / RSpec camaleon_master.yml, which calls core_compat.yml The commit of this plugin, against the master branch of camaleon_cms
A pull request or a master push in camaleon_cms camaleon-cms-seo / RSpec, on the camaleon_cms commit ecosystem.yml of camaleon_cms, which calls core_compat.yml of this repository The master branch of this plugin, against the camaleon_cms commit

core_compat.yml holds the steps that run the suite against a camaleon_cms commit. It never starts alone: one of the two callers in the table starts it.

The two checks against Camaleon code that is not released are advisory: a red check blocks no merge and no release. In this repository, the job Is master ahead of the release? skips the suite when Camaleon master has no commit after the release that Gemfile.lock pins.

The suite against Camaleon master, locally

Point CAMALEON_CMS_PATH at a checkout of the master branch of camaleon_cms:

export RAILS_ENV=test CAMALEON_CMS_PATH=../camaleon-cms
bundle lock && bundle install
(cd spec/dummy && bin/rails db:test:prepare && bin/rails db:migrate)
bin/rspec
unset CAMALEON_CMS_PATH && git checkout Gemfile.lock spec/dummy/db/schema.rb && bundle install

The last line restores the lock and the schema of the released gem.

Releasing

Bump lib/cama_meta_tag/version.rb, cut a ## <version> section in CHANGELOG.md, merge, then run the Release workflow from the Actions tab on master, typing that same version. The workflow refuses to run without a green CI run for the released commit, publishes the gem to RubyGems, and creates the tag and GitHub release.