eac_ruby_base0 0.15.0 → 0.16.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
- data/lib/eac_ruby_base0/application.rb +9 -5
- data/lib/eac_ruby_base0/runner.rb +9 -3
- data/lib/eac_ruby_base0/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0ba9910cc2db56581ae63299cfd982b36c6f342e8dd91606d3571423ac529a7
|
4
|
+
data.tar.gz: 0a0a5ef9d8981852e2713141c017c3cbf67013e696bf3b7348bdb9afc1b97fad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44d682eb96f906e7947fb6c6fe6505060e752718f89059a6cb5fad1ae899fec5145d83e33bcb7bc92ed566748c5d3811ee11831d57afb2928c25f2773181f8d1
|
7
|
+
data.tar.gz: f1c25c9030d2beb45e08f3cccafaf3175cdf435bec44c7eef8b921e97b9402c4d627fe3c6d3168532aa6ea0a96e3f7335e9399acacd698e66bef6d0e142726e0
|
@@ -3,7 +3,8 @@
|
|
3
3
|
require 'eac_cli/config'
|
4
4
|
require 'eac_config/envvars_node'
|
5
5
|
require 'eac_config/yaml_file_node'
|
6
|
-
require 'eac_fs/
|
6
|
+
require 'eac_fs/contexts'
|
7
|
+
require 'eac_fs/storage_tree'
|
7
8
|
require 'eac_ruby_base0/application_xdg'
|
8
9
|
require 'eac_ruby_gems_utils/gem'
|
9
10
|
require 'eac_ruby_utils/core_ext'
|
@@ -43,10 +44,13 @@ module EacRubyBase0
|
|
43
44
|
delegate "#{item}_xdg_env", "#{item}_dir", to: :app_xdg
|
44
45
|
end
|
45
46
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
47
|
+
::EacFs::Contexts::TYPES.each do |type|
|
48
|
+
class_eval <<CODE, __FILE__, __LINE__ + 1
|
49
|
+
# @return [EacFs::StorageTree]
|
50
|
+
def self_fs_#{type}
|
51
|
+
@self_fs_#{type} ||= ::EacFs::StorageTree.new(#{type}_dir.join('eac_fs'))
|
52
|
+
end
|
53
|
+
CODE
|
50
54
|
end
|
51
55
|
|
52
56
|
def home_dir
|
@@ -3,7 +3,7 @@
|
|
3
3
|
require 'eac_cli/core_ext'
|
4
4
|
require 'eac_cli/speaker'
|
5
5
|
require 'eac_config/node'
|
6
|
-
require 'eac_fs/
|
6
|
+
require 'eac_fs/contexts'
|
7
7
|
require 'eac_ruby_utils/speaker'
|
8
8
|
|
9
9
|
module EacRubyBase0
|
@@ -65,8 +65,7 @@ module EacRubyBase0
|
|
65
65
|
|
66
66
|
# @return [Array<EacRubyUtils::Struct>]
|
67
67
|
def available_contexts
|
68
|
-
[
|
69
|
-
[:cache, ::EacFs::Cache.context, -> { application.self_fs_cache }],
|
68
|
+
filesystem_available_contexts + [
|
70
69
|
[:config, ::EacConfig::Node.context, -> { runner_context.call(:application).build_config }],
|
71
70
|
[:speaker, ::EacRubyUtils::Speaker.context, -> { build_speaker }]
|
72
71
|
].map { |row| available_context_row_to_struct(row) }
|
@@ -82,5 +81,12 @@ module EacRubyBase0
|
|
82
81
|
options[:in_in] = FailIfRequestInput.new if parsed.no_input?
|
83
82
|
::EacCli::Speaker.new(options)
|
84
83
|
end
|
84
|
+
|
85
|
+
def filesystem_available_contexts
|
86
|
+
::EacFs::Contexts::TYPES.map do |type|
|
87
|
+
key = "fs_#{type}".to_sym
|
88
|
+
[key, ::EacFs::Contexts.send(key).context, -> { application.send("self_#{key}") }]
|
89
|
+
end
|
90
|
+
end
|
85
91
|
end
|
86
92
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_ruby_base0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eac_cli
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.10'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
40
|
+
version: '0.10'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: eac_ruby_gems_utils
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|