gem-ttags 1.0.4 → 1.0.6

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: 5c2e9da6ae9a02f46a920b58dda95c5d30d4e523c0e79c6b3e6aa21a98f71c95
4
- data.tar.gz: 8b8308f6639a1917097207f5d4bcc7f6ff26664a60eedab14bf35112531c87c6
3
+ metadata.gz: c9010d7cb2e81cee3e644162e86aceb640245ead58378c6acac2bd5dff32a149
4
+ data.tar.gz: 494583b0fd166ca16f914e8957cb12cc502a019d90af1e4f088e08dcdb45f65a
5
5
  SHA512:
6
- metadata.gz: 85e3b7424c48306bab31d029a918cc17b57c6429678985a97b12dffc1d412b8af12228d1cadb8c534d568cda16e3a219ed93ee7ca7f6042f96468ff812a5c427
7
- data.tar.gz: a5f9a0171af6f3b7440d5059475a90db60c264ec09d3b3c80117d3efb308fa7b8823eca5bb8bc5fcb8669874d9bc13aca19922134b1545ba7fc09bc545a49309
6
+ metadata.gz: ae7bc168f09c89ff76fb5550bfc46681930d404dd6dcebb7b051804fd545529afa383c52468b409ec0a5dcb42194bc9c9c2b991a85d2d302d0375f3a06908d06
7
+ data.tar.gz: 76effca5546e582392a90260521a5ec9c3adcc4257eedd53afb81d7ee1e79b4c136a16971b1f85ac00f34f673ae55f6e664bffced07cbcb919f9ffea33f7297c
data/gem-ttags.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "gem-ttags"
5
- spec.version = "1.0.4"
5
+ spec.version = "1.0.6"
6
6
  spec.authors = ["Nick Pezza"]
7
7
  spec.email = ["pezza@hey.com"]
8
8
 
@@ -31,9 +31,9 @@ class Gem::Commands::TtagsCommand < Gem::Command
31
31
  gem_path = Pathname.new(spec.full_gem_path)
32
32
 
33
33
  tag_file = gem_path.join("tags")
34
- paths =
35
- spec.require_paths.map { |p| Dir.glob(gem_path.join(p, "**/*.rb")) }
36
- puts "#{gem_path} #{paths.any?} #{can_write?(tag_file)}"
34
+ paths = spec.require_paths.flat_map do |p|
35
+ Dir.glob(gem_path.join(p, "**/*.rb"))
36
+ end
37
37
  if paths.any? && can_write?(tag_file)
38
38
  ui&.say "Generating ttags for #{spec.full_name}"
39
39
  invoke(tag_file, *paths)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem-ttags
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Pezza