gitlab_git 10.6.2 → 10.6.3

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/gitlab_git/attributes.rb +12 -5
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a202d39e517407a71c115e39467fb8553a4b3f47
4
- data.tar.gz: 4ad70784b155beb212a5c6871714ce8dc3b33f09
3
+ metadata.gz: d7297d7f12907c147d8b039f91aa75a16487a906
4
+ data.tar.gz: 1de3808442341ecfad0353eef558ba61324f658c
5
5
  SHA512:
6
- metadata.gz: 074107c720aebcb96a15ca9c2643288c2f02dcd699cafc3e7e2482c519277efd108d4d424233a0740a28f57674eb3352e4528fc47ffdb16988632d714d11c183
7
- data.tar.gz: 6bb3b46d30f6cb1cf4b423947278991b2e87f65f821357dbf5dc16c6c5bb7991b3ec21721c0af3d4a4cbd161878674008896aa82dcfc2fa15051d72190643cbf
6
+ metadata.gz: 8c9dfac728a81523ed04bdf3342e9e1a332348246db2ef10013f70f793170858c5900ed9add33c969d5f93031b402f157ec92cab2ad813e04dfb10205d51332b
7
+ data.tar.gz: 0ebaf2bd41d9ce8bf6babdc4d8a4859d6f80c233606cf108cc9dbdf57dc2685819afaea35f431a540f1eeeafc4d93c35fe2d2939e76405c2a7b8eef50247621e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 10.6.2
1
+ 10.6.3
@@ -57,28 +57,35 @@ module Gitlab
57
57
  values = {}
58
58
  dash = '-'
59
59
  equal = '='
60
+ binary = 'binary'
60
61
 
61
62
  string.split(/\s+/).each do |chunk|
62
63
  # Data such as "foo = bar" should be treated as "foo" and "bar" being
63
64
  # separate boolean attributes.
64
65
  next if chunk == equal
65
66
 
67
+ key = chunk
68
+
66
69
  # Input: "-foo"
67
70
  if chunk.start_with?(dash)
68
71
  key = chunk.byteslice(1, chunk.length - 1)
69
-
70
- values[key] = false
72
+ value = false
71
73
 
72
74
  # Input: "foo=bar"
73
75
  elsif chunk.include?(equal)
74
76
  key, value = chunk.split(equal, 2)
75
77
 
76
- values[key] = value
77
-
78
78
  # Input: "foo"
79
79
  else
80
- values[chunk] = true
80
+ value = true
81
81
  end
82
+
83
+ values[key] = value
84
+
85
+ # When the "binary" option is set the "diff" option should be set to
86
+ # the inverse. If "diff" is later set it should overwrite the
87
+ # automatically set value.
88
+ values['diff'] = false if key == binary && value
82
89
  end
83
90
 
84
91
  values
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_git
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.6.2
4
+ version: 10.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Zaporozhets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-05 00:00:00.000000000 Z
11
+ date: 2016-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-linguist