avm-tools 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/git/commit/diff_tree_line.rb +1 -1
- data/lib/avm/tools/runner/git/commit.rb +7 -3
- data/lib/avm/tools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20510ab3933cf19bae2c7ae012845a0126759023067b31a5d0bc8a460a7803f2
|
4
|
+
data.tar.gz: 7a8121313ffe1c01c8a1eb2cb46406245a14cdec822b9e2beb9f77bc9bb66d23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52d429231e958647ffc6e19f63052148d387124e38419c3cc83b03edae8c8e9060263855db6a0d89ae2b330ecb4ed2aa053f217b4f39c560415cdf0cac3e709d
|
7
|
+
data.tar.gz: 5c1a859a46d6ef3dac1b1d2aebb96021293f04a5925f109171f52361e539ce66d4c84d4fc56eb775e7852b63930d49865380bf1cbdf87930c9e239a635ff7bef
|
@@ -6,7 +6,7 @@ module Avm
|
|
6
6
|
class DiffTreeLine
|
7
7
|
DIFF_TREE_PATTERN = /\A:(\d{6}) (\d{6}) (\S+) (\S+) (\S+)\t(\S.*)\z/.freeze
|
8
8
|
FIELDS = %w[src_mode dst_mode src_sha1 dst_sha1 status path].freeze
|
9
|
-
GIT_COMMAND_ARGS = %w[diff-tree --no-commit-id -r --full-index].freeze
|
9
|
+
GIT_COMMAND_ARGS = %w[-c core.quotepath=off diff-tree --no-commit-id -r --full-index].freeze
|
10
10
|
|
11
11
|
attr_reader(*FIELDS)
|
12
12
|
|
@@ -59,7 +59,7 @@ module Avm
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def size_banner
|
62
|
-
return unless
|
62
|
+
return unless show_size?
|
63
63
|
|
64
64
|
infov 'Total files size', bytes_size(commit.files_size)
|
65
65
|
end
|
@@ -73,8 +73,8 @@ module Avm
|
|
73
73
|
end
|
74
74
|
|
75
75
|
def file_value(file)
|
76
|
-
s =
|
77
|
-
s += ",
|
76
|
+
s = file.status
|
77
|
+
s += ", #{bytes_size(file.dst_size)}" if show_size?
|
78
78
|
s
|
79
79
|
end
|
80
80
|
|
@@ -102,6 +102,10 @@ module Avm
|
|
102
102
|
b = "#{size} B"
|
103
103
|
"#{::Filesize.from(b).pretty} (#{b})"
|
104
104
|
end
|
105
|
+
|
106
|
+
def show_size?
|
107
|
+
options.fetch('--size')
|
108
|
+
end
|
105
109
|
end
|
106
110
|
end
|
107
111
|
end
|
data/lib/avm/tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-09-
|
11
|
+
date: 2019-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha-parsers
|