eac_ruby_base0 0.10.1 → 0.11.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 +3 -3
- data/lib/eac_ruby_base0/core_ext.rb +1 -0
- data/lib/eac_ruby_base0/runner.rb +16 -7
- data/lib/eac_ruby_base0/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 630a1de50d1564747c0f1d41f3e902b24c0e65f6e42bdcc0dc4d5ba42d1b63d4
|
|
4
|
+
data.tar.gz: b092b47b6001a9344325f0a85dff539e8fd3aaab1d0f47b3b6bf8b99f48fe769
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e047ec6939b237ed87b79bdfa1866f6533c62cc26036339a11db52d2ce45031c6abba799354d4bc2922c45492eef43ca1eb6c1bbdf49124ad8332d12a8d3e984
|
|
7
|
+
data.tar.gz: 837a34b14b75c0bc8391c2fe018b64e7e714ce88e2eb7ab49f1c2c2c0c5c4e3752f02aad2db552c73cb9125b30434496ea0835c8ae820c3cfe08e962264bd205
|
|
@@ -3,10 +3,10 @@
|
|
|
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/cache'
|
|
6
7
|
require 'eac_ruby_base0/application_xdg'
|
|
7
8
|
require 'eac_ruby_gems_utils/gem'
|
|
8
9
|
require 'eac_ruby_utils/core_ext'
|
|
9
|
-
require 'eac_ruby_utils/filesystem_cache'
|
|
10
10
|
|
|
11
11
|
module EacRubyBase0
|
|
12
12
|
class Application
|
|
@@ -44,8 +44,8 @@ module EacRubyBase0
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
def fs_cache
|
|
47
|
-
@fs_cache ||= ::
|
|
48
|
-
cache_dir.join(::
|
|
47
|
+
@fs_cache ||= ::EacFs::Cache.new(
|
|
48
|
+
cache_dir.join(::EacFs::Cache.name.parameterize)
|
|
49
49
|
)
|
|
50
50
|
end
|
|
51
51
|
|
|
@@ -3,6 +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/cache'
|
|
6
7
|
require 'eac_ruby_utils/speaker'
|
|
7
8
|
|
|
8
9
|
module EacRubyBase0
|
|
@@ -23,13 +24,11 @@ module EacRubyBase0
|
|
|
23
24
|
end
|
|
24
25
|
|
|
25
26
|
def run
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
run_with_subcommand
|
|
32
|
-
end
|
|
27
|
+
on_context do
|
|
28
|
+
if parsed.version?
|
|
29
|
+
show_version
|
|
30
|
+
else
|
|
31
|
+
run_with_subcommand
|
|
33
32
|
end
|
|
34
33
|
end
|
|
35
34
|
end
|
|
@@ -38,6 +37,16 @@ module EacRubyBase0
|
|
|
38
37
|
runner_context.call(:application).version.to_s
|
|
39
38
|
end
|
|
40
39
|
|
|
40
|
+
def on_context
|
|
41
|
+
::EacRubyUtils::Speaker.context.on(build_speaker) do
|
|
42
|
+
::EacConfig::Node.context.on(runner_context.call(:application).build_config) do
|
|
43
|
+
::EacFs::Cache.context.on(application.fs_cache) do
|
|
44
|
+
yield
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
41
50
|
def show_version
|
|
42
51
|
out("#{application_version}\n")
|
|
43
52
|
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.11.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: 2021-
|
|
11
|
+
date: 2021-09-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: eac_cli
|
|
@@ -30,6 +30,20 @@ dependencies:
|
|
|
30
30
|
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 0.22.2
|
|
33
|
+
- !ruby/object:Gem::Dependency
|
|
34
|
+
name: eac_fs
|
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - "~>"
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0.3'
|
|
40
|
+
type: :runtime
|
|
41
|
+
prerelease: false
|
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - "~>"
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0.3'
|
|
33
47
|
- !ruby/object:Gem::Dependency
|
|
34
48
|
name: eac_ruby_gems_utils
|
|
35
49
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -39,7 +53,7 @@ dependencies:
|
|
|
39
53
|
version: '0.9'
|
|
40
54
|
- - "~>"
|
|
41
55
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: 0.9.
|
|
56
|
+
version: 0.9.6
|
|
43
57
|
type: :runtime
|
|
44
58
|
prerelease: false
|
|
45
59
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -49,7 +63,7 @@ dependencies:
|
|
|
49
63
|
version: '0.9'
|
|
50
64
|
- - "~>"
|
|
51
65
|
- !ruby/object:Gem::Version
|
|
52
|
-
version: 0.9.
|
|
66
|
+
version: 0.9.6
|
|
53
67
|
- !ruby/object:Gem::Dependency
|
|
54
68
|
name: eac_ruby_utils
|
|
55
69
|
requirement: !ruby/object:Gem::Requirement
|