tty-pager 0.13.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: adbdf02c80e21f7b2c2fc7723af3a00d268c8a57bffd321e8ed5126e6b7cc120
4
- data.tar.gz: 4ff28aeef0acff9e54343e498e890bb2ffde576b771b4172326ef3dcdda67fc3
3
+ metadata.gz: fd9cf11b53f54bc92e50fb26df8d79da6939036e31d535dfcaed127c6cce1670
4
+ data.tar.gz: 268dd645947a90ac2e25a2df885ea4809c030eaa3b8ce3cc470f576e43b6e870
5
5
  SHA512:
6
- metadata.gz: 5614a278d417950a369489d6480203150da012ea19c1d2e1c564ac989d3f3c32074ce5f7ae61952536ec758f7602512415b63027f891e73b4d96151a6e9b02e4
7
- data.tar.gz: ec0c2b331343284877e199e1f1672776e967f58f58b1b608ae73653f84905c6214b30990bb928b3f912f1d345dfce42dcfcc5947fd1fdd4f13330705844accaa
6
+ metadata.gz: fb2e07da311cb829f9a99355424621e2394eb0d79511988c3277374ceeaaf6b59a78fa876c2b6d04338a8bc2ff992e62c9be319113df92b4c23ecec42e8aa892
7
+ data.tar.gz: e762220845ff96c7b9214db592f00a2e9757befd5490092886337e788b8d69bfbbd439e7711b23aec68bcb27e3aae3ab4ede2b83da53c9f31ec3271bdf0ec394
@@ -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
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015 Piotr Murach
1
+ Copyright (c) 2015 Piotr Murach (piotrmurach.com)
2
2
 
3
3
  MIT License
4
4
 
@@ -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
- ENV.fetch("PATH", "").split(File::PATH_SEPARATOR).any? do |dir|
28
- file = ::File.join(dir, command)
29
- ::File.exist?(file) || exts.any? { |ext| ::File.exist?("#{file}#{ext}") }
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TTY
4
4
  module Pager
5
- VERSION = "0.13.0"
5
+ VERSION = "0.14.0"
6
6
  end # Pager
7
7
  end # TTY
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.13.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-05-30 00:00:00.000000000 Z
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.1.8
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.1.8
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://piotrmurach.github.io/tty
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://piotrmurach.github.io/tty
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: []