Skip to content

Instantly share code, notes, and snippets.

@peakpg
Created May 23, 2012 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peakpg/2776664 to your computer and use it in GitHub Desktop.
Save peakpg/2776664 to your computer and use it in GitHub Desktop.
Upgrade BrowserCMS Module to 3.5.x (cliffnotes version)
$ echo "rvm use 1.9.3@r3.2" > .rvmrc
$ cd .. & cd bcms_module_dir
$ bcms-upgrade module
# Update gemspec to add the following:
spec.files = Dir["{app,config,db,lib}/**/*"]
spec.files += Dir["Gemfile", "LICENSE.txt", "COPYRIGHT.txt", "GPL.txt" ]
spec.test_files += Dir["test/**/*"]
spec.test_files -= Dir['test/dummy/**/*']
spec.add_dependency("browsercms", "< 3.6.0", ">= 3.5.0")
$ bundle update
$ cd test/dummy
$ rails g cms:template default
$ bcms install_db
$ cd ../..
$ rake app:db:reinstall
# Rakefile: Rake::TestTask.new(:test => 'app:test:prepare') do |t|
$ rake test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment