sonicop 26.10.100 → 26.10.101

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: 285e604b1e735213ca1bdce6dad917a6dbb76da0d38bc62e0218f59e68c1a169
4
- data.tar.gz: 5c9102c4ac7755f5acc714fcb9284808832519f1a7525a6be0b989e3b13bf83c
3
+ metadata.gz: f9c80e395bf1f70e4d01e6de34555dc7826ef0d91501bccdfd4971f2ed1f60bc
4
+ data.tar.gz: 9b4623e6bf57a0e0951166908d49ff855d099659c6c190a76079f9db3dc80372
5
5
  SHA512:
6
- metadata.gz: dabb090a8cf6478a557427fb1e19e5723b3ab6a2392e6d2bb2b1e31da5330b1c33ffa1ba60fe37ac3f933042bbe9939ceea893eb40f3163f2b070536b39208b3
7
- data.tar.gz: 98d0d01140519fd3d9a7a78f0191e332521fa244e81795f21e8efbe863800d5641b17001dfb92f1ababfc28eee6d3208dc2d270979f5ad3facbc3722a40103cc
6
+ metadata.gz: fd146172300979438b6d0eea4ccfb40a22083173a48b43ab4cf648725251d2ed3a81a73b5dd145925bae667df01f74a0a35282a1b41dbf9eb6d84a87e40edf7b
7
+ data.tar.gz: 8d8bbac909ce0a9163e00f6c4f8bdc89a9efaed8f4be9a87d40a526b6775ff46eb5839b6a8e40f4706607adc632475e8df8c741e71645af217620e5d29b397bb
data/Cargo.lock CHANGED
@@ -1265,7 +1265,7 @@ checksum = "5b3dc8af474f516a851ff4bd12db780f948b9250ad37211e4eec0bccea54e01b"
1265
1265
 
1266
1266
  [[package]]
1267
1267
  name = "sonicop"
1268
- version = "26.10.100"
1268
+ version = "26.10.101"
1269
1269
  dependencies = [
1270
1270
  "anyhow",
1271
1271
  "assert_cmd",
data/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "sonicop"
3
- version = "26.10.100"
3
+ version = "26.10.101"
4
4
  edition = "2024"
5
5
  rust-version = "1.98"
6
6
  description = "A fast, native RuboCop-compatible Ruby linter and formatter"
@@ -8,6 +8,8 @@ require 'shellwords'
8
8
 
9
9
  cargo = find_executable('cargo')
10
10
  abort 'cargo is required to build the sonicop source gem' unless cargo
11
+ # Windows の区切りを Make と sh が別々に解釈しないよう、Ruby の絶対パス表記へ揃える。
12
+ cargo = File.expand_path(cargo)
11
13
 
12
14
  root = File.expand_path('../..', __dir__)
13
15
  executable = Gem.win_platform? ? 'sonicop.exe' : 'sonicop'
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Generated from Cargo.toml by `rake version:sync`. Do not edit by hand.
4
4
  module Sonicop
5
- VERSION = '26.10.100'
5
+ VERSION = '26.10.101'
6
6
  end
data/src/engine.rs CHANGED
@@ -1634,9 +1634,11 @@ pub fn discover_targets_with_store(
1634
1634
  }
1635
1635
  walked.push(normalized_target_path(path));
1636
1636
  }
1637
- // Only what a directory expanded to is put in order. RuboCop keeps the arguments themselves
1638
- // in the order they were given, so `sonicop b.rb a.rb` inspects `b.rb` first -- which is what
1639
- // an editor passing one file at a time, or a script feeding a worklist, relies on.
1637
+ // 本家はディレクトリの展開を表示パスの文字列順にし、明示引数の順は保持する。
1638
+ // Windows の区切りのままでは、foo1/bar.rb が foo/bar.rb より先になる。
1639
+ #[cfg(windows)]
1640
+ walked.sort_by_cached_key(|path| path.to_string_lossy().replace('\\', "/"));
1641
+ #[cfg(not(windows))]
1640
1642
  walked.sort_by(|left, right| left.to_string_lossy().cmp(&right.to_string_lossy()));
1641
1643
  targets.append(&mut walked);
1642
1644
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sonicop
3
3
  version: !ruby/object:Gem::Version
4
- version: 26.10.100
4
+ version: 26.10.101
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yohei