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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/betters3tui.rb +5 -6
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa5b025b660788c753b7adbacca22374707e258baff4769fe299010334afb512
|
|
4
|
+
data.tar.gz: '008dd43e86523596c47162d9d9af3fff61eec2c51a53b1b550f3923d3063ef19'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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 <<
|
|
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
|