ro 5.0.0 → 5.1.1

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 (55) 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/lib/ro/methods.rb +2 -1
  6. data/public/api/ro/index-1.json +82 -148
  7. data/public/api/ro/index.json +82 -148
  8. data/public/api/ro/nerd/fastest-possible-embeddings/index.json +7 -8
  9. data/public/api/ro/nerd/ima/index.json +3 -4
  10. data/public/api/ro/nerd/index/index.json +5 -6
  11. data/public/api/ro/nerd/index-1.json +15 -18
  12. data/public/api/ro/nerd/index.json +15 -18
  13. data/public/api/ro/pages/contact/index.json +4 -5
  14. data/public/api/ro/pages/cv/index.json +3 -4
  15. data/public/api/ro/pages/disco/index.json +9 -10
  16. data/public/api/ro/pages/index/index.json +2 -3
  17. data/public/api/ro/pages/index-1.json +25 -82
  18. data/public/api/ro/pages/index.json +25 -82
  19. data/public/api/ro/pages/jess/index.json +4 -5
  20. data/public/api/ro/pages/now/index.json +3 -4
  21. data/public/api/ro/posts/almost-died-in-an-ice-cave/index.json +21 -22
  22. data/public/api/ro/posts/facebook-and-global-extremism/index.json +8 -9
  23. data/public/api/ro/posts/index-1.json +42 -48
  24. data/public/api/ro/posts/index.json +42 -48
  25. data/public/api/ro/posts/lemmings-considered-harmful/index.json +3 -4
  26. data/public/api/ro/posts/lost-in-the-desert/index.json +3 -4
  27. data/public/api/ro/posts/mission/index.json +3 -4
  28. data/public/api/ro/posts/return-your-laptop/index.json +4 -5
  29. data/ro.gemspec +61 -3
  30. data/test/tmp/migration_test_1760940939.backup.20251020061539/migration_test_1760940939/posts/assets-only/assets/test.txt +1 -0
  31. data/test/tmp/migration_test_1760940939.backup.20251020061539/migration_test_1760940939/posts/sample-post/assets/body.md +5 -0
  32. data/test/tmp/migration_test_1760940939.backup.20251020061539/migration_test_1760940939/posts/sample-post/assets/image.jpg +2 -0
  33. data/test/tmp/migration_test_1760940939.backup.20251020061539/migration_test_1760940939/posts/sample-post/attributes.yml +2 -0
  34. data/test/tmp/migration_test_1760940939.backup.20251020061539/posts/assets-only/assets/test.txt +1 -0
  35. data/test/tmp/migration_test_1760940939.backup.20251020061539/posts/sample-post/assets/body.md +5 -0
  36. data/test/tmp/migration_test_1760940939.backup.20251020061539/posts/sample-post/assets/image.jpg +2 -0
  37. data/test/tmp/migration_test_1760940939.backup.20251020061539/posts/sample-post/attributes.yml +2 -0
  38. data/test/tmp/migration_test_1760941048.backup.20251020061728/migration_test_1760941048/posts/assets-only/assets/test.txt +1 -0
  39. data/test/tmp/migration_test_1760941048.backup.20251020061728/migration_test_1760941048/posts/sample-post/assets/body.md +5 -0
  40. data/test/tmp/migration_test_1760941048.backup.20251020061728/migration_test_1760941048/posts/sample-post/assets/image.jpg +2 -0
  41. data/test/tmp/migration_test_1760941048.backup.20251020061728/migration_test_1760941048/posts/sample-post/attributes.yml +2 -0
  42. data/test/tmp/migration_test_1760941048.backup.20251020061728/posts/assets-only/assets/test.txt +1 -0
  43. data/test/tmp/migration_test_1760941048.backup.20251020061728/posts/sample-post/assets/body.md +5 -0
  44. data/test/tmp/migration_test_1760941048.backup.20251020061728/posts/sample-post/assets/image.jpg +2 -0
  45. data/test/tmp/migration_test_1760941048.backup.20251020061728/posts/sample-post/attributes.yml +2 -0
  46. data/test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/assets-only/assets/test.txt +1 -0
  47. data/test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/sample-post/assets/body.md +5 -0
  48. data/test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/sample-post/assets/image.jpg +2 -0
  49. data/test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/sample-post/attributes.yml +2 -0
  50. data/test/tmp/migration_test_1760944190.backup.20251020070950/posts/assets-only/assets/test.txt +1 -0
  51. data/test/tmp/migration_test_1760944190.backup.20251020070950/posts/sample-post/assets/body.md +5 -0
  52. data/test/tmp/migration_test_1760944190.backup.20251020070950/posts/sample-post/assets/image.jpg +2 -0
  53. data/test/tmp/migration_test_1760944190.backup.20251020070950/posts/sample-post/attributes.yml +2 -0
  54. metadata +26 -3
  55. 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: 77bdeded7cbfb7b5bf8f1f855bcb7ebff9e09aa2fc06e6f506f4d8c01d62b51c
4
+ data.tar.gz: 43202174de0fee59b7309b92ff29975b77f5a1b580a96659eda54ffa3670543a
5
5
  SHA512:
6
- metadata.gz: 4f625e44529a3e41f0d9e1f7ddd324ab439be33e364487bf48a8c9d01611694143f80d5747b0432fea673a2a598692bdbb760306a7a6370f5abb006c3ef23a1b
7
- data.tar.gz: be8bf1fdb7ea9e0ba6b66095c767c6ce4d68c3680cab4fbe8c01cf1e5f85aad011542c94c8478bbf35dab2ec431befd0e7c343a06ff53b54386049e7f42fb013
6
+ metadata.gz: 23b4449ae106a7ee06354831e5ee4e4a8882965daa4a4ea909121c235095df74e27a06f767effef0929c8032a34468b99adcb7d7e1673681141de738d5d4b9f7
7
+ data.tar.gz: 5fe310459d13feaeb0a30600da8af8d2b184e21df58f22f63a7630f41d7f8e60e6b1b0588dc834961d21ed420959566c3654f620ca7902c368e48b7361f2eb87
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.1' 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
data/lib/ro/methods.rb CHANGED
@@ -5,7 +5,8 @@ module Ro
5
5
  # v
6
6
  def cast(which, arg, *args)
7
7
  which = which.to_s
8
- values = [arg, *args].join(',').scan(/[^,\s]+/)
8
+ # Split on commas only, not whitespace, to preserve datetime strings
9
+ values = [arg, *args].flat_map { |v| v.to_s.split(',') }.map(&:strip).reject(&:empty?)
9
10
 
10
11
  list_of = which.match(/^list_of_(.+)$/)
11
12
  which = list_of[1] if list_of