eac_git 0.4.2 → 0.5.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/executables.rb +4 -0
- data/lib/eac_git/local/commit/archive.rb +19 -0
- data/lib/eac_git/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e93bc1263137fa2c49da54b4d9e126e66d18a366f3905600123aa29a7d1433b
|
4
|
+
data.tar.gz: e3b1255fcb3afbb74564e8b5e6518066d45c5c4f95a980a302fae55db5e07e4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0093f9f61cca73f4335c53c0e1c454ecb13e35a133d20f575de5c671da4687cd7d0722cfac8d6a5f8507da6dec1a5dd83063fcbd0d18b94bb27044d5cfa9d06
|
7
|
+
data.tar.gz: b7dad37d8394f54b5077fa34933a54a6319275f81544b9c097272a8758261d147a42e04812861f6cfdddebc6778b50a3d04d6e6de996be48234e0bbeb553934b
|
data/lib/eac_git/executables.rb
CHANGED
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
|
5
|
+
module EacGit
|
6
|
+
class Local
|
7
|
+
class Commit
|
8
|
+
module Archive
|
9
|
+
# @return [EacRubyUtils::Envs::Command]
|
10
|
+
def archive_to_dir(path)
|
11
|
+
path = path.to_pathname
|
12
|
+
repo.command('archive', '--format=tar', hash).pipe(
|
13
|
+
::EacGit::Executables.tar.command('-xC', path)
|
14
|
+
)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/eac_git/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.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-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eac_ruby_utils
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- lib/eac_git/executables.rb
|
83
83
|
- lib/eac_git/local.rb
|
84
84
|
- lib/eac_git/local/commit.rb
|
85
|
+
- lib/eac_git/local/commit/archive.rb
|
85
86
|
- lib/eac_git/local/commit/changed_file.rb
|
86
87
|
- lib/eac_git/local/commit/diff_tree_line.rb
|
87
88
|
- lib/eac_git/local/dirty_files.rb
|