guard-ctags-bundler 0.1.5 → 0.1.6
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.
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'rbconfig'
|
2
|
-
require 'bundler'
|
3
|
-
require 'bundler/runtime'
|
2
|
+
#require 'bundler'
|
3
|
+
#require 'bundler/runtime'
|
4
4
|
|
5
5
|
module Guard
|
6
6
|
class CtagsBundler
|
@@ -14,11 +14,25 @@ module Guard
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def generate_bundler_tags
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
17
|
+
# FIXME: Using bundler API cases issues when guard is executed in the non-bundler environment
|
18
|
+
#::Bundler.configure # in case we're not running guard from inside Bundler
|
19
|
+
#definition = ::Bundler::Definition.build("Gemfile", "Gemfile.lock", nil)
|
20
|
+
#runtime = ::Bundler::Runtime.new(Dir.pwd, definition)
|
21
|
+
#paths = runtime.requested_specs.map(&:full_gem_path)
|
22
|
+
|
23
|
+
# this is ugly, but should work with every bundler version
|
24
|
+
cmd = <<-CMD
|
25
|
+
require('bundler')
|
26
|
+
require('bundler/runtime')
|
27
|
+
::Bundler.configure
|
28
|
+
definition = ::Bundler::Definition.build('Gemfile', 'Gemfile.lock', nil)
|
29
|
+
runtime = ::Bundler::Runtime.new(Dir.pwd, definition)
|
30
|
+
paths = runtime.requested_specs.map(&:full_gem_path)
|
31
|
+
puts(paths.join(' '))
|
32
|
+
CMD
|
33
|
+
paths = `ruby -e "#{cmd}"`
|
34
|
+
|
35
|
+
generate_tags(paths.strip, custom_path_for("gems.tags"))
|
22
36
|
end
|
23
37
|
|
24
38
|
def generate_stdlib_tags
|
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.
|
4
|
+
version: 0.1.6
|
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-09-
|
12
|
+
date: 2012-09-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|
@@ -131,7 +131,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
131
131
|
version: '0'
|
132
132
|
segments:
|
133
133
|
- 0
|
134
|
-
hash:
|
134
|
+
hash: -1445914613899656626
|
135
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
136
|
none: false
|
137
137
|
requirements:
|
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
140
|
version: '0'
|
141
141
|
segments:
|
142
142
|
- 0
|
143
|
-
hash:
|
143
|
+
hash: -1445914613899656626
|
144
144
|
requirements: []
|
145
145
|
rubyforge_project: guard-ctags-bundler
|
146
146
|
rubygems_version: 1.8.24
|