diff --git a/Rakefile b/Rakefile index 6a3437e..f34eaa9 100644 --- a/Rakefile +++ b/Rakefile @@ -8,10 +8,9 @@ require './tasks/hoex.rb' # Alex's patched version of Hoe dir = File.dirname(__FILE__) $: << "#{dir}/lib" -require "erector" -require "erector/erect" +require "erector/version" -GEM_VERSION = Erector::VERSION # defined in lib/erector.rb +GEM_VERSION = Erector::VERSION # defined in lib/erector/version.rb GEM_NAME = "erector" Hoe.new(GEM_NAME, GEM_VERSION) do |hoe| diff --git a/lib/erector.rb b/lib/erector.rb index 365c688..2e38d96 100644 --- a/lib/erector.rb +++ b/lib/erector.rb @@ -8,12 +8,8 @@ require "#{dir}/erector/widget" require "#{dir}/erector/unicode" require "#{dir}/erector/widgets" +require "#{dir}/erector/version" if Object.const_defined?(:RAILS_ROOT) require "#{dir}/erector/rails" end -## -# Erector view framework -module Erector - VERSION = "0.4.191" -end diff --git a/lib/erector/version.rb b/lib/erector/version.rb new file mode 100644 index 0000000..c39c0d9 --- /dev/null +++ b/lib/erector/version.rb @@ -0,0 +1,6 @@ +## +# Erector view framework +module Erector + VERSION = "0.4.191" +end + diff --git a/web/developers.rb b/web/developers.rb index 63ccf44..10a339a 100644 --- a/web/developers.rb +++ b/web/developers.rb @@ -44,11 +44,11 @@ def render_body ol do li "Pick a version number. For the build number run 'svn info | grep Revision'" li %q{Look at History.txt and make sure the release notes are up to date. Put the version number on the top line (after the "==").} - li "Put the version number in erector.rb as Erector::VERSION." + li "Put the version number in lib/erector/version.rb as Erector::VERSION." li %q{Check in with a comment, e.g. 'svn ci -m "release 1.2.3"'} li %q{Run 'rm -rf spec/rails_root' so that you don't include 3 versions of rails in the erector gem (TODO: there must be a better way to exclude these from the gem)} li %q{Run 'rake package' so that you can see whether the gem generation seems to work locally before proceeding to try to upload it to rubyforge (if you skip this step, the package will be generated when you run rake release)} - li "If you haven't done so before, run 'rubyforge setup' and 'rubyforge config' (for more details on these steps, see README.txt in the rubyforge gem" + li "If you haven't done so before, run 'rubyforge setup' and 'rubyforge config' (for more details on these steps, see README.txt in the rubyforge gem)" li "Run 'rake release VERSION=1.2.3'. (The parameter is to confirm you're releasing the version you intend to.)" li "Run 'rake publish_docs web publish_web' cause the docs and site need to be updated, at least with the new version number." li %q{Immediately go into History.txt and make a new section at the top. Since we won't yet know what the next version will be called, the new section will be noted by a single "==" at the top of the file.}