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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce865a6e0af863e98426c6a5822464695d0baf15ab6ebc1b7e0acdbf88cdc51a
4
- data.tar.gz: 8e20b5b872b2aef30ae6ff524d287266d8d720ff7ffb63c22513160aab773b72
3
+ metadata.gz: 77bdeded7cbfb7b5bf8f1f855bcb7ebff9e09aa2fc06e6f506f4d8c01d62b51c
4
+ data.tar.gz: 43202174de0fee59b7309b92ff29975b77f5a1b580a96659eda54ffa3670543a
5
5
  SHA512:
6
- metadata.gz: 8b32bd17c787b5969801e7fb72146802aaf8758a0003994eb5363b821508fab65128b4d7dfe614c5df2fee1a5f507cf4c88aaeaa37df4799e11303b87e486600
7
- data.tar.gz: a6dfe0e278908e892f8c79c15003c9b0ccfe7eadde98efb086b0a8d44f4f59716a81bd76c9bc4dd6af854b5b24ffb34ae75a2801c752e66995e0411a7ca36401
6
+ metadata.gz: 23b4449ae106a7ee06354831e5ee4e4a8882965daa4a4ea909121c235095df74e27a06f767effef0929c8032a34468b99adcb7d7e1673681141de738d5d4b9f7
7
+ data.tar.gz: 5fe310459d13feaeb0a30600da8af8d2b184e21df58f22f63a7630f41d7f8e60e6b1b0588dc834961d21ed420959566c3654f620ca7902c368e48b7361f2eb87
data/lib/ro/_lib.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Ro
2
- VERSION = '5.1.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/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
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.0"
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,5 @@
1
+ # Sample Post
2
+
3
+ This is the body content of the sample post in the old structure.
4
+
5
+ It has multiple paragraphs and should be treated as content, not an asset.
@@ -0,0 +1,2 @@
1
+ FAKE_JPEG_DATA_FOR_TESTING_PURPOSES_ONLY
2
+ This is a test file representing an image asset in the old structure.
@@ -0,0 +1,2 @@
1
+ title: Sample Post (Old Structure)
2
+ author: Test Author
@@ -0,0 +1,5 @@
1
+ # Sample Post
2
+
3
+ This is the body content of the sample post in the old structure.
4
+
5
+ It has multiple paragraphs and should be treated as content, not an asset.
@@ -0,0 +1,2 @@
1
+ FAKE_JPEG_DATA_FOR_TESTING_PURPOSES_ONLY
2
+ This is a test file representing an image asset in the old structure.
@@ -0,0 +1,2 @@
1
+ title: Sample Post (Old Structure)
2
+ author: Test Author
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.0
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