runcom 8.0.0 → 8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +6 -31
- data/lib/runcom/context.rb +3 -0
- data/lib/runcom/paths/common.rb +4 -2
- data/lib/runcom/paths/home.rb +7 -2
- data/lib/runcom.rb +0 -1
- data/runcom.gemspec +30 -0
- data.tar.gz.sig +0 -0
- metadata +10 -9
- metadata.gz.sig +0 -0
- data/lib/runcom/identity.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0d62ca53069ec86482bc3560732f470b8b4a9fafc219a93a3e44ebebd92dc43
|
4
|
+
data.tar.gz: 609053576fbf316e8b8dbee45481961cb7d64da3f44975d604c005795f4f042e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 394d6b6d1370b88fb7f0268d722f85e498c57fa727b1209296ff1ecd380207c49e0f242dc0c6c1e89c5b86c6d4f2b0e1c5ce7dbfa5448edb4c36232e1a9c02c5
|
7
|
+
data.tar.gz: d7a44db60d6529283be95d24632237559aa3b3bbf9efc1412653bd97b987f3361faaab892c2cc32043fe823a7e4205fcdb62ebcea146dd0228c8541eedc6b6a5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -4,13 +4,6 @@
|
|
4
4
|
|
5
5
|
= Runcom
|
6
6
|
|
7
|
-
[link=http://badge.fury.io/rb/runcom]
|
8
|
-
image::https://badge.fury.io/rb/runcom.svg[Gem Version]
|
9
|
-
[link=https://www.alchemists.io/projects/code_quality]
|
10
|
-
image::https://img.shields.io/badge/code_style-alchemists-brightgreen.svg[Alchemists Style Guide]
|
11
|
-
[link=https://circleci.com/gh/bkuhlmann/runcom]
|
12
|
-
image::https://circleci.com/gh/bkuhlmann/runcom.svg?style=svg[Circle CI Status]
|
13
|
-
|
14
7
|
Runcom (short for link:https://en.wikipedia.org/wiki/Run_commands[Run Command]) provides common
|
15
8
|
functionality for Command Line Interfaces (CLIs) in which to manage global, local, or multiple
|
16
9
|
caches, configurations, or data in general. It does this by leveraging the
|
@@ -207,35 +200,17 @@ To test, run:
|
|
207
200
|
bundle exec rake
|
208
201
|
----
|
209
202
|
|
210
|
-
==
|
211
|
-
|
212
|
-
Read link:https://semver.org[Semantic Versioning] for details. Briefly, it means:
|
213
|
-
|
214
|
-
* Major (X.y.z) - Incremented for any backwards incompatible public API changes.
|
215
|
-
* Minor (x.Y.z) - Incremented for new, backwards compatible, public API enhancements/fixes.
|
216
|
-
* Patch (x.y.Z) - Incremented for small, backwards compatible, bug fixes.
|
217
|
-
|
218
|
-
== Code of Conduct
|
219
|
-
|
220
|
-
Please note that this project is released with a link:CODE_OF_CONDUCT.adoc[CODE OF CONDUCT]. By
|
221
|
-
participating in this project you agree to abide by its terms.
|
222
|
-
|
223
|
-
== Contributions
|
224
|
-
|
225
|
-
Read link:CONTRIBUTING.adoc[CONTRIBUTING] for details.
|
226
|
-
|
227
|
-
== Community
|
203
|
+
== link:https://www.alchemists.io/policies/license[License]
|
228
204
|
|
229
|
-
|
230
|
-
to this project and much more.
|
205
|
+
== link:https://www.alchemists.io/policies/security[Security]
|
231
206
|
|
232
|
-
==
|
207
|
+
== link:https://www.alchemists.io/policies/code_of_conduct[Code of Conduct]
|
233
208
|
|
234
|
-
|
209
|
+
== link:https://www.alchemists.io/policies/contributions[Contributions]
|
235
210
|
|
236
|
-
==
|
211
|
+
== link:https://www.alchemists.io/projects/runcom/versions[Versions]
|
237
212
|
|
238
|
-
|
213
|
+
== link:https://www.alchemists.io/community[Community]
|
239
214
|
|
240
215
|
== Credits
|
241
216
|
|
data/lib/runcom/context.rb
CHANGED
@@ -8,7 +8,10 @@ module Runcom
|
|
8
8
|
|
9
9
|
self[:home] ||= Paths::Home
|
10
10
|
self[:environment] ||= ENV
|
11
|
+
|
12
|
+
# rubocop:disable Style/MethodCallWithArgsParentheses
|
11
13
|
self[:xdg] = xdg.new(home:, environment:) if xdg
|
14
|
+
# rubocop:enable Style/MethodCallWithArgsParentheses
|
12
15
|
end
|
13
16
|
end
|
14
17
|
end
|
data/lib/runcom/paths/common.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "forwardable"
|
4
|
-
require "
|
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
|
|
data/lib/runcom/paths/home.rb
CHANGED
@@ -17,10 +17,15 @@ module Runcom
|
|
17
17
|
|
18
18
|
def dynamic
|
19
19
|
String(value).then { |path| Pathname path }
|
20
|
-
.then { |path| path.
|
20
|
+
.then { |path| [path.expand_path, standard.dynamic] }
|
21
21
|
end
|
22
22
|
|
23
|
-
def inspect
|
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/lib/runcom.rb
CHANGED
data/runcom.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "runcom"
|
5
|
+
spec.version = "8.3.0"
|
6
|
+
spec.authors = ["Brooke Kuhlmann"]
|
7
|
+
spec.email = ["brooke@alchemists.io"]
|
8
|
+
spec.homepage = "https://www.alchemists.io/projects/runcom"
|
9
|
+
spec.summary = "An XDG enhanced run command manager for command line interfaces."
|
10
|
+
spec.license = "Hippocratic-3.0"
|
11
|
+
|
12
|
+
spec.metadata = {
|
13
|
+
"bug_tracker_uri" => "https://github.com/bkuhlmann/runcom/issues",
|
14
|
+
"changelog_uri" => "https://www.alchemists.io/projects/runcom/versions",
|
15
|
+
"documentation_uri" => "https://www.alchemists.io/projects/runcom",
|
16
|
+
"label" => "Runcom",
|
17
|
+
"rubygems_mfa_required" => "true",
|
18
|
+
"source_code_uri" => "https://github.com/bkuhlmann/runcom"
|
19
|
+
}
|
20
|
+
|
21
|
+
spec.signing_key = Gem.default_key_path
|
22
|
+
spec.cert_chain = [Gem.default_cert_path]
|
23
|
+
|
24
|
+
spec.required_ruby_version = "~> 3.1"
|
25
|
+
spec.add_dependency "refinements", "~> 9.2"
|
26
|
+
spec.add_dependency "xdg", "~> 6.2"
|
27
|
+
|
28
|
+
spec.files = Dir["*.gemspec", "lib/**/*"]
|
29
|
+
spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
|
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.
|
4
|
+
version: 8.3.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:
|
31
|
+
date: 2022-02-12 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: refinements
|
@@ -36,28 +36,28 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '9.
|
39
|
+
version: '9.2'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '9.
|
46
|
+
version: '9.2'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: xdg
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '6.
|
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.
|
60
|
+
version: '6.2'
|
61
61
|
description:
|
62
62
|
email:
|
63
63
|
- brooke@alchemists.io
|
@@ -75,16 +75,17 @@ files:
|
|
75
75
|
- lib/runcom/context.rb
|
76
76
|
- lib/runcom/data.rb
|
77
77
|
- lib/runcom/error.rb
|
78
|
-
- lib/runcom/identity.rb
|
79
78
|
- lib/runcom/paths/common.rb
|
80
79
|
- lib/runcom/paths/home.rb
|
80
|
+
- runcom.gemspec
|
81
81
|
homepage: https://www.alchemists.io/projects/runcom
|
82
82
|
licenses:
|
83
83
|
- Hippocratic-3.0
|
84
84
|
metadata:
|
85
85
|
bug_tracker_uri: https://github.com/bkuhlmann/runcom/issues
|
86
|
-
changelog_uri: https://www.alchemists.io/projects/runcom/
|
86
|
+
changelog_uri: https://www.alchemists.io/projects/runcom/versions
|
87
87
|
documentation_uri: https://www.alchemists.io/projects/runcom
|
88
|
+
label: Runcom
|
88
89
|
rubygems_mfa_required: 'true'
|
89
90
|
source_code_uri: https://github.com/bkuhlmann/runcom
|
90
91
|
post_install_message:
|
@@ -102,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
103
|
- !ruby/object:Gem::Version
|
103
104
|
version: '0'
|
104
105
|
requirements: []
|
105
|
-
rubygems_version: 3.3.
|
106
|
+
rubygems_version: 3.3.7
|
106
107
|
signing_key:
|
107
108
|
specification_version: 4
|
108
109
|
summary: An XDG enhanced run command manager for command line interfaces.
|
metadata.gz.sig
CHANGED
Binary file
|