iron-cms 0.19.1 → 0.20.0

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.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -8
  3. data/app/assets/builds/iron.css +2125 -2101
  4. data/app/assets/tailwind/iron/application.css +2 -0
  5. data/app/assets/tailwind/iron/components/field-list.css +35 -0
  6. data/app/assets/tailwind/iron/components/translation-notice.css +39 -0
  7. data/app/assets/tailwind/iron/lexxy.css +154 -47
  8. data/app/controllers/iron/blocks_controller.rb +8 -1
  9. data/app/controllers/iron/entries/content_copies_controller.rb +36 -0
  10. data/app/controllers/iron/entries_controller.rb +2 -1
  11. data/app/controllers/iron/references_controller.rb +7 -0
  12. data/app/helpers/iron/entries_helper.rb +24 -0
  13. data/app/helpers/iron/fields_helper.rb +21 -0
  14. data/app/mcp/iron/mcp/tool_context.rb +27 -12
  15. data/app/mcp/iron/mcp/tools/create_entry.rb +4 -3
  16. data/app/mcp/iron/mcp/tools/get_entry.rb +4 -3
  17. data/app/mcp/iron/mcp/tools/list_content_types.rb +1 -1
  18. data/app/mcp/iron/mcp/tools/list_entries.rb +4 -3
  19. data/app/mcp/iron/mcp/tools/search.rb +4 -3
  20. data/app/mcp/iron/mcp/tools/update_entry.rb +4 -3
  21. data/app/models/iron/entry/titlable.rb +29 -11
  22. data/app/models/iron/entry/translatable.rb +53 -0
  23. data/app/models/iron/entry.rb +1 -1
  24. data/app/models/iron/field.rb +14 -0
  25. data/app/models/iron/fields/block.rb +8 -0
  26. data/app/models/iron/fields/block_list.rb +14 -0
  27. data/app/models/iron/fields/boolean.rb +4 -0
  28. data/app/models/iron/fields/file.rb +4 -0
  29. data/app/models/iron/fields/reference_list.rb +8 -0
  30. data/app/models/iron/fields/rich_text_area.rb +10 -0
  31. data/app/views/iron/entries/_entry.html.erb +1 -1
  32. data/app/views/iron/entries/_entry_option.html.erb +4 -3
  33. data/app/views/iron/entries/_translation_notice.html.erb +32 -0
  34. data/app/views/iron/entries/edit.html.erb +14 -4
  35. data/app/views/iron/entries/entry.html.erb +8 -4
  36. data/app/views/iron/entries/fields/_block_list.html.erb +6 -22
  37. data/app/views/iron/entries/fields/_reference.html.erb +1 -1
  38. data/app/views/iron/entries/fields/_reference_item.html.erb +2 -2
  39. data/app/views/iron/entries/fields/_reference_list.html.erb +12 -3
  40. data/app/views/iron/entries/fields/block_list/_empty_state.html.erb +49 -0
  41. data/app/views/iron/entries/fields/block_list/_menu.html.erb +14 -0
  42. data/app/views/iron/entries/search.html.erb +3 -1
  43. data/app/views/iron/home/_recent_activity.html.erb +1 -1
  44. data/config/locales/en.yml +32 -0
  45. data/config/locales/it.yml +32 -0
  46. data/config/routes.rb +10 -0
  47. data/lib/iron/version.rb +1 -1
  48. metadata +18 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5de6ec71e07c37128ed9bfe339e6149dad20855ca9a1eb908d5e5cf32f2db49a
4
- data.tar.gz: a06ab1b9aec0abcfaadeb44a906adb357330c9ae179a6752a6dc4b900ba625d9
3
+ metadata.gz: 5938c2b3dd69de8b4cc3eec14b4c0deaa65daeb898a260c50568d65587a6839b
4
+ data.tar.gz: fc7563a4da099349e24dc547c7960a70856c803f9f2479ddb65c156a89cb9aeb
5
5
  SHA512:
6
- metadata.gz: 39fbb2624fe577fc09e7ae0fa5b74856d0a96ecc6f6645ac9cd4084fb4bb6530c4954c6e36e384dc26ea30262ebba7baec1d2ba37b9b29d8d12520d267afba31
7
- data.tar.gz: f26edb98c1fffa3aeec9b3d0cb3fd08b641d3547b78f3ed8f9f9c29d81669fcdd6c635483ff7834615502ac7ef0bf619b0f515b6a9e4f9b4eab2e3d743fbb967
6
+ metadata.gz: ebb10ff233e75a767e2e3cff35a274c9028fd4e7e365a53b94da9201abef49041d1f2e428dfbf66a311228e2ba71eceeab2e50938940c021fdcdc91bfc368152
7
+ data.tar.gz: e3f57598327d5cfa53425227606198d761a4286e3491475d2e6d49948fab9e01e10e980c09a50baf320b42886710eb50d188b2d3d3b65481b203de56b59e7360
data/README.md CHANGED
@@ -328,6 +328,8 @@ erDiagram
328
328
 
329
329
  ## Publishing
330
330
 
331
+ The gem is published by the [Release workflow](.github/workflows/release.yml). Whenever a change to `lib/iron/version.rb` lands on `main`, it runs the test suite, builds the gem, tags the commit with the version number, and publishes to RubyGems.
332
+
331
333
  To release a new version of the Iron gem:
332
334
 
333
335
  1. **Update the version and changelog:**
@@ -335,19 +337,16 @@ To release a new version of the Iron gem:
335
337
  - Update `CHANGELOG.md` with the changes for the new version
336
338
  - Run `bundle install` to update the lock file with the new version
337
339
 
338
- 2. **Commit the changes:**
340
+ 2. **Commit the changes and get them onto `main`**, by pushing directly or by merging a pull request:
339
341
 
340
342
  ```bash
341
- git commit -am "your commit message"
343
+ git commit -am "chore: release 0.20.0"
344
+ git push
342
345
  ```
343
346
 
344
- 3. **Release the gem:**
345
-
346
- ```bash
347
- bin/rails release
348
- ```
347
+ If a run fails before the gem is published, fix the cause and start it again from the Actions tab (Release → Run workflow, on `main`). A version that is already on RubyGems is skipped.
349
348
 
350
- This command will build the gem, tag the commit with the version number, push to GitHub, and publish to RubyGems.
349
+ The workflow authenticates through [trusted publishing](https://guides.rubygems.org/trusted-publishing/), so it needs no API key or one-time password. RubyGems trusts the workflow by its file name: renaming `release.yml` means updating the trusted publisher of the `iron-cms` gem on rubygems.org.
351
350
 
352
351
  ## Contributing
353
352