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.
- checksums.yaml +4 -4
 - data/README.md +1 -1
 - data/lib/ro/_lib.rb +1 -1
 - data/lib/ro/asset.rb +2 -1
 - data/lib/ro/methods.rb +2 -1
 - data/public/api/ro/index-1.json +82 -148
 - data/public/api/ro/index.json +82 -148
 - data/public/api/ro/nerd/fastest-possible-embeddings/index.json +7 -8
 - data/public/api/ro/nerd/ima/index.json +3 -4
 - data/public/api/ro/nerd/index/index.json +5 -6
 - data/public/api/ro/nerd/index-1.json +15 -18
 - data/public/api/ro/nerd/index.json +15 -18
 - data/public/api/ro/pages/contact/index.json +4 -5
 - data/public/api/ro/pages/cv/index.json +3 -4
 - data/public/api/ro/pages/disco/index.json +9 -10
 - data/public/api/ro/pages/index/index.json +2 -3
 - data/public/api/ro/pages/index-1.json +25 -82
 - data/public/api/ro/pages/index.json +25 -82
 - data/public/api/ro/pages/jess/index.json +4 -5
 - data/public/api/ro/pages/now/index.json +3 -4
 - data/public/api/ro/posts/almost-died-in-an-ice-cave/index.json +21 -22
 - data/public/api/ro/posts/facebook-and-global-extremism/index.json +8 -9
 - data/public/api/ro/posts/index-1.json +42 -48
 - data/public/api/ro/posts/index.json +42 -48
 - data/public/api/ro/posts/lemmings-considered-harmful/index.json +3 -4
 - data/public/api/ro/posts/lost-in-the-desert/index.json +3 -4
 - data/public/api/ro/posts/mission/index.json +3 -4
 - data/public/api/ro/posts/return-your-laptop/index.json +4 -5
 - data/ro.gemspec +61 -3
 - data/test/tmp/migration_test_1760940939.backup.20251020061539/migration_test_1760940939/posts/assets-only/assets/test.txt +1 -0
 - data/test/tmp/migration_test_1760940939.backup.20251020061539/migration_test_1760940939/posts/sample-post/assets/body.md +5 -0
 - data/test/tmp/migration_test_1760940939.backup.20251020061539/migration_test_1760940939/posts/sample-post/assets/image.jpg +2 -0
 - data/test/tmp/migration_test_1760940939.backup.20251020061539/migration_test_1760940939/posts/sample-post/attributes.yml +2 -0
 - data/test/tmp/migration_test_1760940939.backup.20251020061539/posts/assets-only/assets/test.txt +1 -0
 - data/test/tmp/migration_test_1760940939.backup.20251020061539/posts/sample-post/assets/body.md +5 -0
 - data/test/tmp/migration_test_1760940939.backup.20251020061539/posts/sample-post/assets/image.jpg +2 -0
 - data/test/tmp/migration_test_1760940939.backup.20251020061539/posts/sample-post/attributes.yml +2 -0
 - data/test/tmp/migration_test_1760941048.backup.20251020061728/migration_test_1760941048/posts/assets-only/assets/test.txt +1 -0
 - data/test/tmp/migration_test_1760941048.backup.20251020061728/migration_test_1760941048/posts/sample-post/assets/body.md +5 -0
 - data/test/tmp/migration_test_1760941048.backup.20251020061728/migration_test_1760941048/posts/sample-post/assets/image.jpg +2 -0
 - data/test/tmp/migration_test_1760941048.backup.20251020061728/migration_test_1760941048/posts/sample-post/attributes.yml +2 -0
 - data/test/tmp/migration_test_1760941048.backup.20251020061728/posts/assets-only/assets/test.txt +1 -0
 - data/test/tmp/migration_test_1760941048.backup.20251020061728/posts/sample-post/assets/body.md +5 -0
 - data/test/tmp/migration_test_1760941048.backup.20251020061728/posts/sample-post/assets/image.jpg +2 -0
 - data/test/tmp/migration_test_1760941048.backup.20251020061728/posts/sample-post/attributes.yml +2 -0
 - data/test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/assets-only/assets/test.txt +1 -0
 - data/test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/sample-post/assets/body.md +5 -0
 - data/test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/sample-post/assets/image.jpg +2 -0
 - data/test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/sample-post/attributes.yml +2 -0
 - data/test/tmp/migration_test_1760944190.backup.20251020070950/posts/assets-only/assets/test.txt +1 -0
 - data/test/tmp/migration_test_1760944190.backup.20251020070950/posts/sample-post/assets/body.md +5 -0
 - data/test/tmp/migration_test_1760944190.backup.20251020070950/posts/sample-post/assets/image.jpg +2 -0
 - data/test/tmp/migration_test_1760944190.backup.20251020070950/posts/sample-post/attributes.yml +2 -0
 - metadata +26 -3
 - 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:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 77bdeded7cbfb7b5bf8f1f855bcb7ebff9e09aa2fc06e6f506f4d8c01d62b51c
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 43202174de0fee59b7309b92ff29975b77f5a1b580a96659eda54ffa3670543a
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 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/ 
     | 
| 
      
 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
    
    
    
        data/lib/ro/asset.rb
    CHANGED
    
    
    
        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 
     | 
    
         
            -
                   
     | 
| 
      
 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
         
     |