rufio 0.90.2 → 0.91.0

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: c00798dbb11b1a2c8d638fed1564515f48d6b8b8e6e1533c54a4a9b9ff889d13
4
- data.tar.gz: f25b006d69c87f9cc856168b03e12a0d1e35597854ae9e8aaa6e79b37f072423
3
+ metadata.gz: 0c50fc72fd43046f6fb861b05ff378c5122ebfa1bba180463340a5f1e906ad3f
4
+ data.tar.gz: 7e5fcc725fafc5ceeeb90433a5cb767e3d0c98431a0b5bdb554f727a99fb50f5
5
5
  SHA512:
6
- metadata.gz: b0cf35c4632d1e3259152ec1ae6276295aa3a34afc9809f7e9ab145634832e2b0e489404603bc6a668a1b1d33dd75ed321acbd75ed616fb9583698c9358d5898
7
- data.tar.gz: b4eac6784961b3ac937c2518412654d8e2debaeeeb7edbd84101a63d42430461e25659e502ff041b577f35e4f964bb8262b3eea349dc999380bf59be1221b38d
6
+ metadata.gz: 5eb8c2b7955f69c822d58aaf976be1669aa446d12eacbac4fe24c0e152ffd6d79631488e6c0debdb7e232b477321ee4d5617873e06be5da1999704b28fe4554f
7
+ data.tar.gz: fd71f1119f3ae724ecd8c220c6c9401a7dfd4d4fa40108aa2d5320afd23a2c181589224cbd157a28f8cbbcad847f48285bc4108cd583cec93230e74466cdafd0
data/CHANGELOG.md CHANGED
@@ -5,6 +5,20 @@ All notable changes to rufio will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.91.0] - 2026-04-12
9
+
10
+ ### Changed
11
+ - **Limit status bar path display to 2 parent directories above current**: Fixes overly long path display when navigating deep directory trees
12
+ - e.g. `/home/user/projects/ruby/myapp` → `…/ruby/myapp`
13
+ - Paths with 3 or fewer segments are shown in full
14
+
15
+ ### Fixed
16
+ - **Windows CI: 36 test failures resolved**
17
+ - `test_file_opener.rb`: Replaced hardcoded `/tmp/` paths with `Dir.mktmpdir`
18
+ - Added "Install:" prefix to `health.install_guide` message
19
+ - Added `skip` guards for Windows-incompatible tests (`.sh` execution, Unix paths, `chmod`, snapshots, etc.)
20
+ - **Windows CI: `pastel` gem not found when running `test_windows_console_input.rb`**: Changed run command from `ruby` to `bundle exec ruby`
21
+
8
22
  ## [0.90.2] - 2026-04-11
9
23
 
10
24
  ### Added
@@ -621,7 +621,7 @@ module Rufio
621
621
  current_x += 1
622
622
 
623
623
  path_end = @screen_width - 1 - version_w
624
- path_str = " #{current_path} "
624
+ path_str = " #{shorten_path(current_path)} "
625
625
  path_str.each_char do |char|
626
626
  break if current_x >= path_end
627
627
  char_w = TextUtils.display_width(char)
@@ -761,5 +761,16 @@ module Rufio
761
761
 
762
762
  @tab_mode_manager.switch_to(current_mode) if @tab_mode_manager.current_mode != current_mode
763
763
  end
764
+
765
+ # パスを最大2階層上まで表示する短縮形式に変換する
766
+ # 例: /a/b/c/d/e → …/c/d/e
767
+ def shorten_path(path, max_parents = 2)
768
+ sep = '/'
769
+ parts = path.gsub('\\', sep).split(sep).reject(&:empty?)
770
+ # current + 2 parents = 3 segments まではフルパスを表示
771
+ return path if parts.length <= max_parents + 1
772
+
773
+ "…/#{parts.last(max_parents + 1).join(sep)}"
774
+ end
764
775
  end
765
776
  end
data/lib/rufio/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rufio
4
- VERSION = '0.90.2'
4
+ VERSION = '0.91.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rufio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.90.2
4
+ version: 0.91.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - masisz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-11 00:00:00.000000000 Z
11
+ date: 2026-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: io-console