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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44a28c913e5e4937ae791ffa209f3bbff9313d20672cb75dc73463def7800544
4
- data.tar.gz: bc91631f9845c1b9e04279b05143447d7f387a257c492c4d7a234445254ffc3c
3
+ metadata.gz: 20510ab3933cf19bae2c7ae012845a0126759023067b31a5d0bc8a460a7803f2
4
+ data.tar.gz: 7a8121313ffe1c01c8a1eb2cb46406245a14cdec822b9e2beb9f77bc9bb66d23
5
5
  SHA512:
6
- metadata.gz: 45051d0661ae702fdd778a07902fae0830b4b24bfebbf5b73a7634f0b05885908505777e3e8fabdcb1599ff3a8550ef78a6f64440ef7cc374cde456cd32ae3ab
7
- data.tar.gz: 6bb53ccac22daee1b2640ffc1c7a5e1cebe93c9313db59002668ca85902d5654b6ca4526ff8dedbf08b7a2467fbad07f0cb1519b1711b8c1cd2e6f3b2fd26c84
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 options.fetch('--sizes')
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 = "status: #{file.status}"
77
- s += ", size: #{bytes_size(file.dst_size)}" if options.fetch('--sizes')
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module Tools
5
- VERSION = '0.11.0'
5
+ VERSION = '0.11.1'
6
6
  end
7
7
  end
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.0
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-19 00:00:00.000000000 Z
11
+ date: 2019-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha-parsers