runcom 8.1.0 → 8.2.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: 704b8010aec409269a3fda380aaa3a8af59ce6b85ec38ab3f999232593d3c67d
4
- data.tar.gz: 84a8c5fdc1d8d2339f91770e97fd663b48ec79a903e95b79b0254b17bcc52056
3
+ metadata.gz: 12265a4785b994aef96f550e965b147c5e86e61b6aa14e2db79f0a9b36cdfe28
4
+ data.tar.gz: bb70b4a4cc6e95776f79c371c6285c5319d274fcbae4eecdea46281785d993bf
5
5
  SHA512:
6
- metadata.gz: 9df3738baa8a3959b59e47a3caef61dd2b603e3a19e2ba322b7f67ea7e8b6a53a02003271284bfce49bc27bf0e6d3acdf51e75fe142e36b7dfce7d4fba3af627
7
- data.tar.gz: aed327c2a8f82054a5d1332107385e1a49538a5c0d25638cbd139346fcb737fe3c5691c8528f1ecbed7d4b0afd0d91c7960e465eb035bc18231299ba44148cdd
6
+ metadata.gz: 9859e7add5bfbf42d5d3c4bb1ce7b5c2eaf2dd2e458e5aa11acb150429b03d8cd7a33cc6a99e92f2fce9305d48f0abcad4111099f11ecb8be4c5dc5bedf01446
7
+ data.tar.gz: 84b4dfe902e29b793badfd1e130b749b089dbbc28bfd2bfe6395e4e1a9616f9b9ceaa128776f8f0712cfd9ee523ec98edec0eb191a3e8c4e712bcfafb95590e1
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "forwardable"
4
- require "pathname"
4
+ require "refinements/pathnames"
5
5
 
6
6
  module Runcom
7
7
  module Paths
@@ -9,6 +9,8 @@ module Runcom
9
9
  class Common
10
10
  extend Forwardable
11
11
 
12
+ using Refinements::Pathnames
13
+
12
14
  delegate %i[inspect] => :xdg
13
15
 
14
16
  attr_reader :relative
@@ -22,7 +24,7 @@ module Runcom
22
24
 
23
25
  def file_name = relative.basename
24
26
 
25
- def current = all.find(&:exist?)
27
+ def current = all.select(&:file?).find(&:exist?)
26
28
 
27
29
  def all = xdg.all.map { |root| root.join relative }
28
30
 
@@ -17,10 +17,15 @@ module Runcom
17
17
 
18
18
  def dynamic
19
19
  String(value).then { |path| Pathname path }
20
- .then { |path| path.exist? ? path.expand_path : standard.dynamic }
20
+ .then { |path| [path.expand_path, standard.dynamic] }
21
21
  end
22
22
 
23
- def inspect = [standard.key, dynamic].compact.join(XDG::PAIR_DELIMITER)
23
+ def inspect
24
+ [
25
+ standard.key,
26
+ dynamic.join(XDG::Paths::Directory::DELIMITER)
27
+ ].compact.join(XDG::PAIR_DELIMITER)
28
+ end
24
29
 
25
30
  private
26
31
 
data/runcom.gemspec CHANGED
@@ -2,8 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "runcom"
5
- spec.version = "8.1.0"
6
- spec.platform = Gem::Platform::RUBY
5
+ spec.version = "8.2.0"
7
6
  spec.authors = ["Brooke Kuhlmann"]
8
7
  spec.email = ["brooke@alchemists.io"]
9
8
  spec.homepage = "https://www.alchemists.io/projects/runcom"
@@ -24,9 +23,8 @@ Gem::Specification.new do |spec|
24
23
 
25
24
  spec.required_ruby_version = "~> 3.1"
26
25
  spec.add_dependency "refinements", "~> 9.1"
27
- spec.add_dependency "xdg", "~> 6.1"
26
+ spec.add_dependency "xdg", "~> 6.2"
28
27
 
29
28
  spec.files = Dir["*.gemspec", "lib/**/*"]
30
29
  spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
31
- spec.require_paths = ["lib"]
32
30
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runcom
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.1.0
4
+ version: 8.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -28,7 +28,7 @@ cert_chain:
28
28
  lkHilIrX69jq8wMPpBhlaw2mRmeSL50Wv5u6xVBvOHhXFSP1crXM95vfLhLyRYod
29
29
  W2A=
30
30
  -----END CERTIFICATE-----
31
- date: 2022-01-23 00:00:00.000000000 Z
31
+ date: 2022-01-30 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: refinements
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '6.1'
53
+ version: '6.2'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '6.1'
60
+ version: '6.2'
61
61
  description:
62
62
  email:
63
63
  - brooke@alchemists.io
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  requirements: []
106
- rubygems_version: 3.3.5
106
+ rubygems_version: 3.3.6
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: An XDG enhanced run command manager for command line interfaces.
metadata.gz.sig CHANGED
@@ -1,3 +1,3 @@
1
- {��Oʶ���5(}KRf߀m�c�t���,��tB(�V���B��e��V�ϙ�TY��ޘ/�뜿!@U�%f奣�.��; �׼kZX�[x
2
- x�J�>���Rl7¡��y߄�˧ϲ�V�G ޥs���s��t"����>{Ŝ4
3
- �K:[��8/*�UbE�@2���_P
1
+ 2s��?�LM ʈ��Q&ib�$�I���v��|��4Z]b��$�~��r8���y
2
+ �z����������X��%1�J��a˲-�s)�8�~V�zO+�fS�Fz���V��O2�A��"�Bc[���7_�2�;!fi�M|QA�'�|y̆�^�����},[ѫ�R�>a�D�C.�_�bJ�!S�C�Y�L����*Ҥ�l+@)�(�A{.
3
+ ����&\^��QjX"�JCs1���WE�?+�Q�A�