Commit Graph

138 Commits

Author SHA1 Message Date
BenClaw 28be1d86d9 fix: require ace/mode-json for page_settings JSON editor
SetMode('ace/mode/json') fails silently when the mode isn't loaded,
skipping the JSON branch and falling through to handlebars mode.
v3.1.0
2026-05-30 21:24:26 +02:00
BenClaw 00be67de45 fix: use data: { mode: 'json' } instead of hash rocket syntax
Rails form helpers translate data: { mode: 'json' } to data-mode="json".
The hash rocket 'data-mode' => 'json' may not generate the attribute
correctly in Slim context.
2026-05-30 21:21:14 +02:00
bterkuile f54bfb63db Dont use haml style tags 2026-05-30 14:06:36 -05:00
BenClaw 4ae6e557b6 refactor: has_attachment moved to simply_stored gem
Remove from cmtool lib/ — it's a SimplyStored module with no
cmtool dependency. Now required from simply_stored directly.
2026-05-30 20:57:49 +02:00
BenClaw 1785e9ca0b chore: keep JSON parse setter as safety net until couch_potato updated 2026-05-30 20:44:14 +02:00
BenClaw 24415b64c0 refactor: use type: Hash for page_settings (coercion in couch_potato) 2026-05-30 20:43:25 +02:00
BenClaw 548a227617 feat: add page_settings JSON property + ACE JSON mode
- Add property :page_settings (Hash, default {}) to Page model
- JSON.parse string input in setter (form submits as text)
- Add collapsible 'Page Settings (JSON)' section to page form
- Support data-mode='json' attribute for ACE editor
  (html_edit.js.coffee: check textarea data-mode attribute)
2026-05-30 20:33:15 +02:00
BenClaw 37cbb428c6 Add SimplyStored::HasAttachment — Paperclip replacement for CouchDB
- New module lib/simply_stored/has_attachment.rb
  Drop-in replacement using MiniMagick for thumbnail generation.
  Same file paths as Paperclip — zero migration of existing files.
  Auto-declares CouchDB properties for attachment metadata.
  Proxy object mimics Paperclip::Attachment API for view compat.
- Wired into lib/cmtool.rb
- Added TODO migration comments to Image, News, Quote models
2026-05-18 04:41:56 +02:00
bterkuile 6f2193a5e5 Merge pull request #29 from bterkuile/dependabot/bundler/rack-3.2.6
Bump rack from 3.2.5 to 3.2.6
2026-04-02 23:10:11 +02:00
dependabot[bot] ced8976cc9 Bump rack from 3.2.5 to 3.2.6
Bumps [rack](https://github.com/rack/rack) from 3.2.5 to 3.2.6.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/v3.2.5...v3.2.6)

---
updated-dependencies:
- dependency-name: rack
  dependency-version: 3.2.6
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-02 18:59:13 +00:00
bterkuile 4efe7b5d5f Merge pull request #24 from bterkuile/dependabot/bundler/devise-5.0.3
Bump devise from 4.9.4 to 5.0.3
2026-03-19 19:19:41 -05:00
dependabot[bot] 80d136e595 Bump devise from 4.9.4 to 5.0.3
Bumps [devise](https://github.com/heartcombo/devise) from 4.9.4 to 5.0.3.
- [Release notes](https://github.com/heartcombo/devise/releases)
- [Changelog](https://github.com/heartcombo/devise/blob/main/CHANGELOG.md)
- [Commits](https://github.com/heartcombo/devise/compare/v4.9.4...v5.0.3)

---
updated-dependencies:
- dependency-name: devise
  dependency-version: 5.0.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-20 00:19:18 +00:00
bterkuile 30952dd9d6 Merge pull request #25 from bterkuile/dependabot/bundler/bcrypt-3.1.22
Bump bcrypt from 3.1.20 to 3.1.22
2026-03-19 19:16:38 -05:00
dependabot[bot] e04f379041 Bump bcrypt from 3.1.20 to 3.1.22
Bumps [bcrypt](https://github.com/bcrypt-ruby/bcrypt-ruby) from 3.1.20 to 3.1.22.
- [Release notes](https://github.com/bcrypt-ruby/bcrypt-ruby/releases)
- [Changelog](https://github.com/bcrypt-ruby/bcrypt-ruby/blob/master/CHANGELOG)
- [Commits](https://github.com/bcrypt-ruby/bcrypt-ruby/compare/v3.1.20...v3.1.22)

---
updated-dependencies:
- dependency-name: bcrypt
  dependency-version: 3.1.22
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-19 18:55:36 +00:00
bterkuile 1a1edf675b ensure return even if not found does not return tru 2026-02-08 20:02:27 -05:00
bterkuile 69a0291ab7 Forgot to commit long used code, see what happens 2026-02-04 14:25:50 -05:00
bterkuile 647cc38bad Better ruby3 forwarding for localization and have a default locale of en 2025-09-25 17:47:17 -05:00
bterkuile 557763877c update local bundle 2025-08-30 09:53:29 -05:00
bterkuile fc3c2f268a Fixes for rails 8 support 2025-08-27 11:55:13 -05:00
bterkuile a451ea622a Fase out bourbon 2025-02-13 11:44:53 -05:00
bterkuile 25f4fbebb7 Newest tinymce is without jquery. Not tested 2025-02-10 15:02:18 -05:00
bterkuile 54e295836f Move autoload constant using initializer to after_initialize in application load order for zeitwerk 2022-09-19 08:14:59 -05:00
bterkuile 30e5a72dc0 More explicit initializer for rails 7 compatibility 2022-09-11 08:47:20 -05:00
bterkuile 3aa204aa30 Changes for mozo host 2020-03-05 11:36:19 -05:00
bterkuile 02e60c174d more custom managed security 2019-12-29 12:56:41 -05:00
bterkuile 10c2054318 Change Fixnum to Integer 2019-12-29 08:19:39 -05:00
bterkuile 4969be3e76 change before_filter to before_action 2019-12-29 08:00:52 -05:00
bterkuile 3caf808e22 Better funding spam block 2017-02-15 14:32:41 +01:00
bterkuile 23bd4c9a58 better 404 handling by forcing html format for unknowns 2016-06-15 12:48:58 +02:00
bterkuile 2221ad8d79 now include minor ruby version 2016-06-06 10:33:39 +02:00
bterkuile 196b0530ee test on ruby 2.3 2016-06-06 10:31:30 +02:00
bterkuile 3dc85cad7e remove dependency on custom orm_adapter 2016-06-06 10:27:12 +02:00
bterkuile d1d7ee3128 Add error translations for bad intentions 2016-06-04 14:45:28 +02:00
bterkuile 96982e47a7 blacklist some funding sources 2016-06-04 14:39:16 +02:00
bterkuile cb77ce5921 upgrade and force html responses 2016-06-02 20:09:51 +02:00
bterkuile 7dc12ca3e8 Allow cmtool helpers to be used in other namespaces 2015-10-05 10:36:52 +02:00
bterkuile 6b6a7405ba Fix self version 2015-07-22 18:06:27 +02:00
bterkuile b327bf596b Bump version to 2 2015-07-22 17:58:32 +02:00
bterkuile f7aa44ae2e Sync with latest simply_stored 2015-07-22 17:21:41 +02:00
bterkuile 49b61a5026 New style mocking 2015-07-16 17:17:50 +02:00
bterkuile 97c4203c0e Better cmtool_user linking 2015-07-16 17:13:01 +02:00
bterkuile 11185626d7 Use default locale as cmtool default 2015-07-16 16:22:15 +02:00
bterkuile 502759b982 Add launchy 2015-07-16 15:30:44 +02:00
bterkuile 335c4852e7 Enable cmtool_user for devise controller 2015-07-16 14:42:25 +02:00
bterkuile f1e25b23a4 Only use expect syntax when it adds value 2015-07-14 14:23:41 +02:00
bterkuile d1173a94ff \fef 2015-07-14 14:22:10 +02:00
bterkuile 0bdc4b017e Test controller page includes by means of real application controller spec 2015-07-14 14:21:37 +02:00
bterkuile 1d5dd62c68 Display full url in sitemap 2015-07-14 14:14:37 +02:00
bterkuile 42cc5afe6d Update dependencies, feature specs and sitemap 2015-07-14 14:11:33 +02:00
bterkuile 17bd340071 Only hide menu user part if no cmtool_user is defined 2015-06-09 13:57:40 +02:00