betters3tui 0.2.8 → 0.2.10

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/lib/betters3tui.rb +5 -6
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f163b7db0b942399b20d4282c2f1f211a3f29b22d91c3e96d8cec144aa974725
4
- data.tar.gz: 0d32d3a731580847b1a2cc36430c564876c90dc62f59957018f5c211ae965b9c
3
+ metadata.gz: aa5b025b660788c753b7adbacca22374707e258baff4769fe299010334afb512
4
+ data.tar.gz: '008dd43e86523596c47162d9d9af3fff61eec2c51a53b1b550f3923d3063ef19'
5
5
  SHA512:
6
- metadata.gz: 2c1f146b0ac1cb24726186f5dc9627d1bbf473181bc786a4690b7a82e8ee670926eb91ac9bb2e813e0ac48c25ef360b2030574eb0549521d636f58950ccad7e5
7
- data.tar.gz: 5de653abe8d434b5379320142c0b5c148b23ed470cd50ee6960edd911dde7a7d2d1a10bc3001d9b0b57354603a89219f1e056f419c21d610c0dac552cf2abf99
6
+ metadata.gz: c2c6e328742e3c0981a65a8d7a124f3c1366521b9f0b33ce566d41fd5229292ac92324add2fcd91065a9ba33b5d8df83ca1c3b1fe476c320ceeac62f4e4959ac
7
+ data.tar.gz: 5abec595d66dfffc5a09f10f3ee3f6aad48c798e83c03d2c802d04273a520a4d4889a0161c99d39428a8ab267320ade2efc4b8f8ac7af46e6feeb0355ffc453a
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.2.9] - 2026-02-28
6
+
7
+ ### Fixed
8
+ - **Win32API dependency** - Added missing `win32api` gem requirement and `require 'win32api'` statement for Windows terminal support
9
+
5
10
  ## [0.2.8] - 2026-02-28
6
11
 
7
12
  ### Fixed
@@ -47,6 +52,7 @@ All notable changes to this project will be documented in this file.
47
52
  - File download capability
48
53
  - Interactive keyboard navigation
49
54
 
55
+ [0.2.9]: https://github.com/adiprnm/betters3tui/compare/v0.2.8...v0.2.9
50
56
  [0.2.8]: https://github.com/adiprnm/betters3tui/compare/v0.2.7...v0.2.8
51
57
  [0.2.7]: https://github.com/adiprnm/betters3tui/compare/v0.2.6...v0.2.7
52
58
  [0.2.6]: https://github.com/adiprnm/betters3tui/compare/v0.2.5...v0.2.6
data/lib/betters3tui.rb CHANGED
@@ -1,13 +1,15 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- VERSION = "0.2.8"
4
+ VERSION = "0.2.10"
5
5
 
6
6
  require "json"
7
7
  require "aws-sdk-s3"
8
8
  require_relative "tui"
9
9
  require_relative "fuzzy"
10
10
 
11
+ DirEntry = Struct.new(:key, :size, :last_modified)
12
+
11
13
  PROFILES_PATH = File.expand_path("~/.config/betters3tui/profiles.json")
12
14
  DOWNLOADS_PATH = File.expand_path("~/Downloads")
13
15
 
@@ -105,6 +107,7 @@ class S3Browser
105
107
  def setup_terminal
106
108
  if windows?
107
109
  require 'io/console'
110
+ require 'win32api'
108
111
  @console_mode = nil
109
112
  begin
110
113
  # Get the Windows console handle and save current mode
@@ -1289,11 +1292,7 @@ class S3Browser
1289
1292
 
1290
1293
  # Add common prefixes (directories)
1291
1294
  response.common_prefixes&.each do |prefix|
1292
- @objects << OpenStruct.new(
1293
- key: prefix.prefix,
1294
- size: 0,
1295
- last_modified: nil
1296
- )
1295
+ @objects << DirEntry.new(prefix.prefix, 0, nil)
1297
1296
  end
1298
1297
 
1299
1298
  # Add actual objects
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: betters3tui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adi Purnama