guard-ctags-bundler 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,10 +8,15 @@ class Guard::Ctags::Bundler::CtagsGenerator
8
8
  end
9
9
 
10
10
  def generate_bundler_tags
11
- definition = Bundler::Definition.build("Gemfile", "Gemfile.lock", nil)
12
- runtime = Bundler::Runtime.new(Dir.pwd, definition)
13
- paths = runtime.requested_specs.map(&:full_gem_path)
14
- generate_tags(paths, "gems.tags")
11
+ # this code doesn't work with recent bundler versions
12
+ #definition = Bundler::Definition.build("Gemfile", "Gemfile.lock", nil)
13
+ #runtime = Bundler::Runtime.new(Dir.pwd, definition)
14
+ #paths = runtime.requested_specs.map(&:full_gem_path)
15
+ #generate_tags(paths, "gems.tags")
16
+
17
+ # this is ugly, but should work with every bundler version
18
+ paths = `ruby -e "require('bundler'); puts(Bundler.load.specs.map(&:full_gem_path).join(' '))"`
19
+ generate_tags(paths.strip, "gems.tags")
15
20
  end
16
21
 
17
22
  private
@@ -1,7 +1,7 @@
1
1
  module Guard
2
2
  module Ctags
3
3
  module Bundler
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-ctags-bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-20 00:00:00.000000000 Z
12
+ date: 2012-07-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
@@ -98,7 +98,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  segments:
100
100
  - 0
101
- hash: 974875642901378133
101
+ hash: 816740881448470877
102
102
  required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  none: false
104
104
  requirements:
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  version: '0'
108
108
  segments:
109
109
  - 0
110
- hash: 974875642901378133
110
+ hash: 816740881448470877
111
111
  requirements: []
112
112
  rubyforge_project: guard-ctags-bundler
113
113
  rubygems_version: 1.8.23