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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 934bf9219e56f7f9c3916b591915fd05364ec04e
4
- data.tar.gz: 600f7c9289d835a5c23ba5baf59aab8005adfc48
3
+ metadata.gz: a202d39e517407a71c115e39467fb8553a4b3f47
4
+ data.tar.gz: 4ad70784b155beb212a5c6871714ce8dc3b33f09
5
5
  SHA512:
6
- metadata.gz: 5bd6f6d78ac79e92aec4ca4b4642fa37c9295e7f40240d2c27b3780b92c94137abe2d1e7fc008730f6f174c9334688c79357bc6db16b6fa892f8c4f86a050e0c
7
- data.tar.gz: 532da57c8cf2de63a243b25dc6d899bb5817a99c83614f627d3d0255a9a0cefc8756a72df6f25eea5d5cdb7892e89aa0fd84353d8080c58e7b3fdbfb8c35d8dc
6
+ metadata.gz: 074107c720aebcb96a15ca9c2643288c2f02dcd699cafc3e7e2482c519277efd108d4d424233a0740a28f57674eb3352e4528fc47ffdb16988632d714d11c183
7
+ data.tar.gz: 6bb3b46d30f6cb1cf4b423947278991b2e87f65f821357dbf5dc16c6c5bb7991b3ec21721c0af3d4a4cbd161878674008896aa82dcfc2fa15051d72190643cbf
data/VERSION CHANGED
@@ -1 +1 @@
1
- 10.6.1
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, path)
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.1
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-01 00:00:00.000000000 Z
11
+ date: 2016-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: github-linguist