mate 3.1.0 → 3.3.0
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.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.markdown +1 -1
- data/bin/tm2 +6 -2
- data/lib/mate/git.rb +16 -6
- data/mate.gemspec +13 -4
- metadata +5 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '086f85d6296cda6a2f0bbf9c2b522ebc60bdc18b3f37ae6356f99001c88483d1'
|
|
4
|
+
data.tar.gz: e5fe5e12bf8654d276e409d28b6ba565582c8a0f86ec7d369bc4b21350565967
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 983ef85fe34b3f5145ea5143756927c007890f75996b95eaf45e855145e1c3625711462265258d94a896980b8e4b4c5a711a5a013223152648c67fe985896944
|
|
7
|
+
data.tar.gz: dde6f73ec56a90351a6d4558b99926341ae95038278b1c4e56da215edae51b5c11da0f673510fc39015649f347884a2e5185ad4af67a2775059b9650ff84cf4c
|
data/LICENSE.txt
CHANGED
data/README.markdown
CHANGED
data/bin/tm2
CHANGED
|
@@ -14,10 +14,14 @@ OptionParser.new do |op|
|
|
|
14
14
|
end
|
|
15
15
|
end.order!
|
|
16
16
|
|
|
17
|
-
ARGV.
|
|
17
|
+
args = ARGV.flat_map do |arg|
|
|
18
18
|
if File.directory?(arg)
|
|
19
19
|
Mate::TmProperties.create(arg, options)
|
|
20
|
+
elsif !File.file?(arg) && (m = /\A(.*):(\d+)\z/.match(arg))
|
|
21
|
+
%W[-l #{$2} #{$1}]
|
|
22
|
+
else
|
|
23
|
+
arg
|
|
20
24
|
end
|
|
21
25
|
end
|
|
22
26
|
|
|
23
|
-
system Mate::Bin.v2, *
|
|
27
|
+
system Mate::Bin.v2, *args
|
data/lib/mate/git.rb
CHANGED
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
module Mate
|
|
2
2
|
module Git
|
|
3
3
|
class << self
|
|
4
|
-
def excludesfile(
|
|
5
|
-
|
|
4
|
+
def excludesfile(working_dir)
|
|
5
|
+
excludesfile = IO.popen(%W[git -C #{working_dir} config --get core.excludesfile], &:read)
|
|
6
|
+
|
|
7
|
+
if excludesfile.empty?
|
|
8
|
+
xdg_config_home = ENV['XDG_CONFIG_HOME']
|
|
9
|
+
|
|
10
|
+
xdg_config_home = '~/.config' if !xdg_config_home || xdg_config_home.empty?
|
|
11
|
+
|
|
12
|
+
excludesfile = File.join(xdg_config_home, 'git/ignore')
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
expand_path excludesfile
|
|
6
16
|
end
|
|
7
17
|
|
|
8
18
|
def global_tmignore
|
|
9
19
|
expand_path '~/.tmignore'
|
|
10
20
|
end
|
|
11
21
|
|
|
12
|
-
def toplevel(
|
|
13
|
-
expand_path IO.popen(%W[git -C #{
|
|
22
|
+
def toplevel(working_dir)
|
|
23
|
+
expand_path IO.popen(%W[git -C #{working_dir} rev-parse --show-toplevel], err: '/dev/null', &:read)
|
|
14
24
|
end
|
|
15
25
|
|
|
16
|
-
def git_dir(
|
|
17
|
-
expand_path IO.popen(%W[git -C #{
|
|
26
|
+
def git_dir(working_dir)
|
|
27
|
+
expand_path IO.popen(%W[git -C #{working_dir} rev-parse --absolute-git-dir], err: '/dev/null', &:read)
|
|
18
28
|
end
|
|
19
29
|
|
|
20
30
|
private
|
data/mate.gemspec
CHANGED
|
@@ -2,20 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = 'mate'
|
|
5
|
-
s.version = '3.
|
|
5
|
+
s.version = '3.3.0'
|
|
6
6
|
s.summary = %q{TextMate 2 properties builder using git ignores for exclusions}
|
|
7
7
|
s.homepage = "https://github.com/toy/#{s.name}"
|
|
8
8
|
s.authors = ['Ivan Kuchin']
|
|
9
9
|
s.license = 'MIT'
|
|
10
10
|
|
|
11
|
+
s.required_ruby_version = '>= 1.9.3'
|
|
12
|
+
|
|
11
13
|
s.metadata = {
|
|
12
14
|
'bug_tracker_uri' => "https://github.com/toy/#{s.name}/issues",
|
|
13
15
|
'documentation_uri' => "https://www.rubydoc.info/gems/#{s.name}/#{s.version}",
|
|
14
16
|
'source_code_uri' => "https://github.com/toy/#{s.name}",
|
|
15
17
|
}
|
|
16
18
|
|
|
17
|
-
s.files
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
s.files = Dir[*%w[
|
|
20
|
+
.gitignore
|
|
21
|
+
LICENSE.txt
|
|
22
|
+
*.markdown
|
|
23
|
+
*.gemspec
|
|
24
|
+
{bin,lib}/**/*
|
|
25
|
+
]].reject(&File.method(:directory?))
|
|
26
|
+
|
|
27
|
+
s.executables = Dir['bin/*'].map(&File.method(:basename))
|
|
28
|
+
|
|
20
29
|
s.require_paths = %w[lib]
|
|
21
30
|
end
|
metadata
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mate
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Kuchin
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies: []
|
|
13
|
-
description:
|
|
14
|
-
email:
|
|
15
12
|
executables:
|
|
16
13
|
- tm2
|
|
17
14
|
extensions: []
|
|
@@ -31,9 +28,8 @@ licenses:
|
|
|
31
28
|
- MIT
|
|
32
29
|
metadata:
|
|
33
30
|
bug_tracker_uri: https://github.com/toy/mate/issues
|
|
34
|
-
documentation_uri: https://www.rubydoc.info/gems/mate/3.
|
|
31
|
+
documentation_uri: https://www.rubydoc.info/gems/mate/3.3.0
|
|
35
32
|
source_code_uri: https://github.com/toy/mate
|
|
36
|
-
post_install_message:
|
|
37
33
|
rdoc_options: []
|
|
38
34
|
require_paths:
|
|
39
35
|
- lib
|
|
@@ -41,15 +37,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
41
37
|
requirements:
|
|
42
38
|
- - ">="
|
|
43
39
|
- !ruby/object:Gem::Version
|
|
44
|
-
version:
|
|
40
|
+
version: 1.9.3
|
|
45
41
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
46
42
|
requirements:
|
|
47
43
|
- - ">="
|
|
48
44
|
- !ruby/object:Gem::Version
|
|
49
45
|
version: '0'
|
|
50
46
|
requirements: []
|
|
51
|
-
rubygems_version:
|
|
52
|
-
signing_key:
|
|
47
|
+
rubygems_version: 4.0.3
|
|
53
48
|
specification_version: 4
|
|
54
49
|
summary: TextMate 2 properties builder using git ignores for exclusions
|
|
55
50
|
test_files: []
|