ro 5.1.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/lib/ro/_lib.rb +1 -1
 - data/lib/ro/methods.rb +2 -1
 - data/ro.gemspec +21 -1
 - 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 +9 -1
 
    
        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/lib/ro/_lib.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
         
     | 
    
        data/ro.gemspec
    CHANGED
    
    | 
         @@ -3,7 +3,7 @@ 
     | 
|
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            Gem::Specification::new do |spec|
         
     | 
| 
       5 
5 
     | 
    
         
             
              spec.name = "ro"
         
     | 
| 
       6 
     | 
    
         
            -
              spec.version = "5.1. 
     | 
| 
      
 6 
     | 
    
         
            +
              spec.version = "5.1.1"
         
     | 
| 
       7 
7 
     | 
    
         
             
              spec.required_ruby_version = '>= 3.0'
         
     | 
| 
       8 
8 
     | 
    
         
             
              spec.platform = Gem::Platform::RUBY
         
     | 
| 
       9 
9 
     | 
    
         
             
              spec.summary = "all your content in github, as god intended"
         
     | 
| 
         @@ -433,6 +433,26 @@ Gem::Specification::new do |spec| 
     | 
|
| 
       433 
433 
     | 
    
         
             
             "test/tmp/migration_test_1760941048.backup.20251020061728/posts/sample-post/assets/body.md",
         
     | 
| 
       434 
434 
     | 
    
         
             
             "test/tmp/migration_test_1760941048.backup.20251020061728/posts/sample-post/assets/image.jpg",
         
     | 
| 
       435 
435 
     | 
    
         
             
             "test/tmp/migration_test_1760941048.backup.20251020061728/posts/sample-post/attributes.yml",
         
     | 
| 
      
 436 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950",
         
     | 
| 
      
 437 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190",
         
     | 
| 
      
 438 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts",
         
     | 
| 
      
 439 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/assets-only",
         
     | 
| 
      
 440 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/assets-only/assets",
         
     | 
| 
      
 441 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/assets-only/assets/test.txt",
         
     | 
| 
      
 442 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/sample-post",
         
     | 
| 
      
 443 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/sample-post/assets",
         
     | 
| 
      
 444 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/sample-post/assets/body.md",
         
     | 
| 
      
 445 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/sample-post/assets/image.jpg",
         
     | 
| 
      
 446 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/sample-post/attributes.yml",
         
     | 
| 
      
 447 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/posts",
         
     | 
| 
      
 448 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/posts/assets-only",
         
     | 
| 
      
 449 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/posts/assets-only/assets",
         
     | 
| 
      
 450 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/posts/assets-only/assets/test.txt",
         
     | 
| 
      
 451 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/posts/sample-post",
         
     | 
| 
      
 452 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/posts/sample-post/assets",
         
     | 
| 
      
 453 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/posts/sample-post/assets/body.md",
         
     | 
| 
      
 454 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/posts/sample-post/assets/image.jpg",
         
     | 
| 
      
 455 
     | 
    
         
            +
             "test/tmp/migration_test_1760944190.backup.20251020070950/posts/sample-post/attributes.yml",
         
     | 
| 
       436 
456 
     | 
    
         
             
             "test/tmp/new_structure_test_1760746452",
         
     | 
| 
       437 
457 
     | 
    
         
             
             "test/tmp/new_structure_test_1760746452/mixed",
         
     | 
| 
       438 
458 
     | 
    
         
             
             "test/tmp/new_structure_test_1760746452/mixed/test-json.json",
         
     | 
| 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            test asset
         
     | 
    
        data/test/tmp/migration_test_1760944190.backup.20251020070950/posts/assets-only/assets/test.txt
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            test asset
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: ro
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 5.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 5.1.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Ara T. Howard
         
     | 
| 
         @@ -399,6 +399,14 @@ files: 
     | 
|
| 
       399 
399 
     | 
    
         
             
            - test/tmp/migration_test_1760941048.backup.20251020061728/posts/sample-post/assets/body.md
         
     | 
| 
       400 
400 
     | 
    
         
             
            - test/tmp/migration_test_1760941048.backup.20251020061728/posts/sample-post/assets/image.jpg
         
     | 
| 
       401 
401 
     | 
    
         
             
            - test/tmp/migration_test_1760941048.backup.20251020061728/posts/sample-post/attributes.yml
         
     | 
| 
      
 402 
     | 
    
         
            +
            - test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/assets-only/assets/test.txt
         
     | 
| 
      
 403 
     | 
    
         
            +
            - test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/sample-post/assets/body.md
         
     | 
| 
      
 404 
     | 
    
         
            +
            - test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/sample-post/assets/image.jpg
         
     | 
| 
      
 405 
     | 
    
         
            +
            - test/tmp/migration_test_1760944190.backup.20251020070950/migration_test_1760944190/posts/sample-post/attributes.yml
         
     | 
| 
      
 406 
     | 
    
         
            +
            - test/tmp/migration_test_1760944190.backup.20251020070950/posts/assets-only/assets/test.txt
         
     | 
| 
      
 407 
     | 
    
         
            +
            - test/tmp/migration_test_1760944190.backup.20251020070950/posts/sample-post/assets/body.md
         
     | 
| 
      
 408 
     | 
    
         
            +
            - test/tmp/migration_test_1760944190.backup.20251020070950/posts/sample-post/assets/image.jpg
         
     | 
| 
      
 409 
     | 
    
         
            +
            - test/tmp/migration_test_1760944190.backup.20251020070950/posts/sample-post/attributes.yml
         
     | 
| 
       402 
410 
     | 
    
         
             
            - test/tmp/new_structure_test_1760746452/mixed/test-json.json
         
     | 
| 
       403 
411 
     | 
    
         
             
            - test/tmp/new_structure_test_1760746452/mixed/test-yaml.yml
         
     | 
| 
       404 
412 
     | 
    
         
             
            - test/tmp/new_structure_test_1760746452/posts/metadata-only.yml
         
     |