Permalink
Browse files

code cleanup

  • Loading branch information...
1 parent ee9d86a commit cc557230cc916b9485a42d7a0dcc92a270530eb1 @ivalkeen committed Jul 18, 2012
View
@@ -2,5 +2,3 @@ source "http://rubygems.org"
# Specify your gem's dependencies in guard-ctags-bundler.gemspec
gemspec
-
-gem "rake", :require => false
@@ -19,10 +19,10 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]
# specify any dependencies here; for example:
- s.add_dependency 'guard', '>= 1.0.0'
+ s.add_dependency 'guard', '>= 1.1'
+ s.add_development_dependency "bundler"
+ s.add_development_dependency "rake"
s.add_development_dependency "minitest"
s.add_development_dependency "purdytest"
-
- # s.add_runtime_dependency "rest-client"
end
@@ -1,4 +1,3 @@
-require "guard/ctags-bundler/version"
require "guard/ctags-bundler/ctags_generator"
require 'guard'
require 'guard/guard'
@@ -8,15 +8,10 @@ def generate_project_tags
end
def generate_bundler_tags
- # this code doesn't work with recent bundler versions
- #definition = Bundler::Definition.build("Gemfile", "Gemfile.lock", nil)
- #runtime = Bundler::Runtime.new(Dir.pwd, definition)
- #paths = runtime.requested_specs.map(&:full_gem_path)
- #generate_tags(paths, "gems.tags")
-
- # this is ugly, but should work with every bundler version
- paths = `ruby -e "require('bundler'); puts(Bundler.load.specs.map(&:full_gem_path).join(' '))"`
- generate_tags(paths.strip, "gems.tags")
+ definition = Bundler::Definition.build("Gemfile", "Gemfile.lock", nil)
+ runtime = Bundler::Runtime.new(Dir.pwd, definition)
+ paths = runtime.requested_specs.map(&:full_gem_path)
+ generate_tags(paths, "gems.tags")
end
private
@@ -1,7 +1,7 @@
module Guard
module Ctags
module Bundler
- VERSION = "0.1.1"
+ VERSION = "0.1.2"
end
end
end

0 comments on commit cc55723

Please sign in to comment.