Skip to content

Commit

Permalink
Move eventmachine_version to em/version.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Mar 15, 2009
1 parent 91fdc25 commit 1a50af6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 35 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Expand Up @@ -87,7 +87,7 @@ Spec = Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY

s.has_rdoc = true
s.rdoc_options = %w(--title EventMachine --main docs/README --line-numbers -x lib/eventmachine_version -x lib/emva -x lib/evma/ -x lib/pr_eventmachine -x lib/jeventmachine)
s.rdoc_options = %w(--title EventMachine --main docs/README --line-numbers -x lib/em/version -x lib/emva -x lib/evma/ -x lib/pr_eventmachine -x lib/jeventmachine)
s.extra_rdoc_files = Dir['docs/*']

s.files = `git ls-files`.split("\n")
Expand Down Expand Up @@ -124,7 +124,7 @@ of EventMachine is to enable programs to easily interface with other programs
using TCP/IP, especially if custom protocols are required.
EOD

require 'lib/eventmachine_version'
require 'lib/em/version'
s.version = EventMachine::VERSION
end

Expand Down
3 changes: 3 additions & 0 deletions lib/em/version.rb
@@ -0,0 +1,3 @@
module EventMachine
VERSION = "0.12.7"
end
2 changes: 1 addition & 1 deletion lib/eventmachine.rb
Expand Up @@ -73,7 +73,7 @@
end
end

require "eventmachine_version"
require "em/version"
require 'em/deferrable'
require 'em/future'
require 'em/eventable'
Expand Down
31 changes: 0 additions & 31 deletions lib/eventmachine_version.rb

This file was deleted.

2 changes: 1 addition & 1 deletion tasks/project.rake
Expand Up @@ -39,7 +39,7 @@ if Spec.has_rdoc
rd.rdoc_dir = 'rdoc'
rd.main = "docs/README"
rd.rdoc_files.include("lib/**/*.rb", *Spec.extra_rdoc_files)
rd.rdoc_files.exclude(*%w(lib/eventmachine_version lib/emva lib/evma/ lib/pr_eventmachine lib/jeventmachine))
rd.rdoc_files.exclude(*%w(lib/em/version lib/emva lib/evma/ lib/pr_eventmachine lib/jeventmachine))
end
Rake::Task[:clean].enhance [:clobber_rdoc]

Expand Down

0 comments on commit 1a50af6

Please sign in to comment.