tagrity 0.3.0 → 0.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/tagrity/tag_generator.rb +3 -3
- data/lib/tagrity/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 13500a07d1e3b5d4252c672f4f834ce6fa1c4469b3a85c6c25aea178c63aa711
|
|
4
|
+
data.tar.gz: 3872291c8b4bd1fca09bafc0f66f813f197dbc02ae13a0b381496a0f1e1eccda
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3656fff98985bb4a27b8194f6318461be7ff4ca6ad4b840b658e5d1de9cddc69b3e329018d8dcdc97bdd018654f77d15c942c80d257aa88c38b13c871563a61b
|
|
7
|
+
data.tar.gz: f804edab3d0b1ef85af2f0debf2cdce7a5c07314366d0b595cac4b7fb8a0dfb59fa81198b618ee76a63b6dc1d6cd54e8468706996c1fcdf0cc61867312b80b62
|
data/Gemfile.lock
CHANGED
|
@@ -43,7 +43,7 @@ module Tagrity
|
|
|
43
43
|
check_git = false
|
|
44
44
|
end
|
|
45
45
|
files
|
|
46
|
-
.select { |file|
|
|
46
|
+
.select { |file| generate_tags?(file, check_git) }
|
|
47
47
|
.group_by { |file| @config.command_for_extension(file.split('.').last) }
|
|
48
48
|
.each do |cmd, fnames|
|
|
49
49
|
Tempfile.create do |tmpf|
|
|
@@ -76,8 +76,8 @@ module Tagrity
|
|
|
76
76
|
|
|
77
77
|
private
|
|
78
78
|
|
|
79
|
-
def generate_tags?(file)
|
|
80
|
-
return indexable?(file)
|
|
79
|
+
def generate_tags?(file, check_git)
|
|
80
|
+
return (!check_git || !Helper.file_ignored?(file)) && indexable?(file)
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
def indexable?(file)
|
data/lib/tagrity/version.rb
CHANGED