runcom 8.0.0 → 8.3.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: aedbd15615c4a0889f044308ccf62e7bcd3e08c8e52c66e142da3a1fd7c8eb32
4
- data.tar.gz: 486c90c8431fcf38020e41020d58738d2ce445c351ef209c1c17b17bd394eff2
3
+ metadata.gz: b0d62ca53069ec86482bc3560732f470b8b4a9fafc219a93a3e44ebebd92dc43
4
+ data.tar.gz: 609053576fbf316e8b8dbee45481961cb7d64da3f44975d604c005795f4f042e
5
5
  SHA512:
6
- metadata.gz: 6ce926f9ac1fc930cf31c8dd7b3e9d2a768f6223acc3c81dfe93786119e3e72024e5f9b69b27261e1c52bcfc9234f6dcfe04ea426b4575e2f9a1f03f202924c5
7
- data.tar.gz: 5a3a3410dd9ee5809a92cbeaef749b703fd34857b1964bc376bea2514edab8805b659273fe4b58f6d974efdfdc67403fe2e26a76b11254e4518e703bcc429cfe
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
- == Versioning
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
- Feel free to link:https://www.alchemists.io/community[join the commmunity] for discussions related
230
- to this project and much more.
205
+ == link:https://www.alchemists.io/policies/security[Security]
231
206
 
232
- == License
207
+ == link:https://www.alchemists.io/policies/code_of_conduct[Code of Conduct]
233
208
 
234
- Read link:LICENSE.adoc[LICENSE] for details.
209
+ == link:https://www.alchemists.io/policies/contributions[Contributions]
235
210
 
236
- == Changes
211
+ == link:https://www.alchemists.io/projects/runcom/versions[Versions]
237
212
 
238
- Read link:CHANGES.adoc[CHANGES] for details.
213
+ == link:https://www.alchemists.io/community[Community]
239
214
 
240
215
  == Credits
241
216
 
@@ -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
@@ -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/lib/runcom.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "xdg"
4
- require "runcom/identity"
5
4
  require "runcom/error"
6
5
  require "runcom/paths/home"
7
6
  require "runcom/paths/common"
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.0.0
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: 2021-12-26 00:00:00.000000000 Z
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.0'
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.0'
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.0'
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.0'
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/changes.html
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.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
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Runcom
4
- # Gem identity information.
5
- module Identity
6
- NAME = "runcom"
7
- LABEL = "Runcom"
8
- VERSION = "8.0.0"
9
- VERSION_LABEL = "#{LABEL} #{VERSION}".freeze
10
- end
11
- end