Skip to content

Commit

Permalink
Allow yard to be launched by 'bundle exec' by separating version from…
Browse files Browse the repository at this point in the history
… yard.rb
  • Loading branch information
bossmc committed Jun 14, 2012
1 parent ed88494 commit cd8ab96
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/yard.rb
@@ -1,6 +1,6 @@
module YARD
VERSION = "0.8.2.1"
require File.expand_path('../yard/version.rb', __FILE__)

module YARD
# The root path for YARD source libraries
ROOT = File.expand_path(File.dirname(__FILE__))

Expand Down
2 changes: 1 addition & 1 deletion lib/yard/parser/ruby/ast_node.rb
Expand Up @@ -486,4 +486,4 @@ def first_line; "" end
end
end
end
end
end
3 changes: 3 additions & 0 deletions lib/yard/version.rb
@@ -0,0 +1,3 @@
module YARD
VERSION = "0.8.2.1"
end
5 changes: 3 additions & 2 deletions yard.gemspec
@@ -1,4 +1,5 @@
require File.expand_path(File.dirname(__FILE__) + '/lib/yard')
require File.expand_path('../lib/yard/version', __FILE__)

Gem::Specification.new do |s|
s.name = "yard"
s.summary = "Documentation tool for consistent and usable documentation in Ruby."
Expand All @@ -19,4 +20,4 @@ Gem::Specification.new do |s|
s.executables = ['yard', 'yardoc', 'yri']
s.has_rdoc = 'yard'
s.rubyforge_project = 'yard'
end
end

0 comments on commit cd8ab96

Please sign in to comment.