Here are the current release steps as of June 7, 2006<br><br>rake test <br>(make sure no failures or errors)<br><br>rake rdoc<br>(make sure builds ok)<br>(I do have a custom require warning that I would eventually like to eliminate from the output but not sure how to accomplish that)
<br><br><br>test locally as plugin for a rails app<br>---------------------------------------------------------<br>script/generate masterview Model Controller<br>script/server<br>(See if the app works as it should)<br>(make change to an app/views/masterview template file)
<br>(Refresh browser and see change immediately picked up (if in development mode) <br><a href="http://localhost:3000/masterview/admin">http://localhost:3000/masterview/admin</a><br>(should see list)<br>(invalidate the xhtml of a masterview template add something like </breakxhtml>)
<br>refresh browser<br>(should show that file is not parseable (without tidy turned on)<br>rake mv:list<br>rake mv:list_all<br>(both of these commands should show the same listing as webapp and should show the statuses)<br>
(fix the xhtml again by taking out the </breakxhtml>)<br>(invalidate the imported layout of one of the mv template, for example add something to title in <br>masterview template for destroy.)<br>visit masterview/admin page, rake mv:list, rake mv:list_all and you should see the fact that destroy template is out of sync.
<br>Use rebuild or rebuild all link from webapp, and/or rake mv:rebuild TEMPLATE=foo.html or rake mv:rebuild_all <br>visit masterview/admin page, rake mv:list, rake mv:list_all and you should see the fact that everything is OK
<br>Visit app pages to see everything working as should. <br>
<br><br>test locally as a gem installation on another fresh rails app <br>----------------------------------------------------------------------------------------------------------------------------<br>(install local gem, if we were pulling from repository then gem install masterview_gem_pack --include-dependencies, however since we want to test before uploading to rubyforge, we need to do this locally, I don't recall the commands to install a local gem)
<br>script/generate masterview_plugin<br>script/generate masterview Model Controller<br>(same tests as above)<br><br><br>Ideally we will eventually create some system tests that we can run from rake to do all this making it easy to test (just haven't gotten to it yet)
<br><br>Once all that is done we are ready to release<br><br>(note that we were going to use tag latest to represent latest build but because script/plugin install uses the last part of url for directory name, we need to name the latest tag simply masterview)
<br>with subversion create release tag MASTERVIEW_X_Y_Z, remove existing 'masterview' tag and recreate masterview tag from current this is what people will be pulliing from for plugin install<br><br>rake package<br>rake release_files RUBYFORGE_USER= RUBYFORGE_PASSWORD= (or put those in your shell environment)
<br>(this should publish the current versioned package for all of the parts (masterview, masterview_generator, masterview_plugin_generator, masterview_gem_pack) as well as a tar and zip version of the plugin up to rubyforge. It builds the release notes from RELEASE_NOTES and CHANGELOG.
<br><br>(eventually we will post mail announcements too, but I haven't gotten to that yet)<br>(At this point the new verison of files should be on rubyforge files directory, every so often I go up and remove the really old versions. I haven't created a rake command to do this all yet)
<br><br>It will take a while for the gem to become available usually within a half hour or so<br>I then test pulling the gem<br>gem install masterview_gem_pack --include-dependencies<br>I check that the right version came down and then do a quick rails test again.
<br><br>gem uninstall masterview<br><br>(test plugin install)<br>script/plugin install <tt>svn://rubyforge.org/var/svn/masterview/tags/masterview<br></tt>(retest)<br><br>That should do it. <br><br><br>