eac_git 0.20.0 → 0.21.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_git/local/subrepo.rb +2 -2
- data/lib/eac_git/subrepo/configuration.rb +40 -0
- data/lib/eac_git/version.rb +1 -1
- metadata +8 -14
- data/lib/eac_git/local/subrepo/config.rb +0 -42
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: caa960785b3fe7f53bb968ad369475ff1bf385124b7809e5dddcceebc7619e71
|
|
4
|
+
data.tar.gz: 486ac5819da4c8a41391b7e9808d3ba1d7948f5c1cc41b6434adba85ea243d3e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d42b82d4cbf4c0a5bdd4098b94802e544d5f2f41d20afb07aa07bd13be2993828e692ad1e2b6d970283d67175b9f8368f36f8c2796e4cb984ce0ef6eaf398111
|
|
7
|
+
data.tar.gz: 5795595e09c93e181761bd8d1fbe0c099399278c4fe0d008592d1605463c3a259f0a5b4d964d92b34555204df7e2bd6bb14fd1aa37ee750ec526b6c3b681ff96
|
|
@@ -18,7 +18,7 @@ module EacGit
|
|
|
18
18
|
*subrepo_subcommand_args)
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
-
delegate(*::EacGit::
|
|
21
|
+
delegate(*::EacGit::Subrepo::Configuration::MAPPING.keys, to: :config)
|
|
22
22
|
|
|
23
23
|
def write_config
|
|
24
24
|
config_absolute_path.write(config.to_content)
|
|
@@ -27,7 +27,7 @@ module EacGit
|
|
|
27
27
|
private
|
|
28
28
|
|
|
29
29
|
def config_uncached
|
|
30
|
-
::EacGit::
|
|
30
|
+
::EacGit::Subrepo::Configuration.from_file(config_absolute_path)
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
def config_absolute_path_uncached
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'parseconfig'
|
|
4
|
+
|
|
5
|
+
module EacGit
|
|
6
|
+
module Subrepo
|
|
7
|
+
class Configuration
|
|
8
|
+
MAPPING = {
|
|
9
|
+
command_version: :cmdver, commit_id: :commit, join_method: :method,
|
|
10
|
+
parent_commit_id: :parent, remote_branch: :branch, remote_uri: :remote
|
|
11
|
+
}.freeze
|
|
12
|
+
|
|
13
|
+
class << self
|
|
14
|
+
def from_file(file_path)
|
|
15
|
+
new(
|
|
16
|
+
::ParseConfig.new(file_path.to_pathname)['subrepo']
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
common_constructor :values do
|
|
22
|
+
self.values = values.with_indifferent_access
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
MAPPING.each_key do |method_name|
|
|
26
|
+
define_method(method_name) do
|
|
27
|
+
values[MAPPING.fetch(method_name)]
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
define_method("#{method_name}=") do |value|
|
|
31
|
+
values[MAPPING.fetch(method_name)] = value
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def to_content
|
|
36
|
+
"[subrepo]\n" + MAPPING.map { |k, v| " #{v} = #{send(k)}\n" }.join # rubocop:disable Style/StringConcatenation
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
data/lib/eac_git/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eac_git
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.21.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Put here the authors
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: eac_ruby_utils
|
|
@@ -16,14 +15,14 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0.
|
|
18
|
+
version: '0.134'
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - "~>"
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '0.
|
|
25
|
+
version: '0.134'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: parseconfig
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -50,16 +49,14 @@ dependencies:
|
|
|
50
49
|
requirements:
|
|
51
50
|
- - "~>"
|
|
52
51
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: '0.
|
|
52
|
+
version: '0.15'
|
|
54
53
|
type: :development
|
|
55
54
|
prerelease: false
|
|
56
55
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
56
|
requirements:
|
|
58
57
|
- - "~>"
|
|
59
58
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '0.
|
|
61
|
-
description:
|
|
62
|
-
email:
|
|
59
|
+
version: '0.15'
|
|
63
60
|
executables: []
|
|
64
61
|
extensions: []
|
|
65
62
|
extra_rdoc_files: []
|
|
@@ -79,7 +76,6 @@ files:
|
|
|
79
76
|
- lib/eac_git/local/remote/push.rb
|
|
80
77
|
- lib/eac_git/local/remotes.rb
|
|
81
78
|
- lib/eac_git/local/subrepo.rb
|
|
82
|
-
- lib/eac_git/local/subrepo/config.rb
|
|
83
79
|
- lib/eac_git/remote.rb
|
|
84
80
|
- lib/eac_git/remote_like.rb
|
|
85
81
|
- lib/eac_git/remote_like/ls_result.rb
|
|
@@ -90,6 +86,7 @@ files:
|
|
|
90
86
|
- lib/eac_git/rspec/stubbed_git_local_repo/file.rb
|
|
91
87
|
- lib/eac_git/rspec/stubbed_git_local_repo/fs_object.rb
|
|
92
88
|
- lib/eac_git/rspec/stubbed_git_local_repo/repository.rb
|
|
89
|
+
- lib/eac_git/subrepo/configuration.rb
|
|
93
90
|
- lib/eac_git/version.rb
|
|
94
91
|
- vendor/git-subrepo/.fish.rc
|
|
95
92
|
- vendor/git-subrepo/.gitattributes
|
|
@@ -302,10 +299,8 @@ files:
|
|
|
302
299
|
- vendor/git-subrepo/test/status.t
|
|
303
300
|
- vendor/git-subrepo/test/submodule.t
|
|
304
301
|
- vendor/git-subrepo/test/zsh.t
|
|
305
|
-
homepage:
|
|
306
302
|
licenses: []
|
|
307
303
|
metadata: {}
|
|
308
|
-
post_install_message:
|
|
309
304
|
rdoc_options: []
|
|
310
305
|
require_paths:
|
|
311
306
|
- lib
|
|
@@ -320,8 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
320
315
|
- !ruby/object:Gem::Version
|
|
321
316
|
version: '0'
|
|
322
317
|
requirements: []
|
|
323
|
-
rubygems_version: 3.
|
|
324
|
-
signing_key:
|
|
318
|
+
rubygems_version: 3.6.9
|
|
325
319
|
specification_version: 4
|
|
326
320
|
summary: Put here de description.
|
|
327
321
|
test_files: []
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require 'parseconfig'
|
|
4
|
-
|
|
5
|
-
module EacGit
|
|
6
|
-
class Local
|
|
7
|
-
class Subrepo
|
|
8
|
-
class Config
|
|
9
|
-
MAPPING = {
|
|
10
|
-
command_version: :cmdver, commit_id: :commit, join_method: :method,
|
|
11
|
-
parent_commit_id: :parent, remote_branch: :branch, remote_uri: :remote
|
|
12
|
-
}.freeze
|
|
13
|
-
|
|
14
|
-
class << self
|
|
15
|
-
def from_file(file_path)
|
|
16
|
-
new(
|
|
17
|
-
::ParseConfig.new(file_path.to_pathname)['subrepo']
|
|
18
|
-
)
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
common_constructor :values do
|
|
23
|
-
self.values = values.with_indifferent_access
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
MAPPING.each_key do |method_name|
|
|
27
|
-
define_method(method_name) do
|
|
28
|
-
values[MAPPING.fetch(method_name)]
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
define_method("#{method_name}=") do |value|
|
|
32
|
-
values[MAPPING.fetch(method_name)] = value
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
def to_content
|
|
37
|
-
"[subrepo]\n" + MAPPING.map { |k, v| " #{v} = #{send(k)}\n" }.join # rubocop:disable Style/StringConcatenation
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|