mate 3.2.0 → 3.3.1

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.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/README.markdown +1 -1
  4. data/bin/tm2 +7 -2
  5. data/mate.gemspec +13 -4
  6. metadata +5 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46c76868c79449ac3b64fdd74f8318431fd1148109ee4fe53071a8a6fbbeb1a5
4
- data.tar.gz: fef0964e9b94d9cd7a59b12f1208c3a765300da0cdb03cd9919bbfca2c674351
3
+ metadata.gz: e19696334285efef7270205a4de096e20d8597deb0738ca8900afaf0908e64ea
4
+ data.tar.gz: d66fe6a61c1863e22d22fb467d9fa057913879c439baffb8be59be51733ae40e
5
5
  SHA512:
6
- metadata.gz: ce8dd957e1bf48793669c2fb592b357ec456478258e254e9894539dcccfe16bf4a65e46e5fc8b169a60845eb90edf7e48a445a40492862c4483a869865d53f6d
7
- data.tar.gz: d9b0af56b3d05042bfee965969b1810ffe75aeeec5e3ca83d7b3ecb4df603749e9ce2bb2004023066628baa682c5c1824603c309142963568aad3c2d85eeb052
6
+ metadata.gz: 470fdb7fd11e9811963f31e587f74cfec655c404741869cb85977f9e8f318792d32237c696c46547559dea48e3e93316c130f8f7153c08e5a542655f3b13cbb0
7
+ data.tar.gz: 1530bd3bb638359f0a6e192055e22d0045847036ec6691b9f4bc9f2881616abc5668c369a4af913ac92c2d52299626d1d80028a609c74ffab98a4755118ab9e9
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2023 Ivan Kuchin
1
+ Copyright (c) 2010-2026 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-2023 Ivan Kuchin. See LICENSE.txt for details.
11
+ Copyright (c) 2010-2026 Ivan Kuchin. See LICENSE.txt for details.
data/bin/tm2 CHANGED
@@ -14,10 +14,15 @@ OptionParser.new do |op|
14
14
  end
15
15
  end.order!
16
16
 
17
- ARGV.each do |arg|
17
+ args = ARGV.flat_map do |arg|
18
18
  if File.directory?(arg)
19
19
  Mate::TmProperties.create(arg, options)
20
+ arg
21
+ elsif !File.file?(arg) && /\A(?<path>.*):(?<line>\d+)\z/ =~ arg
22
+ %W[-l #{line} #{path}]
23
+ else
24
+ arg
20
25
  end
21
26
  end
22
27
 
23
- system Mate::Bin.v2, *ARGV
28
+ system Mate::Bin.v2, *args
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.2.0'
5
+ s.version = '3.3.1'
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 = `git ls-files`.split("\n")
18
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
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.2.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kuchin
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-06-30 00:00:00.000000000 Z
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.2.0
31
+ documentation_uri: https://www.rubydoc.info/gems/mate/3.3.1
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: '0'
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: 3.4.12
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: []