tagrity 0.2.9 → 0.2.14
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/Gemfile.lock +8 -8
- data/lib/tagrity/tag_generator.rb +5 -5
- data/lib/tagrity/version.rb +1 -1
- data/tagrity.gemspec +2 -2
- data/test_files/barbaz.barbaz.c +7 -0
- data/test_files/expected_after_delete +2 -0
- data/test_files/expected_genall_git_tags +2 -0
- data/test_files/expected_genall_nongit_tags +2 -0
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d022f7adc4357033cc5b8c9bfe115d5ac1d32578b6a9477924bbd60b34b3acd9
|
4
|
+
data.tar.gz: 8d187b13a9693cd63f175ca27833345bd49e6120b6ce594ba3913b360af454e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae1ad835c80b55e1fc005d398a1ea69cfb99e8726b1f116338d57a4f8c4605d572d7fd2e8410cafbe73fa69d7861dc5bae031414114ac8dcb28432a9cccb9a0f
|
7
|
+
data.tar.gz: 238da0aff9d27de08c63561f74926c3070b982b447f0d6a96f5dd34fcbb40e774b5e86e41360e5b2ccb57d0cc9468f2495af347a5f764f5f03bff40f366287ea
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
tagrity (0.2.
|
4
|
+
tagrity (0.2.14)
|
5
5
|
cli-ui (~> 1.3.0)
|
6
|
-
listen (~> 3.
|
6
|
+
listen (~> 3.2.1)
|
7
7
|
pry (~> 0.9.9)
|
8
8
|
thor (~> 0.20)
|
9
9
|
|
@@ -11,9 +11,9 @@ GEM
|
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
13
|
cli-ui (1.3.0)
|
14
|
-
coderay (1.1.
|
14
|
+
coderay (1.1.3)
|
15
15
|
diff-lcs (1.3)
|
16
|
-
ffi (1.
|
16
|
+
ffi (1.13.1)
|
17
17
|
listen (3.2.1)
|
18
18
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
19
19
|
rb-inotify (~> 0.9, >= 0.9.10)
|
@@ -22,8 +22,8 @@ GEM
|
|
22
22
|
coderay (~> 1.0)
|
23
23
|
method_source (~> 0.8)
|
24
24
|
slop (~> 3.4)
|
25
|
-
rake (
|
26
|
-
rb-fsevent (0.10.
|
25
|
+
rake (13.0.1)
|
26
|
+
rb-fsevent (0.10.4)
|
27
27
|
rb-inotify (0.10.1)
|
28
28
|
ffi (~> 1.0)
|
29
29
|
ripper-tags (0.8.0)
|
@@ -48,10 +48,10 @@ PLATFORMS
|
|
48
48
|
|
49
49
|
DEPENDENCIES
|
50
50
|
bundler (~> 2.0)
|
51
|
-
rake (~>
|
51
|
+
rake (~> 13.0)
|
52
52
|
ripper-tags (~> 0.8.0)
|
53
53
|
rspec (~> 3.0)
|
54
54
|
tagrity!
|
55
55
|
|
56
56
|
BUNDLED WITH
|
57
|
-
2.
|
57
|
+
2.1.4
|
@@ -20,7 +20,7 @@ module Tagrity
|
|
20
20
|
cmd = if check_git?
|
21
21
|
'git ls-files 2> /dev/null'
|
22
22
|
else
|
23
|
-
'find * 2> /dev/null'
|
23
|
+
'find * -type f 2> /dev/null'
|
24
24
|
end
|
25
25
|
files = `#{cmd}`.split("\n")
|
26
26
|
if $?.exitstatus == 0
|
@@ -33,12 +33,12 @@ module Tagrity
|
|
33
33
|
def generate(files)
|
34
34
|
return if files.empty?
|
35
35
|
files
|
36
|
-
.select { |file| generate_tags?(file)
|
37
|
-
.group_by { |file| @config.command_for_extension(file.
|
36
|
+
.select { |file| generate_tags?(file)}
|
37
|
+
.group_by { |file| @config.command_for_extension(file.split('.').last) }
|
38
38
|
.each do |cmd, fnames|
|
39
39
|
Tempfile.create do |tmpf|
|
40
40
|
IO::write(tmpf.path, fnames.join("\n"))
|
41
|
-
system(cmd, '-f', tagf, '--append', '-L', tmpf.path, out: File::NULL)
|
41
|
+
system(cmd, '-f', tagf, '--append', '-L', tmpf.path, out: File::NULL, err: File::NULL)
|
42
42
|
if $?.exitstatus == 0
|
43
43
|
@logger.info("{#{cmd}} generated tags for #{fnames} into #{tagf}")
|
44
44
|
else
|
@@ -91,7 +91,7 @@ module Tagrity
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def file_excluded?(fname)
|
94
|
-
@config.ignore_extension?(fname.
|
94
|
+
@config.ignore_extension?(fname.split('.').last) || @config.path_ignored?(fname)
|
95
95
|
end
|
96
96
|
|
97
97
|
def tagf
|
data/lib/tagrity/version.rb
CHANGED
data/tagrity.gemspec
CHANGED
@@ -27,11 +27,11 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.require_paths = ["lib"]
|
28
28
|
|
29
29
|
spec.add_dependency 'thor', '~> 0.20'
|
30
|
-
spec.add_dependency 'listen', '~> 3.
|
30
|
+
spec.add_dependency 'listen', '~> 3.2.1'
|
31
31
|
spec.add_dependency 'cli-ui', '~> 1.3.0'
|
32
32
|
|
33
33
|
spec.add_development_dependency "bundler", "~> 2.0"
|
34
|
-
spec.add_development_dependency "rake", "~>
|
34
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
35
35
|
spec.add_development_dependency "rspec", "~> 3.0"
|
36
36
|
spec.add_development_dependency "ripper-tags", "~> 0.8.0"
|
37
37
|
spec.add_dependency "pry", "~> 0.9.9"
|
@@ -1,6 +1,8 @@
|
|
1
1
|
barbaz_fun_one foo/barbaz.rb /^def barbaz_fun_one$/;" f class:Object
|
2
2
|
barbaz_fun_two foo/barbaz.rb /^def barbaz_fun_two$/;" f class:Object
|
3
|
+
barbaz_one barbaz.barbaz.c /^int barbaz_one() {$/;" f typeref:typename:int
|
3
4
|
barbaz_one barbaz.c /^int barbaz_one() {$/;" f typeref:typename:int
|
5
|
+
barbaz_two barbaz.barbaz.c /^int barbaz_two() {$/;" f typeref:typename:int
|
4
6
|
barbaz_two barbaz.c /^int barbaz_two() {$/;" f typeref:typename:int
|
5
7
|
foobar_fun_one foo/foobar.rb /^def foobar_fun_one$/;" f class:Object
|
6
8
|
foobar_fun_two foo/foobar.rb /^def foobar_fun_two$/;" f class:Object
|
@@ -1,6 +1,8 @@
|
|
1
1
|
barbaz_fun_one foo/barbaz.rb /^def barbaz_fun_one$/;" f class:Object
|
2
2
|
barbaz_fun_two foo/barbaz.rb /^def barbaz_fun_two$/;" f class:Object
|
3
|
+
barbaz_one barbaz.barbaz.c /^int barbaz_one() {$/;" f typeref:typename:int
|
3
4
|
barbaz_one barbaz.c /^int barbaz_one() {$/;" f typeref:typename:int
|
4
5
|
barbaz_one foo/foobar.c /^int barbaz_one() {$/;" f typeref:typename:int
|
6
|
+
barbaz_two barbaz.barbaz.c /^int barbaz_two() {$/;" f typeref:typename:int
|
5
7
|
barbaz_two barbaz.c /^int barbaz_two() {$/;" f typeref:typename:int
|
6
8
|
barbaz_two foo/foobar.c /^int barbaz_two() {$/;" f typeref:typename:int
|
@@ -1,7 +1,9 @@
|
|
1
1
|
barbaz_fun_one foo/barbaz.rb /^def barbaz_fun_one$/;" f class:Object
|
2
2
|
barbaz_fun_two foo/barbaz.rb /^def barbaz_fun_two$/;" f class:Object
|
3
|
+
barbaz_one barbaz.barbaz.c /^int barbaz_one() {$/;" f typeref:typename:int
|
3
4
|
barbaz_one barbaz.c /^int barbaz_one() {$/;" f typeref:typename:int
|
4
5
|
barbaz_one foo/foobar.c /^int barbaz_one() {$/;" f typeref:typename:int
|
6
|
+
barbaz_two barbaz.barbaz.c /^int barbaz_two() {$/;" f typeref:typename:int
|
5
7
|
barbaz_two barbaz.c /^int barbaz_two() {$/;" f typeref:typename:int
|
6
8
|
barbaz_two foo/foobar.c /^int barbaz_two() {$/;" f typeref:typename:int
|
7
9
|
foobar_fun_one foo/foobar.rb /^def foobar_fun_one$/;" f class:Object
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tagrity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam P. Regasz-Rethy
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 3.2.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 3.2.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: cli-ui
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '13.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '13.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -161,6 +161,7 @@ files:
|
|
161
161
|
- tagrity.gemspec
|
162
162
|
- test_files/.gitignore
|
163
163
|
- test_files/.tagrity_config.yml
|
164
|
+
- test_files/barbaz.barbaz.c
|
164
165
|
- test_files/barbaz.c
|
165
166
|
- test_files/expected_after_delete
|
166
167
|
- test_files/expected_genall_git_tags
|
@@ -176,7 +177,7 @@ metadata:
|
|
176
177
|
homepage_uri: https://github.com/RRethy/tagrity
|
177
178
|
source_code_uri: https://github.com/RRethy/tagrity
|
178
179
|
changelog_uri: https://github.com/RRethy/tagrity/blob/master/CHANGELOG.md
|
179
|
-
post_install_message:
|
180
|
+
post_install_message:
|
180
181
|
rdoc_options: []
|
181
182
|
require_paths:
|
182
183
|
- lib
|
@@ -191,8 +192,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
192
|
- !ruby/object:Gem::Version
|
192
193
|
version: '0'
|
193
194
|
requirements: []
|
194
|
-
rubygems_version: 3.
|
195
|
-
signing_key:
|
195
|
+
rubygems_version: 3.1.2
|
196
|
+
signing_key:
|
196
197
|
specification_version: 4
|
197
198
|
summary: Update tags on file changes.
|
198
199
|
test_files: []
|