tabry 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tabry/cli/util/config.rb +2 -0
- data/lib/tabry/cli/util.rb +1 -1
- data/lib/tabry/models/config_object.rb +1 -1
- data/lib/tabry/version.rb +1 -1
- data/spec/tabry/cli/util_spec.rb +2 -2
- data/tabry.gemspec +1 -0
- data/treesitter/README.md +2 -0
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98d317c01ebda08f063ee1bafeb45de64356a6c91ad15eb1160e163e486612eb
|
4
|
+
data.tar.gz: 681aacad039319ead3df18d910e368bccdd7e883509fa622500f0a8837fdda19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10aa0853e3665e5b25063d9d26ec8b8758fe1585f138067c3626f7f2cad275742e2f5cf3340e72789bcc7872f991e4f59aa8bc83f6a6083aa424309594ca12da
|
7
|
+
data.tar.gz: e6bc9678da5959cc07cb0fa79051408c53f2e8516f935b8222c7d86c338a8c2c0de8d77544f6c31f06251c62478c94a27966638b6ef33199e97e273a38a46731
|
data/lib/tabry/cli/util.rb
CHANGED
@@ -67,7 +67,7 @@ module Tabry
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def open_web_page(url_or_urls)
|
70
|
-
unless system("
|
70
|
+
unless system("nohup %s %s 2>&1 >/dev/null &", open_command, url_or_urls)
|
71
71
|
warn "WARNING: opening web page failed: #{make_cmdline("%s %s", open_command, url)}"
|
72
72
|
end
|
73
73
|
end
|
@@ -32,7 +32,7 @@ module Tabry
|
|
32
32
|
raise ConfigError, "Unknown field(s) #{unknown_fields.inspect} for #{self.class}"
|
33
33
|
end
|
34
34
|
|
35
|
-
raw.each do |key, val|
|
35
|
+
raw.compact.each do |key, val|
|
36
36
|
type, *extra = Array(self.class::FIELDS[key.to_sym])
|
37
37
|
instance_variable_set :"@#{key}", send(:"init_field_#{type}", key, val, *extra)
|
38
38
|
end
|
data/lib/tabry/version.rb
CHANGED
data/spec/tabry/cli/util_spec.rb
CHANGED
@@ -70,7 +70,7 @@ describe Tabry::CLI::Util do
|
|
70
70
|
it 'uses "xdg-open" when on Linux' do
|
71
71
|
stub_const("RUBY_PLATFORM", "x86_64-linux")
|
72
72
|
expect(Kernel).to receive("system") do |cmdline|
|
73
|
-
expect(cmdline).to include("
|
73
|
+
expect(cmdline).to include("nohup xdg-open ")
|
74
74
|
end
|
75
75
|
described_class.open_web_page("http://example.com")
|
76
76
|
end
|
@@ -78,7 +78,7 @@ describe Tabry::CLI::Util do
|
|
78
78
|
it 'uses "open" when on Darwin' do
|
79
79
|
stub_const("RUBY_PLATFORM", "x86_64-darwin")
|
80
80
|
expect(Kernel).to receive("system") do |cmdline|
|
81
|
-
expect(cmdline).to include("
|
81
|
+
expect(cmdline).to include("nohup open ")
|
82
82
|
end
|
83
83
|
described_class.open_web_page("http://example.com")
|
84
84
|
end
|
data/tabry.gemspec
CHANGED
data/treesitter/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
**WARNING** This is now DEPRECATED and may use VULNERABLE dependencies. Please use [tabry-rs](https://github.com/evanbattaglia/tabry-rs)
|
2
|
+
|
1
3
|
This directory contains the compiler which compiles `*.tabry` files -- Tabry's
|
2
4
|
mini-language for describing tab-completion/CLIs, into the JSON format used by
|
3
5
|
the tabry gem. See the [main Tabry README](../README.md) for more info on
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tabry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Battaglia
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry-byebug
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0.12'
|
83
|
-
description:
|
83
|
+
description:
|
84
84
|
email: battaglia.evan@gmail.com
|
85
85
|
executables:
|
86
86
|
- tabry-bash
|
@@ -250,7 +250,7 @@ licenses:
|
|
250
250
|
- MIT
|
251
251
|
metadata:
|
252
252
|
rubygems_mfa_required: 'true'
|
253
|
-
post_install_message:
|
253
|
+
post_install_message:
|
254
254
|
rdoc_options: []
|
255
255
|
require_paths:
|
256
256
|
- lib
|
@@ -258,15 +258,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
258
258
|
requirements:
|
259
259
|
- - ">="
|
260
260
|
- !ruby/object:Gem::Version
|
261
|
-
version: '0'
|
261
|
+
version: '3.0'
|
262
262
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
263
263
|
requirements:
|
264
264
|
- - ">="
|
265
265
|
- !ruby/object:Gem::Version
|
266
266
|
version: '0'
|
267
267
|
requirements: []
|
268
|
-
rubygems_version: 3.
|
269
|
-
signing_key:
|
268
|
+
rubygems_version: 3.5.22
|
269
|
+
signing_key:
|
270
270
|
specification_version: 4
|
271
271
|
summary: Tab completion and CLIs extraordinaire
|
272
272
|
test_files: []
|