<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>skeleton/spec/production_env.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -32,6 +32,7 @@ skeleton/lib/java/README.txt
 skeleton/lib/java/miglayout-3.7.1.jar
 skeleton/lib/java/monkeybars-1.0.4a.jar
 skeleton/lib/ruby/README.txt
+skeleton/spec/production_env.rb
 skeleton/spec/spec_helper.rb
 skeleton/src/application_controller.rb
 skeleton/src/application_view.rb</diff>
      <filename>Manifest.txt</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,12 @@
-Disclaimer: This is BETA!
-
-Monkeybars 1.0.4a
+Monkeybars 1.0.5
+This is a fork of the Monkeybars project. I forked it off the latest (as of Oct-27-2009) commit in the official repository (30c1b8a27a4a424aed8aea07a66920db953ef992).
+Reasons why I forked:
+- I don't like Project Kenai. (i.e. I did not find an option to fork a project there.)
+- I probably change things that the original creators and contributors would not approve.
+I will soon publish a gem on gemcutter.
+
+Substantial changes:
+- The skeleton sets MB_ENV and MB_ROOT.
 - View state does no longer contain a model object but a hash.
 - The skeleton contains a folder for specs.
 - The generate task puts source code into the src folder and has an option for generation a UI class which uses SwingSet.
@@ -9,10 +15,11 @@ Monkeybars 1.0.4a
 
 == PROBLEMS
 
+- Should rename the project a bit.
 - Should provide a task to get the latest MigLayout jar.
-- Should provide a generator task without UI (namespace?).
-- Should have more documentation.
+- Should have more documentation. (The wiki will be filled soon, I promise.)
 - Should make it easy to include gem, jar and other libraries.
+- Should clean the tasks on the project, bones is driving me crazy...
 
 == INSTALL
 </diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 module Monkeybars
-  VERSION = &quot;1.0.4a&quot;
+  VERSION = &quot;1.0.5&quot;
   
   def self.version
     VERSION</diff>
      <filename>lib/monkeybars_version.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 require 'rubygems'
 require 'java'
-#MB_ENV = &quot;spec:development&quot; unless defined? MB_ENV
+MB_ENV = &quot;spec:development&quot; unless defined? MB_ENV
 require 'manifest'
 $CLASSPATH &lt;&lt; File.dirname(__FILE__) + '/../build/classes'</diff>
      <filename>skeleton/spec/spec_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,21 @@
 require 'rake'
 require 'spec/rake/spectask'
 
-desc &quot;Run all specs&quot;
-Spec::Rake::SpecTask.new('spec') do |t|
-  t.spec_files = FileList['spec/**/*_spec.rb']
-  t.libs = [File.dirname(__FILE__) + '/../src']
+desc &quot;Alias for spec:development&quot;
+task :spec =&gt; ['spec:development']
+
+namespace :spec do
+  desc &quot;Run all specs in development environment&quot;
+  Spec::Rake::SpecTask.new('development') do |t|
+    t.spec_files = FileList['spec/**/*_spec.rb']
+    t.libs = [File.dirname(__FILE__) + '/../src']
+  end
+
+  desc &quot;Runn all specs in production environment&quot;
+  Spec::Rake::SpecTask.new('production') do |t|
+    t.spec_opts = [&quot;-r spec/production_env.rb&quot;]
+    t.spec_files = FileList['spec/**/*_spec.rb']
+    t.libs = [File.dirname(__FILE__) + '/../src']
+  end
 end
 </diff>
      <filename>skeleton/tasks/rspec.rake</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,12 @@
 require File.join(File.dirname(__FILE__), '..', 'spec_helper.rb')
 
+def run_in_tmp_project(command)
+  pwd = FileUtils.pwd
+  FileUtils.cd @temp_project_dir
+  `#{command}`
+  FileUtils.cd pwd  
+end
+
 describe &quot;The skeleton&quot; do
  before :all do
     @command = &quot;jruby -I#{File.join(File.dirname(__FILE__), '..', '..', 'lib')} #{File.join(File.dirname(__FILE__), '..', '..', 'bin', 'monkeybars')} -RI--no-download spec-tmp-proj&quot;
@@ -36,8 +43,51 @@ ENDL
     `jruby -S rake generate[test]`
     `jruby -S rake spec &gt; spec_output`
     FileUtils.cd pwd
+    FileUtils.rm @temp_project_dir + '/spec/some_spec.rb'
     File.should be_exist(File.join(@temp_project_dir, 'spec_output'))
     File.read(File.join(@temp_project_dir, 'spec_output')).should match(/2 examples/)
     File.read(File.join(@temp_project_dir, 'spec_output')).should match(/0 failures/)
   end
+  describe :spec_tasks do
+    
+    before :all do
+      File.open @temp_project_dir + '/spec/some_spec.rb', 'w' do |f|
+        f &lt;&lt; &lt;&lt;-ENDL
+require File.join(File.dirname(__FILE__), 'spec_helper.rb')
+
+describe &quot;something&quot; do
+  it &quot;lala&quot; do
+    puts MB_ENV
+  end
+end
+ENDL
+    end
+    end
+    
+    after :all do
+      FileUtils.rm @temp_project_dir + '/spec/some_spec.rb'
+    end
+    
+    after :each do
+      FileUtils.rm @temp_project_dir + '/spec_output'
+    end
+    
+    it &quot;should run specs in spec:development environment by default&quot; do
+      run_in_tmp_project &quot;jruby -S rake spec &gt; spec_output&quot;
+      File.should be_exist(File.join(@temp_project_dir, 'spec_output'))
+      File.read(File.join(@temp_project_dir, 'spec_output')).should match(/spec:development/)
+    end
+    
+    it &quot;should run specs in spec:development environment&quot; do
+      run_in_tmp_project &quot;jruby -S rake spec:development &gt; spec_output&quot;
+      File.should be_exist(File.join(@temp_project_dir, 'spec_output'))
+      File.read(File.join(@temp_project_dir, 'spec_output')).should match(/spec:development/)
+    end
+
+    it &quot;should run specs in spec:production environment&quot; do
+      run_in_tmp_project &quot;jruby -S rake spec:production &gt; spec_output&quot;
+      File.should be_exist(File.join(@temp_project_dir, 'spec_output'))
+      File.read(File.join(@temp_project_dir, 'spec_output')).should match(/spec:production/)
+    end    
+  end
 end</diff>
      <filename>spec/unit/skeleton_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2ee398672501d59eb898e57ae5a586cdd593e974</id>
    </parent>
  </parents>
  <author>
    <name>Martin Vielsmaier</name>
    <email>martin.vielsmaier@gmail.com</email>
  </author>
  <url>http://github.com/moser/Monkeybars/commit/386ca2ed6a334b2198b0f9d76c748e48a6b224ff</url>
  <id>386ca2ed6a334b2198b0f9d76c748e48a6b224ff</id>
  <committed-date>2009-10-27T01:27:58-07:00</committed-date>
  <authored-date>2009-10-27T01:27:58-07:00</authored-date>
  <message>Fixed spec_helper, added spec:production task. Bump to 1.0.5</message>
  <tree>4d876ea2a5d75e4ad0421ca592a9d60444a80da4</tree>
  <committer>
    <name>Martin Vielsmaier</name>
    <email>martin.vielsmaier@gmail.com</email>
  </committer>
</commit>
