mate 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +9 -9
- data/lib/mate/tm_properties/ignores.rb +11 -1
- data/mate.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWEzYjUwOTI1ZTQ5NGZjNDQ0YmI5YmY3MWIwMWI2MGZmMGMzMjliYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
7
|
-
|
6
|
+
YmE2NzQ4ZjBmODc3NjVmNzMxMGJjNmFiMjM0NzI0NmE5NTkzN2E0OA==
|
7
|
+
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2M3YWViOTI0ZTBmOTE2ZjU3NTkwZGJjMDU1MDg3YmVmYjMwYTI3YzIxMzEx
|
10
|
+
NWIwZDc0M2E4MjAzY2Y2MDg5N2YzZTMxNWFiZDUyZmQwOTg2NzMxOTI3MTky
|
11
|
+
NzNmYzFmZjYwMzY5M2IwYjM2Y2Q4MDBmZjJlMzIxMTAyYmRiMjc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDA2OGQxYWM2ZmI2MTBkNGZlN2E1MWRkNDJkMjM2YzJhMjMxYjg5YjQwYzM2
|
14
|
+
ZWNiODIxOTZlNzQ2OTgyM2NlYTAwZWE4M2JjYzIyNjJjN2NiMWRhN2U0ZDU5
|
15
|
+
OThhYjFlNmFmNmU3ODhhMGUzNTQzZGZlNTc0N2Y5MDI0MzBhZGU=
|
@@ -14,9 +14,11 @@ module Mate
|
|
14
14
|
|
15
15
|
dir.find do |path|
|
16
16
|
if path.directory?
|
17
|
+
relative_path = path.relative_path_from(dir).to_s
|
18
|
+
Find.prune if ignore_dir?(relative_path)
|
17
19
|
%w[.gitignore .tmignore .git/info/exclude].each do |ignore_file_name|
|
18
20
|
if (ignore_file = path + ignore_file_name).file?
|
19
|
-
process(dir,
|
21
|
+
process(dir, relative_path, ignore_file)
|
20
22
|
end
|
21
23
|
end
|
22
24
|
end
|
@@ -33,6 +35,14 @@ module Mate
|
|
33
35
|
|
34
36
|
private
|
35
37
|
|
38
|
+
def ignore_dir?(path)
|
39
|
+
[@exclude, @exclude_directories].any? do |patterns|
|
40
|
+
patterns.any? do |pattern|
|
41
|
+
File.fnmatch(pattern, path, File::FNM_PATHNAME)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
36
46
|
def process(parent, subdirectory, ignore_file)
|
37
47
|
return unless ignore_file.exist?
|
38
48
|
|
data/mate.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'mate'
|
5
|
-
s.version = '2.0.
|
5
|
+
s.version = '2.0.2'
|
6
6
|
s.summary = %q{TextMate project builder and TextMate 2 properties builder using git ignores for exclusions}
|
7
7
|
s.homepage = "http://github.com/toy/#{s.name}"
|
8
8
|
s.authors = ['Ivan Kuchin']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Kuchin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: plist
|
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
65
|
rubyforge_project: mate
|
66
|
-
rubygems_version: 2.
|
66
|
+
rubygems_version: 2.1.11
|
67
67
|
signing_key:
|
68
68
|
specification_version: 4
|
69
69
|
summary: TextMate project builder and TextMate 2 properties builder using git ignores
|