sneakers-queue-migrator 0.1.5 → 0.1.6

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: 07b21432931960e830cbb956ab0e53406657147d9674f495ef74237f114e6fc3
4
- data.tar.gz: aa60dd0d5714f56410240567c0a63da1fa937eefd6d3ad706bdb8a6b35cd2bdc
3
+ metadata.gz: 5828ad577fd278f6a7aea2c664dc830f16d223718123ff1c777277a1ae3aa1fa
4
+ data.tar.gz: 33679288215dca825e5f16af92ddf95877e9f0655a2a8e1a73b702ec5f3a3d55
5
5
  SHA512:
6
- metadata.gz: af7f10c370532ceb2f76d908bd86fc5d5743cb1c6b491de59ef2eb3fd6749b19ccd6da1a44368c398f51281ce6440e81abd3aa6fb5d3a2f7110de84d5507b99a
7
- data.tar.gz: 772f61353f22feea63646cebe38eaf2c6f0c2864a0041b74f54a6eba88cbf01a2c569780b3ac379899c61b6d8137253187e1376f02bfeeac53bf0a707f9241af
6
+ metadata.gz: bfa2182dd468ce08ee611300fb92c1d7f1541bcf2db0e5214b1b1fd47e0a9d36ccec11998800dd9b8a6abdcacb3e247d49a664f173156669747ae8fdf735d203
7
+ data.tar.gz: cccfd10de6106480a89fbe6ca70351e0ead63e0ca2ec593ad8e3aeecb51ff64a25b0b6896c331a433fb6efeeb0ae73325cd933a23c665281f184ef61439d8246
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sneakers-queue-migrator (0.1.5)
4
+ sneakers-queue-migrator (0.1.6)
5
5
  bunny (~> 2.0)
6
6
  json (~> 2.0)
7
7
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sneakers
4
4
  module Migrator
5
- VERSION = "0.1.5"
5
+ VERSION = "0.1.6"
6
6
  end
7
7
  end
@@ -1,3 +1,4 @@
1
+ # rubocop:disable Style/StringConcatenation
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require_relative "migrator/version"
@@ -176,7 +177,8 @@ module Sneakers
176
177
  # Remove comments and excessive whitespace
177
178
  code = str.gsub(/#.*$/, "").gsub(/\n/, " ").gsub(/\s+/, " ")
178
179
  # Convert Ruby %w[ ... ] and %w( ... ) to array syntax for YAML
179
- code = code.gsub(/%w[\[(](.*?)[\])]/) do
180
+ # Also handle %i[ ... ] for symbol arrays
181
+ code = code.gsub(/%[wi][\[(](.*?)[\])]/) do
180
182
  words = ::Regexp.last_match(1).strip.split(/\s+/)
181
183
  "[" + words.map { |w| "\"#{w}\"" }.join(", ") + "]" # rubocop:disable Style/StringConcatenation
182
184
  end
@@ -424,3 +426,5 @@ module Sneakers
424
426
  end
425
427
  end
426
428
  end
429
+
430
+ # rubocop:enable Style/StringConcatenation
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sneakers-queue-migrator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Gane