plug 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 576b81e9d938343d962459062f25f3fc4ebc069876e994de50e2fd7525fc2881
4
- data.tar.gz: a608747d874db0fd78de1fca5209c523df2fe5ae61d80d9644e0bf4ddfc88060
3
+ metadata.gz: 4636655c1e65952543cf0e3acaee6fc53a53194bfebe3cef5d76ecec2cce3023
4
+ data.tar.gz: f2566806c3ac39ea1fb47ba030c381b0802f18385eff8ce77d16e52ad267f399
5
5
  SHA512:
6
- metadata.gz: 973d242dd4d0ba3429d6864fb6e74a02f6dff7db64c3f6d8656cb62bcd341002aec64ce7f394bf3f672bc03e41a7ea3b490fa34add9728b3e1db66b85cbd33da
7
- data.tar.gz: a294e5b4e35d65ca7cc70aa5816995c0b2d5887816589e078ec882c002678c2d3170a54e2c93383a78a1886e580694c6384187495b004bab19d5dd0bbb161a16
6
+ metadata.gz: 96f2fce53a4fb367a6b31e46e3f3fc35eab000860d332e11049d5bad217434c51ffac07c2d7e0a5fa59c0d8a38c83e0cf3db6b4d472415e10f294082f3df2a4b
7
+ data.tar.gz: 6dcb5278803a91436a2c2a5615befdcc89c646937bbda7973b8c949e2c910fc8329e54bf21c791870ab83cdb68cac7a8be53021a61dfc906ea764f8aacaedaad
@@ -31,7 +31,7 @@
31
31
  - @features.each do |feature|
32
32
  %tr
33
33
  %td= link_to sanitize(feature.name), edit_feature_path(feature), class: 'strong'
34
- %td= sanitize(feature.description)
34
+ %td= sanitize(feature.description, tags: %w(a p), attributes: %w(href))
35
35
  %td= feature.slug
36
36
  %td{ width: 150, align: 'center' }
37
37
  - if feature.state == 'enabled'
@@ -27,7 +27,7 @@
27
27
  - @site_notices.each do |site_notice|
28
28
  %tr
29
29
  %td= link_to sanitize(site_notice.name), edit_site_notice_path(site_notice), class: 'strong'
30
- %td= sanitize(site_notice.notice.html_safe)
30
+ %td= sanitize(site_notice.notice.html_safe, tags: %w(a p), attributes: %w(href))
31
31
  %td= site_notice.slug
32
32
  %td{ width: 150, align: 'center' }
33
33
  - if site_notice.state == 'enabled'
data/lib/plug/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Plug
4
- VERSION = '0.2.1' # Update version in package.json too
4
+ VERSION = '0.2.3' # Update version in package.json too
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boost
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-07-08 00:00:00.000000000 Z
12
+ date: 2025-07-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm
@@ -195,7 +195,6 @@ files:
195
195
  - app/controllers/plug/application_controller.rb
196
196
  - app/controllers/plug/features_controller.rb
197
197
  - app/controllers/plug/site_notices_controller.rb
198
- - app/frontend/entrypoints/plug.js
199
198
  - app/helpers/plug/application_helper.rb
200
199
  - app/mailers/plug/application_mailer.rb
201
200
  - app/models/plug/application_record.rb
@@ -217,7 +216,6 @@ files:
217
216
  - app/views/plug/site_notices/edit.html.haml
218
217
  - app/views/plug/site_notices/index.html.haml
219
218
  - app/views/plug/site_notices/new.html.haml
220
- - config/initializers/plug.rb
221
219
  - config/routes.rb
222
220
  - db/migrate/20171207020316_create_plug_features.rb
223
221
  - db/migrate/20180128202026_add_notice_to_plug_features.rb
@@ -1,2 +0,0 @@
1
- import "@digitalnz/plug/src/plug/stylesheets/base.scss";
2
- import "@digitalnz/plug/src/plug/base";
@@ -1,7 +0,0 @@
1
- # /config/initializers/plug.rb
2
-
3
- Plug.configure do |config|
4
- config.auth_user = 'admin'
5
- config.auth_password = 'password'
6
- config.themes = ['default', 'dark']
7
- end