gitlab_git 10.6.1 → 10.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/gitlab_git/attributes.rb +5 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a202d39e517407a71c115e39467fb8553a4b3f47
|
4
|
+
data.tar.gz: 4ad70784b155beb212a5c6871714ce8dc3b33f09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 074107c720aebcb96a15ca9c2643288c2f02dcd699cafc3e7e2482c519277efd108d4d424233a0740a28f57674eb3352e4528fc47ffdb16988632d714d11c183
|
7
|
+
data.tar.gz: 6bb3b46d30f6cb1cf4b423947278991b2e87f65f821357dbf5dc16c6c5bb7991b3ec21721c0af3d4a4cbd161878674008896aa82dcfc2fa15051d72190643cbf
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
10.6.
|
1
|
+
10.6.2
|
@@ -18,7 +18,7 @@ module Gitlab
|
|
18
18
|
class Attributes
|
19
19
|
# path - The path to the Git repository.
|
20
20
|
def initialize(path)
|
21
|
-
@path = path
|
21
|
+
@path = File.expand_path(path)
|
22
22
|
@patterns = nil
|
23
23
|
end
|
24
24
|
|
@@ -28,8 +28,10 @@ module Gitlab
|
|
28
28
|
#
|
29
29
|
# Returns a Hash.
|
30
30
|
def attributes(path)
|
31
|
+
full_path = File.join(@path, path)
|
32
|
+
|
31
33
|
patterns.each do |pattern, attrs|
|
32
|
-
return attrs if File.fnmatch(pattern,
|
34
|
+
return attrs if File.fnmatch?(pattern, full_path)
|
33
35
|
end
|
34
36
|
|
35
37
|
{}
|
@@ -107,7 +109,7 @@ module Gitlab
|
|
107
109
|
|
108
110
|
pattern, attrs = line.split(/\s+/, 2)
|
109
111
|
|
110
|
-
pairs << [pattern, parse_attributes(attrs)]
|
112
|
+
pairs << [File.join(@path, pattern), parse_attributes(attrs)]
|
111
113
|
end
|
112
114
|
|
113
115
|
# Newer entries take precedence over older entries.
|
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.
|
4
|
+
version: 10.6.2
|
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-
|
11
|
+
date: 2016-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github-linguist
|