mate 3.1.0 → 3.2.0

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
  SHA256:
3
- metadata.gz: af1807dfe07bd73b3f6f6f1bf995e9f7dfb53c6ca77a04c3d8a7c300d4b8d44f
4
- data.tar.gz: f55507e729d7c4c2cfb0c26a22e664db8f82f1df3df9e380af0fc34c31a0d80d
3
+ metadata.gz: 46c76868c79449ac3b64fdd74f8318431fd1148109ee4fe53071a8a6fbbeb1a5
4
+ data.tar.gz: fef0964e9b94d9cd7a59b12f1208c3a765300da0cdb03cd9919bbfca2c674351
5
5
  SHA512:
6
- metadata.gz: 0420bdd314f766093447f27d14b754f30a84dbdc992dc0671df7f775e37032b25bd26b9411443563d33222c8db0e48131d03fabc8fecc2ab2655afea1c66f5cc
7
- data.tar.gz: fd4824a180151d3bdb5e27d052b4d09998a18e0569c27cc7f9879af78f0950c4ea0ba98517d20d15829ac2dd09469be78521f58aa09c7ddd42f2d3c40e25762b
6
+ metadata.gz: ce8dd957e1bf48793669c2fb592b357ec456478258e254e9894539dcccfe16bf4a65e46e5fc8b169a60845eb90edf7e48a445a40492862c4483a869865d53f6d
7
+ data.tar.gz: d9b0af56b3d05042bfee965969b1810ffe75aeeec5e3ca83d7b3ecb4df603749e9ce2bb2004023066628baa682c5c1824603c309142963568aad3c2d85eeb052
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2022 Ivan Kuchin
1
+ Copyright (c) 2010-2023 Ivan Kuchin
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.markdown CHANGED
@@ -8,4 +8,4 @@ When `tm2` command (or `mate` if aliased) is called with one or more paths, for
8
8
 
9
9
  ## Copyright
10
10
 
11
- Copyright (c) 2010-2022 Ivan Kuchin. See LICENSE.txt for details.
11
+ Copyright (c) 2010-2023 Ivan Kuchin. See LICENSE.txt for details.
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(workind_dir)
5
- expand_path IO.popen(%W[git -C #{workind_dir} config --get core.excludesfile], &:read)
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(workind_dir)
13
- expand_path IO.popen(%W[git -C #{workind_dir} rev-parse --show-toplevel], err: '/dev/null', &:read)
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(workind_dir)
17
- expand_path IO.popen(%W[git -C #{workind_dir} rev-parse --absolute-git-dir], err: '/dev/null', &:read)
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,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'mate'
5
- s.version = '3.1.0'
5
+ s.version = '3.2.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']
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: 3.1.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kuchin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-14 00:00:00.000000000 Z
11
+ date: 2023-06-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -31,7 +31,7 @@ licenses:
31
31
  - MIT
32
32
  metadata:
33
33
  bug_tracker_uri: https://github.com/toy/mate/issues
34
- documentation_uri: https://www.rubydoc.info/gems/mate/3.1.0
34
+ documentation_uri: https://www.rubydoc.info/gems/mate/3.2.0
35
35
  source_code_uri: https://github.com/toy/mate
36
36
  post_install_message:
37
37
  rdoc_options: []
@@ -48,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  requirements: []
51
- rubygems_version: 3.3.11
51
+ rubygems_version: 3.4.12
52
52
  signing_key:
53
53
  specification_version: 4
54
54
  summary: TextMate 2 properties builder using git ignores for exclusions