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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb391cd439ebe097e13df65ff4a99f2911abd2d53b9c81e8283b8d5af94282b9
4
- data.tar.gz: ed3bc83d0f19fa9efee82a7cc6ec5cbd37fd34f602cb9915b78fbeeb0e0ddea9
3
+ metadata.gz: 98d317c01ebda08f063ee1bafeb45de64356a6c91ad15eb1160e163e486612eb
4
+ data.tar.gz: 681aacad039319ead3df18d910e368bccdd7e883509fa622500f0a8837fdda19
5
5
  SHA512:
6
- metadata.gz: ee6f71b46c334b5c2a50ed46c9d6a2930d9b39d3d9dac42ed158ba5b1f94a3b850d485794169e1794f72d54333813b1f10b6d816a557c36d8830ec126524ff74
7
- data.tar.gz: fa871318216d9258fc5a9dcbe62ee9b7a9e52922cde2986a6d493025b721753b0b452b8f58ac5157925bfebcddee009289904c676a53ed6d00e2d6b6f4addf98
6
+ metadata.gz: 10aa0853e3665e5b25063d9d26ec8b8758fe1585f138067c3626f7f2cad275742e2f5cf3340e72789bcc7872f991e4f59aa8bc83f6a6083aa424309594ca12da
7
+ data.tar.gz: e6bc9678da5959cc07cb0fa79051408c53f2e8516f935b8222c7d86c338a8c2c0de8d77544f6c31f06251c62478c94a27966638b6ef33199e97e273a38a46731
@@ -11,6 +11,8 @@ require "json"
11
11
  # Config = Tabry::CLI::Util::Config.new('~/.mycli.yml')
12
12
  # end
13
13
 
14
+ # TODO: should probably now just remove this
15
+
14
16
  class Hash
15
17
  def to_openstruct
16
18
  JSON.parse to_json, object_class: OpenStruct
@@ -67,7 +67,7 @@ module Tabry
67
67
  end
68
68
 
69
69
  def open_web_page(url_or_urls)
70
- unless system("(%s %s 2>&1) >/dev/null", open_command, url_or_urls)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tabry
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
@@ -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("(xdg-open ")
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("(open ")
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
@@ -10,6 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.email = "battaglia.evan@gmail.com"
11
11
  s.homepage = "https://github.com/evanbattaglia/tabry"
12
12
  s.license = "MIT"
13
+ s.required_ruby_version = ">= 3.0"
13
14
 
14
15
  treesitter_files = %w[
15
16
  binding.gyp
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.0
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: 2024-07-28 00:00:00.000000000 Z
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.4.19
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: []