From 6f997775d20eb1340ef97dfd1fe717a95f5f712e Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Wed, 9 Jul 2025 10:57:43 +1200 Subject: [PATCH 1/5] updated version --- lib/plug/version.rb | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plug/version.rb b/lib/plug/version.rb index b355d63..2a7009d 100644 --- a/lib/plug/version.rb +++ b/lib/plug/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Plug - VERSION = '0.2.0' # Update version in package.json too + VERSION = '0.2.1' # Update version in package.json too end diff --git a/package.json b/package.json index fc1f622..b3b6948 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@digitalnz/plug", - "version": "0.2.0", + "version": "0.2.1", "description": "A Rails engine to turn on/off features (Feature flipper).", "main": "src/base.js", "files": [ From e7e8da63c4f666cc809099b15f0226afd0e72808 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Thu, 10 Jul 2025 08:53:19 +1200 Subject: [PATCH 2/5] remove old ruby versions --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 465afdd..9a8d0aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,8 +12,6 @@ jobs: strategy: matrix: ruby: - - 3.0.3 - - 3.0.6 - 3.1.4 - 3.2.2 From f4170f5f468f8a7dc2b4c48645b9db05d095e306 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Thu, 10 Jul 2025 08:54:51 +1200 Subject: [PATCH 3/5] updated gemfile --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 44af62f..06e4df2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - plug (0.2.0) + plug (0.2.1) aasm activeresource haml-rails From ce0f064373d04a964e4e72472ad7de982616edb2 Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Thu, 10 Jul 2025 14:20:05 +1200 Subject: [PATCH 4/5] bump version --- Gemfile.lock | 2 +- lib/plug/version.rb | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 06e4df2..7caca2e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - plug (0.2.1) + plug (0.2.2) aasm activeresource haml-rails diff --git a/lib/plug/version.rb b/lib/plug/version.rb index 2a7009d..5b32aac 100644 --- a/lib/plug/version.rb +++ b/lib/plug/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Plug - VERSION = '0.2.1' # Update version in package.json too + VERSION = '0.2.2' # Update version in package.json too end diff --git a/package.json b/package.json index b3b6948..a68a214 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@digitalnz/plug", - "version": "0.2.1", + "version": "0.2.2", "description": "A Rails engine to turn on/off features (Feature flipper).", "main": "src/base.js", "files": [ From 908efa0078ae3ff4523bcb6137a093c80fc904bb Mon Sep 17 00:00:00 2001 From: Tim Wright Date: Fri, 11 Jul 2025 14:16:52 +1200 Subject: [PATCH 5/5] allow a tags and update version --- Gemfile.lock | 2 +- app/views/plug/features/index.html.haml | 2 +- app/views/plug/site_notices/index.html.haml | 2 +- lib/plug/version.rb | 2 +- package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 7caca2e..fd3261b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - plug (0.2.2) + plug (0.2.3) aasm activeresource haml-rails diff --git a/app/views/plug/features/index.html.haml b/app/views/plug/features/index.html.haml index 301f109..3a2822d 100644 --- a/app/views/plug/features/index.html.haml +++ b/app/views/plug/features/index.html.haml @@ -31,7 +31,7 @@ - @features.each do |feature| %tr %td= link_to sanitize(feature.name), edit_feature_path(feature), class: 'strong' - %td= sanitize(feature.description) + %td= sanitize(feature.description, tags: %w(a p), attributes: %w(href)) %td= feature.slug %td{ width: 150, align: 'center' } - if feature.state == 'enabled' diff --git a/app/views/plug/site_notices/index.html.haml b/app/views/plug/site_notices/index.html.haml index 7510f57..3ccf78c 100644 --- a/app/views/plug/site_notices/index.html.haml +++ b/app/views/plug/site_notices/index.html.haml @@ -27,7 +27,7 @@ - @site_notices.each do |site_notice| %tr %td= link_to sanitize(site_notice.name), edit_site_notice_path(site_notice), class: 'strong' - %td= sanitize(site_notice.notice.html_safe) + %td= sanitize(site_notice.notice.html_safe, tags: %w(a p), attributes: %w(href)) %td= site_notice.slug %td{ width: 150, align: 'center' } - if site_notice.state == 'enabled' diff --git a/lib/plug/version.rb b/lib/plug/version.rb index 5b32aac..8ce3bc0 100644 --- a/lib/plug/version.rb +++ b/lib/plug/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Plug - VERSION = '0.2.2' # Update version in package.json too + VERSION = '0.2.3' # Update version in package.json too end diff --git a/package.json b/package.json index a68a214..a2a085e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@digitalnz/plug", - "version": "0.2.2", + "version": "0.2.3", "description": "A Rails engine to turn on/off features (Feature flipper).", "main": "src/base.js", "files": [