ro 5.0.0 → 5.1.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 (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/ro/_lib.rb +1 -1
  4. data/lib/ro/asset.rb +2 -1
  5. data/public/api/ro/index-1.json +82 -148
  6. data/public/api/ro/index.json +82 -148
  7. data/public/api/ro/nerd/fastest-possible-embeddings/index.json +7 -8
  8. data/public/api/ro/nerd/ima/index.json +3 -4
  9. data/public/api/ro/nerd/index/index.json +5 -6
  10. data/public/api/ro/nerd/index-1.json +15 -18
  11. data/public/api/ro/nerd/index.json +15 -18
  12. data/public/api/ro/pages/contact/index.json +4 -5
  13. data/public/api/ro/pages/cv/index.json +3 -4
  14. data/public/api/ro/pages/disco/index.json +9 -10
  15. data/public/api/ro/pages/index/index.json +2 -3
  16. data/public/api/ro/pages/index-1.json +25 -82
  17. data/public/api/ro/pages/index.json +25 -82
  18. data/public/api/ro/pages/jess/index.json +4 -5
  19. data/public/api/ro/pages/now/index.json +3 -4
  20. data/public/api/ro/posts/almost-died-in-an-ice-cave/index.json +21 -22
  21. data/public/api/ro/posts/facebook-and-global-extremism/index.json +8 -9
  22. data/public/api/ro/posts/index-1.json +42 -48
  23. data/public/api/ro/posts/index.json +42 -48
  24. data/public/api/ro/posts/lemmings-considered-harmful/index.json +3 -4
  25. data/public/api/ro/posts/lost-in-the-desert/index.json +3 -4
  26. data/public/api/ro/posts/mission/index.json +3 -4
  27. data/public/api/ro/posts/return-your-laptop/index.json +4 -5
  28. data/ro.gemspec +41 -3
  29. data/test/tmp/migration_test_1760940939.backup.20251020061539/migration_test_1760940939/posts/assets-only/assets/test.txt +1 -0
  30. data/test/tmp/migration_test_1760940939.backup.20251020061539/migration_test_1760940939/posts/sample-post/assets/body.md +5 -0
  31. data/test/tmp/migration_test_1760940939.backup.20251020061539/migration_test_1760940939/posts/sample-post/assets/image.jpg +2 -0
  32. data/test/tmp/migration_test_1760940939.backup.20251020061539/migration_test_1760940939/posts/sample-post/attributes.yml +2 -0
  33. data/test/tmp/migration_test_1760940939.backup.20251020061539/posts/assets-only/assets/test.txt +1 -0
  34. data/test/tmp/migration_test_1760940939.backup.20251020061539/posts/sample-post/assets/body.md +5 -0
  35. data/test/tmp/migration_test_1760940939.backup.20251020061539/posts/sample-post/assets/image.jpg +2 -0
  36. data/test/tmp/migration_test_1760940939.backup.20251020061539/posts/sample-post/attributes.yml +2 -0
  37. data/test/tmp/migration_test_1760941048.backup.20251020061728/migration_test_1760941048/posts/assets-only/assets/test.txt +1 -0
  38. data/test/tmp/migration_test_1760941048.backup.20251020061728/migration_test_1760941048/posts/sample-post/assets/body.md +5 -0
  39. data/test/tmp/migration_test_1760941048.backup.20251020061728/migration_test_1760941048/posts/sample-post/assets/image.jpg +2 -0
  40. data/test/tmp/migration_test_1760941048.backup.20251020061728/migration_test_1760941048/posts/sample-post/attributes.yml +2 -0
  41. data/test/tmp/migration_test_1760941048.backup.20251020061728/posts/assets-only/assets/test.txt +1 -0
  42. data/test/tmp/migration_test_1760941048.backup.20251020061728/posts/sample-post/assets/body.md +5 -0
  43. data/test/tmp/migration_test_1760941048.backup.20251020061728/posts/sample-post/assets/image.jpg +2 -0
  44. data/test/tmp/migration_test_1760941048.backup.20251020061728/posts/sample-post/attributes.yml +2 -0
  45. metadata +18 -3
  46. data/public/api/ro/pages/about/index.json +0 -60
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f467beebd987ebb866a7f57a04810ca0c9c4f55396ca07607788c9c614919531
4
- data.tar.gz: 73ccfea5d2a5d0d8eac25c1a508c3d16de2d52d44dc6b6d250f2e6e1b5616a2e
3
+ metadata.gz: ce865a6e0af863e98426c6a5822464695d0baf15ab6ebc1b7e0acdbf88cdc51a
4
+ data.tar.gz: 8e20b5b872b2aef30ae6ff524d287266d8d720ff7ffb63c22513160aab773b72
5
5
  SHA512:
6
- metadata.gz: 4f625e44529a3e41f0d9e1f7ddd324ab439be33e364487bf48a8c9d01611694143f80d5747b0432fea673a2a598692bdbb760306a7a6370f5abb006c3ef23a1b
7
- data.tar.gz: be8bf1fdb7ea9e0ba6b66095c767c6ce4d68c3680cab4fbe8c01cf1e5f85aad011542c94c8478bbf35dab2ec431befd0e7c343a06ff53b54386049e7f42fb013
6
+ metadata.gz: 8b32bd17c787b5969801e7fb72146802aaf8758a0003994eb5363b821508fab65128b4d7dfe614c5df2fee1a5f507cf4c88aaeaa37df4799e11303b87e486600
7
+ data.tar.gz: a6dfe0e278908e892f8c79c15003c9b0ccfe7eadde98efb086b0a8d44f4f59716a81bd76c9bc4dd6af854b5b24ffb34ae75a2801c752e66995e0411a7ca36401
data/README.md CHANGED
@@ -36,7 +36,7 @@ for a real site.
36
36
 
37
37
  ```sh
38
38
 
39
- drawohara@drawohara.dev:ro[main] #=> tree public/ro/posts/almost-died-in-an-ice-cave/
39
+ drawohara@drawohara.dev:ro[main] #=> tree public/ro/posts/
40
40
  public/ro/posts/
41
41
  ├── almost-died-in-an-ice-cave.yml # ← metadata file at collection level
42
42
  └── almost-died-in-an-ice-cave/ # ← node directory
data/lib/ro/_lib.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Ro
2
- VERSION = '5.0.0' unless defined?(VERSION)
2
+ VERSION = '5.1.0' unless defined?(VERSION)
3
3
 
4
4
  class << self
5
5
  def version
data/lib/ro/asset.rb CHANGED
@@ -54,7 +54,8 @@ module Ro
54
54
 
55
55
  @name = @relative_path
56
56
 
57
- @url = @node.url_for(@relative_path)
57
+ # URL needs to include 'assets/' prefix since assets live in assets/ subdirectory
58
+ @url = @node.url_for(Path.relative('assets', @relative_path))
58
59
 
59
60
  super(@path)
60
61
  end