listpager 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/mkrf_conf.rb +23 -0
- data/lib/listpager/client_terminal.rb +1 -1
- data/lib/listpager/color.rb +1 -1
- data/lib/listpager/list.rb +1 -1
- data/lib/listpager/ncurses.rb +8 -0
- data/lib/listpager/scrollbar.rb +2 -0
- data/lib/listpager/version.rb +1 -1
- data/listpager.gemspec +11 -1
- metadata +3 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99c5f337edc88d63d288790ab7b3d3340a07c8ff
|
4
|
+
data.tar.gz: e0258e3a5820063c7458fb5fab6f1bbc742cd0a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3dc50e4c96303c00c64a860ddbf7756b399f963d23935d65bf8b27aaa74360d15b9d552c979d060c1a29ac150467480709a3761a88831a57be973464118f696
|
7
|
+
data.tar.gz: a632c1124f1e3257dac52afd9f25ce76d32ca7bf2e7f4226a51c83906a8a8e1a24b43e5d1fd45958caaa2070351ed4092b16b2c4a3d9959bf7b51758797cae6a
|
data/ext/mkrf_conf.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rubygems/command.rb'
|
3
|
+
require 'rubygems/dependency_installer.rb'
|
4
|
+
|
5
|
+
begin
|
6
|
+
Gem::Command.build_args = ARGV
|
7
|
+
rescue NoMethodError
|
8
|
+
# We're good
|
9
|
+
end
|
10
|
+
|
11
|
+
inst = Gem::DependencyInstaller.new
|
12
|
+
begin
|
13
|
+
if RUBY_PLATFORM =~ /\bdarwin/i
|
14
|
+
inst.install "ruby-ncurses", "~> 1.2.4"
|
15
|
+
else
|
16
|
+
inst.install "ncursesw", "~> 1.4.9"
|
17
|
+
end
|
18
|
+
rescue
|
19
|
+
exit 1
|
20
|
+
end
|
21
|
+
|
22
|
+
# create dummy rakefile to indicate success
|
23
|
+
File.write(__dir__("Rakefile"), "task: default\n")
|
data/lib/listpager/color.rb
CHANGED
data/lib/listpager/list.rb
CHANGED
data/lib/listpager/scrollbar.rb
CHANGED
data/lib/listpager/version.rb
CHANGED
data/listpager.gemspec
CHANGED
@@ -27,7 +27,17 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
|
30
|
-
|
30
|
+
# Check out the hack in ext/mkrf_conf.rb, which is effectively:
|
31
|
+
#
|
32
|
+
# if RUBY_PLATFORM =~ /\bdarwin/
|
33
|
+
# spec.add_runtime_dependency 'ncurses-ruby'
|
34
|
+
# else
|
35
|
+
# # Doesn't build on newer macOS...
|
36
|
+
# spec.add_runtime_dependency 'ncursesw'
|
37
|
+
# end
|
38
|
+
#
|
39
|
+
# A PR has been submitted to ncursesw, so hopefully this can go away soon.
|
40
|
+
|
31
41
|
spec.add_development_dependency "bundler", "~> 1.12"
|
32
42
|
spec.add_development_dependency "rake", "~> 10.0"
|
33
43
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: listpager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Owens
|
@@ -10,20 +10,6 @@ bindir: exe
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2016-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: ncurses-ruby
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 1.2.4
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 1.2.4
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: bundler
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -69,10 +55,12 @@ files:
|
|
69
55
|
- bin/setup
|
70
56
|
- doc/screenshot.png
|
71
57
|
- exe/listpager
|
58
|
+
- ext/mkrf_conf.rb
|
72
59
|
- lib/listpager.rb
|
73
60
|
- lib/listpager/client_terminal.rb
|
74
61
|
- lib/listpager/color.rb
|
75
62
|
- lib/listpager/list.rb
|
63
|
+
- lib/listpager/ncurses.rb
|
76
64
|
- lib/listpager/scrollbar.rb
|
77
65
|
- lib/listpager/version.rb
|
78
66
|
- listpager.gemspec
|