tty-pager 0.13.0 → 0.14.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/LICENSE.txt +1 -1
- data/lib/tty/pager/system.rb +10 -3
- data/lib/tty/pager/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd9cf11b53f54bc92e50fb26df8d79da6939036e31d535dfcaed127c6cce1670
|
4
|
+
data.tar.gz: 268dd645947a90ac2e25a2df885ea4809c030eaa3b8ce3cc470f576e43b6e870
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb2e07da311cb829f9a99355424621e2394eb0d79511988c3277374ceeaaf6b59a78fa876c2b6d04338a8bc2ff992e62c9be319113df92b4c23ecec42e8aa892
|
7
|
+
data.tar.gz: e762220845ff96c7b9214db592f00a2e9757befd5490092886337e788b8d69bfbbd439e7711b23aec68bcb27e3aae3ab4ede2b83da53c9f31ec3271bdf0ec394
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## [v0.14.0] - 2020-10-15
|
4
|
+
|
5
|
+
### Changed
|
6
|
+
* Change to update strings dependency
|
7
|
+
* Change to allow the pager to be specified via an absolute path (@WilliamMcCumstie)
|
8
|
+
|
9
|
+
### Fixed
|
10
|
+
* Fix name resolution with TTY::File
|
11
|
+
|
3
12
|
## [v0.13.0] - 2020-05-30
|
4
13
|
|
5
14
|
### Added
|
@@ -128,6 +137,7 @@
|
|
128
137
|
|
129
138
|
* Initial release
|
130
139
|
|
140
|
+
[v0.14.0]: https://github.com/piotrmurach/tty-pager/compare/v0.13.0...v0.14.0
|
131
141
|
[v0.13.0]: https://github.com/piotrmurach/tty-pager/compare/v0.12.1...v0.13.0
|
132
142
|
[v0.12.1]: https://github.com/piotrmurach/tty-pager/compare/v0.12.0...v0.12.1
|
133
143
|
[v0.12.0]: https://github.com/piotrmurach/tty-pager/compare/v0.11.0...v0.12.0
|
data/LICENSE.txt
CHANGED
data/lib/tty/pager/system.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "open3"
|
4
|
+
require 'pathname'
|
4
5
|
|
5
6
|
require_relative "abstract"
|
6
7
|
|
@@ -24,9 +25,15 @@ module TTY
|
|
24
25
|
# @api private
|
25
26
|
def self.command_exist?(command)
|
26
27
|
exts = ENV.fetch("PATHEXT", "").split(::File::PATH_SEPARATOR)
|
27
|
-
|
28
|
-
|
29
|
-
|
28
|
+
if Pathname.new(command).absolute?
|
29
|
+
::File.exist?(command) ||
|
30
|
+
exts.any? { |ext| ::File.exist?("#{command}#{ext}")}
|
31
|
+
else
|
32
|
+
ENV.fetch("PATH", "").split(::File::PATH_SEPARATOR).any? do |dir|
|
33
|
+
file = ::File.join(dir, command)
|
34
|
+
::File.exist?(file) ||
|
35
|
+
exts.any? { |ext| ::File.exist?("#{file}#{ext}") }
|
36
|
+
end
|
30
37
|
end
|
31
38
|
end
|
32
39
|
|
data/lib/tty/pager/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tty-pager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Murach
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-screen
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.2.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,7 +86,7 @@ files:
|
|
86
86
|
- lib/tty/pager/null.rb
|
87
87
|
- lib/tty/pager/system.rb
|
88
88
|
- lib/tty/pager/version.rb
|
89
|
-
homepage: https://
|
89
|
+
homepage: https://ttytoolkit.org
|
90
90
|
licenses:
|
91
91
|
- MIT
|
92
92
|
metadata:
|
@@ -94,7 +94,7 @@ metadata:
|
|
94
94
|
bug_tracker_uri: https://github.com/piotrmurach/tty-pager/issues
|
95
95
|
changelog_uri: https://github.com/piotrmurach/tty-pager/blob/master/CHANGELOG.md
|
96
96
|
documentation_uri: https://www.rubydoc.info/gems/tty-pager
|
97
|
-
homepage_uri: https://
|
97
|
+
homepage_uri: https://ttytoolkit.org
|
98
98
|
source_code_uri: https://github.com/piotrmurach/tty-pager
|
99
99
|
post_install_message:
|
100
100
|
rdoc_options: []
|