runcom 8.3.3 → 8.6.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: 85fb89d250905ea0e5598f82702f6635cc12ba60ed4b4233ed88a458ed68c0a0
4
- data.tar.gz: 0f917c604b0024a7e52cba977ebc86f0984aeb343cf37970908db2132f3ca775
3
+ metadata.gz: dfbd08d0a9e540634423017850823950045265213723a46e8997c05a8e7f1109
4
+ data.tar.gz: dec7ee050a2d119c4115ed2bc8587bcd48ff245d4675c84c2c9cdef7feb062a4
5
5
  SHA512:
6
- metadata.gz: 98d6af9bde1ce4a4da9c30b3d990371dfc1ca2fea009583f1398962b40c0fa41f124a0351a04aeb0cd95e98e456b1c8eef352b48812f0391c3e863ba5d6b758e
7
- data.tar.gz: 82bd842c60030eb670868a0dbe4ce8f9b7c0c2efc0d5eaa84f85bca3532799c1528348d2d619efdb58a10981aa07e78b3655c062f309179342fd603acfd523bd
6
+ metadata.gz: 7aafa3daa9c80db095b5a077da6f5dc6c099c116b3b6c7a8e33843c8c1449d57bd33a9359d1ff790a8c157ccdd5fdf963b7fa3f453d494cb0948cc126bb4395e
7
+ data.tar.gz: '0093ee10efe8aca440132b2ede58a14a50490d74a9d90294e6de203d30aa2b248bb69352b843b86c0d11245bfeaebb6ada5bd8137c0b261801554ba2219ee8ea'
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -17,12 +17,13 @@ toc::[]
17
17
 
18
18
  * Wraps the link:https://www.alchemists.io/projects/xdg[XDG] implementation which provides access to
19
19
  the following environment variables:
20
- ** `+$XDG_CACHE_HOME+`
21
- ** `+$XDG_CONFIG_HOME+`
22
- ** `+$XDG_CONFIG_DIRS+`
23
- ** `+$XDG_DATA_HOME+`
24
- ** `+$XDG_DATA_DIRS+`
25
- * Enhances the XDG cache, config, and data implementation. For the config, the following is
20
+ ** `$XDG_CACHE_HOME`
21
+ ** `$XDG_CONFIG_HOME`
22
+ ** `$XDG_CONFIG_DIRS`
23
+ ** `$XDG_DATA_HOME`
24
+ ** `$XDG_DATA_DIRS`
25
+ ** `$XDG_STATE_HOME`
26
+ * Enhances the XDG cache, config, data, and state implementation. For the config, the following is
26
27
  supported:
27
28
  ** Supports loading of CLI-specific http://yaml.org[YAML] configuration file.
28
29
  ** Supports loading and merging of nested/complex configurations.
@@ -63,6 +64,7 @@ instantiate each object individually:
63
64
  cache = Runcom::Cache.new "example/data.json"
64
65
  config = Runcom::Config.new "example/configuration.yml"
65
66
  data = Runcom::Data.new "example/store.dat"
67
+ state = Runcom::State.new "example/history.log"
66
68
  ----
67
69
 
68
70
  Each of the above objects share the same API:
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "forwardable"
4
+
5
+ module Runcom
6
+ # A developer friendly wrapper of XDG state.
7
+ class State
8
+ extend Forwardable
9
+
10
+ DEFAULT_CONTEXT = Context.new xdg: XDG::State
11
+
12
+ delegate %i[relative namespace file_name current all inspect] => :common
13
+
14
+ def initialize path, context: DEFAULT_CONTEXT
15
+ @common = Paths::Common.new path, context:
16
+ end
17
+
18
+ private
19
+
20
+ attr_reader :common
21
+ end
22
+ end
data/lib/runcom.rb CHANGED
@@ -8,3 +8,4 @@ require "runcom/context"
8
8
  require "runcom/cache"
9
9
  require "runcom/config"
10
10
  require "runcom/data"
11
+ require "runcom/state"
data/runcom.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "runcom"
5
- spec.version = "8.3.3"
5
+ spec.version = "8.6.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://www.alchemists.io/projects/runcom"
@@ -13,6 +13,7 @@ Gem::Specification.new do |spec|
13
13
  "bug_tracker_uri" => "https://github.com/bkuhlmann/runcom/issues",
14
14
  "changelog_uri" => "https://www.alchemists.io/projects/runcom/versions",
15
15
  "documentation_uri" => "https://www.alchemists.io/projects/runcom",
16
+ "funding_uri" => "https://github.com/sponsors/bkuhlmann",
16
17
  "label" => "Runcom",
17
18
  "rubygems_mfa_required" => "true",
18
19
  "source_code_uri" => "https://github.com/bkuhlmann/runcom"
@@ -22,8 +23,8 @@ Gem::Specification.new do |spec|
22
23
  spec.cert_chain = [Gem.default_cert_path]
23
24
 
24
25
  spec.required_ruby_version = "~> 3.1"
25
- spec.add_dependency "refinements", "~> 9.2"
26
- spec.add_dependency "xdg", "~> 6.2"
26
+ spec.add_dependency "refinements", "~> 9.6"
27
+ spec.add_dependency "xdg", "~> 6.6"
27
28
 
28
29
  spec.files = Dir["*.gemspec", "lib/**/*"]
29
30
  spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
data.tar.gz.sig CHANGED
@@ -1,2 +1,5 @@
1
- r@�������ۭ�E}xA��QIr9I(f�^�j>�挐��C���ܷoOY
2
- :���� ;r��yg����0�!|���.�e���V���L]3��Ao�ё�Wi
1
+ xv �G�F��uw��Z2��2
2
+ ����}�i��szk�$�ٙvSg&�O/���
3
+ �z��A�-O�h�|c
4
+ �F4xU2>_}��2̮E�6c�G ����e
5
+ ����![]�
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.3.3
4
+ version: 8.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -28,7 +28,7 @@ cert_chain:
28
28
  CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
29
29
  RFE=
30
30
  -----END CERTIFICATE-----
31
- date: 2022-04-23 00:00:00.000000000 Z
31
+ date: 2022-09-10 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.2'
39
+ version: '9.6'
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.2'
46
+ version: '9.6'
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.2'
53
+ version: '6.6'
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.2'
60
+ version: '6.6'
61
61
  description:
62
62
  email:
63
63
  - brooke@alchemists.io
@@ -77,6 +77,7 @@ files:
77
77
  - lib/runcom/error.rb
78
78
  - lib/runcom/paths/common.rb
79
79
  - lib/runcom/paths/home.rb
80
+ - lib/runcom/state.rb
80
81
  - runcom.gemspec
81
82
  homepage: https://www.alchemists.io/projects/runcom
82
83
  licenses:
@@ -85,6 +86,7 @@ metadata:
85
86
  bug_tracker_uri: https://github.com/bkuhlmann/runcom/issues
86
87
  changelog_uri: https://www.alchemists.io/projects/runcom/versions
87
88
  documentation_uri: https://www.alchemists.io/projects/runcom
89
+ funding_uri: https://github.com/sponsors/bkuhlmann
88
90
  label: Runcom
89
91
  rubygems_mfa_required: 'true'
90
92
  source_code_uri: https://github.com/bkuhlmann/runcom
@@ -103,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
105
  - !ruby/object:Gem::Version
104
106
  version: '0'
105
107
  requirements: []
106
- rubygems_version: 3.3.12
108
+ rubygems_version: 3.3.22
107
109
  signing_key:
108
110
  specification_version: 4
109
111
  summary: An XDG enhanced run command manager for command line interfaces.
metadata.gz.sig CHANGED
Binary file