eac_git 0.18.0 → 0.18.1
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/changed_file.rb +6 -0
- data/lib/eac_git/local.rb +1 -1
- data/lib/eac_git/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee396b6b06ed9d87b501637c01bf2a61a812c94938c57b1407819a6822d26c0e
|
4
|
+
data.tar.gz: 0bb3f62418b2640ab52223ea909afcff060071d4b0b42012a3ef251b41a20943
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cda81b1f0c0af6002580adc0b9189b93eab526a2ad0bf6b1e71eca8920f4dba0fbc5b0a346dc17c960f35d6856b828a53f740ada0ff09eb3e6cd0885975b92b7
|
7
|
+
data.tar.gz: b7ef974068c4e32323e3a18a52d82bcf9d450813df5b6874c90b8d2516b88ec7ac4b581a6f091572bfdee43192bcf8b8749a0b0c2a84b789a676eae730e73fca
|
@@ -5,6 +5,7 @@ module EacGit
|
|
5
5
|
class ChangedFile
|
6
6
|
QUOTED_PATH_PATTERN = /\A"(.+)"\z/.freeze
|
7
7
|
STATUS_LINE_PATTERN = /\A(.)(.)\s(.+)\z/.freeze
|
8
|
+
TO_HASH_ATTRIBUTES = %i[absolute_path index path worktree].freeze
|
8
9
|
|
9
10
|
class << self
|
10
11
|
def by_porcelain_v1_line(local_repo, line)
|
@@ -42,6 +43,11 @@ module EacGit
|
|
42
43
|
def modify?
|
43
44
|
[index, worktree].include?('M')
|
44
45
|
end
|
46
|
+
|
47
|
+
# @return [Hash]
|
48
|
+
def to_h
|
49
|
+
compact_to_h(*TO_HASH_ATTRIBUTES)
|
50
|
+
end
|
45
51
|
end
|
46
52
|
end
|
47
53
|
end
|
data/lib/eac_git/local.rb
CHANGED
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.18.
|
4
|
+
version: 0.18.1
|
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: 2025-
|
11
|
+
date: 2025-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eac_ruby_utils
|
@@ -17,6 +17,9 @@ dependencies:
|
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.128'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.128.3
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -24,6 +27,9 @@ dependencies:
|
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0.128'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.128.3
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: parseconfig
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|