<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,23 @@
+$:.unshift('lib')
 require 'rake'
 require 'rake/rdoctask'
+require 'rubygems'
+require 'rake/gempackagetask'
+
+begin
+  
+  module Spec
+    module VERSION
+      BUILD_TIME_UTC = 'place_holder'
+    end
+  end  
+  
+  require 'spec/rails/version'
+
+rescue
+  # Catch the BUILD_TIME_UTC verification exception.
+  # This exception is not relevant when running these tasks and hinders the gem installation.
+end
 
 desc 'Generate RDoc'
 rd = Rake::RDocTask.new do |rdoc|
@@ -7,3 +25,40 @@ rd = Rake::RDocTask.new do |rdoc|
   rdoc.options &lt;&lt; '--title' &lt;&lt; 'Spec::Rails' &lt;&lt; '--line-numbers' &lt;&lt; '--inline-source' &lt;&lt; '--main' &lt;&lt; 'Spec::Rails'
   rdoc.rdoc_files.include('MIT-LICENSE', 'lib/**/*.rb')
 end
+
+PKG_NAME = &quot;rspec-rails&quot;
+PKG_VERSION   = Spec::Rails::VERSION::STRING
+PKG_FILE_NAME = &quot;#{PKG_NAME}-#{PKG_VERSION}&quot;
+PKG_FILES = FileList[
+  '[A-Z]*',
+  'lib/**/*.rb', 
+  'spec/**/*',
+  'spec_resources/**/*',
+  'generators/**/*',
+  'stories/**/*',
+  'tasks/**/*'
+]
+
+rspec_rails = Gem::Specification.new do |s|
+  s.name = PKG_NAME
+  s.version = PKG_VERSION
+  s.summary = Spec::Rails::VERSION::DESCRIPTION
+  s.description = &lt;&lt;-EOF
+    rpsec-rails is a Ruby on Rails plugin that allows you to drive the development
+    of your RoR application using RSpec, a framework that aims to enable BDD in Ruby.
+  EOF
+
+  s.files = PKG_FILES.to_a
+  s.require_path = 'lib'
+
+  s.has_rdoc = true
+  s.rdoc_options = rd.options
+
+  s.author = &quot;RSpec Development Team&quot;
+  s.email = &quot;rspec-devel@rubyforge.org&quot;
+  s.homepage = Spec::Rails::VERSION::URL  
+  s.platform = Gem::Platform::RUBY
+end
+
+Rake::GemPackageTask.new(rspec_rails) do |pkg|
+end</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,23 @@
 module Spec
   module Rails
     module VERSION #:nodoc:
-      BUILD_TIME_UTC = 20080615141040
+      unless defined? MAJOR
+        MAJOR  = 1
+        MINOR  = 1
+        TINY   = 4
+        RELEASE_CANDIDATE = nil
+
+        BUILD_TIME_UTC = 20080615141040
+
+        STRING = [MAJOR, MINOR, TINY].join('.')
+        TAG = &quot;REL_#{[MAJOR, MINOR, TINY, RELEASE_CANDIDATE].compact.join('_')}&quot;.upcase.gsub(/\.|-/, '_')
+        FULL_VERSION = &quot;#{[MAJOR, MINOR, TINY, RELEASE_CANDIDATE].compact.join('.')} (build #{BUILD_TIME_UTC})&quot;
+
+        NAME   = &quot;RSpec-Rails&quot;
+        URL    = &quot;http://github.com/dchelimsky/rspec-rails&quot;  
+
+        DESCRIPTION = &quot;#{NAME}-#{FULL_VERSION} - BDD for Ruby on Rails\n#{URL}&quot;
+      end
     end
   end
 end</diff>
      <filename>lib/spec/rails/version.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>abcffab8b13a41956b82dc7672ccfa8b34b9e553</id>
    </parent>
  </parents>
  <author>
    <name>Ben Mabey</name>
    <email>ben@benmabey.com</email>
  </author>
  <url>http://github.com/dchelimsky/rspec-rails/commit/5e24a49373c4b64a3a7216bcdd6ea44becebe573</url>
  <id>5e24a49373c4b64a3a7216bcdd6ea44becebe573</id>
  <committed-date>2008-06-28T13:37:17-07:00</committed-date>
  <authored-date>2008-06-28T13:25:47-07:00</authored-date>
  <message>Added a rake task for building a gem out of the plugin.  This allows for easier reuse of ActiveRecord helpers in non RoR apps ( see ticket #383).
Updated Spec::Rails::VERSION to be more consistent with Spec::VERSION since it will now be treated like a gem in some cases.</message>
  <tree>53db6800149dffe563fca63467b4feaa15b4ce68</tree>
  <committer>
    <name>David Chelimsky</name>
    <email>dchelimsky@gmail.com</email>
  </committer>
</commit>
