Permalink
Browse files

bundler support

  • Loading branch information...
1 parent 03e7231 commit d712488dce249881f84a86cc671ca0e6fcc95e63 @drush drush committed Sep 18, 2010
Showing with 36 additions and 3 deletions.
  1. +1 −0 Gemfile
  2. +2 −0 README.rdoc
  3. +31 −1 Rakefile
  4. +1 −1 VERSION
  5. +1 −1 nocms.gemspec
View
1 Gemfile
@@ -10,4 +10,5 @@ end
group :development do
gem "jeweler"
+ gem "shoulda"
end
View
2 README.rdoc
@@ -22,6 +22,8 @@ Mailing List: http://groups.google.com/group/nocms
Twitter: http://twitter.com/powcloud
== Changes
+* 0.4.1
+ * MINOR: Change to bundler to move toward CI support
* 0.4.0
* FEA: Add site_index which returns a hash of paths with an array of the languages for each
* 0.3.0
View
32 Rakefile
@@ -1,5 +1,14 @@
require 'rubygems'
-require 'rake'
+#require 'rake'
+require 'bundler'
+
+begin
+ Bundler.setup
+rescue Exception => e
+ puts e
+ system('bundle install')
+ Bundler.setup
+end
begin
require 'jeweler'
@@ -43,6 +52,27 @@ task :test => :check_dependencies
task :default => :test
+task :cruise => [:geminstaller, :print_environment, :test]
+
+task :geminstaller do
+ system('bundle install') || raise('could not install some dependencies')
+ #require 'geminstaller'
+ #GemInstaller.run('--sudo --exceptions') || raise("GemInstaller failed")
+end
+
+
+task :print_environment do
+ puts <<-ENVIRONMENT
+Build environment:
+ #{`uname -a`.chomp}
+ #{`ruby -v`.chomp}
+ SQLite3: #{`sqlite3 -version`}
+ #{`gem env`}
+Local gems:
+ #{`gem list`.gsub(/^/, ' ')}
+ ENVIRONMENT
+end
+
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
View
2 VERSION
@@ -1 +1 @@
-0.4.0
+0.4.1
View
2 nocms.gemspec
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Darren Rush"]
- s.date = %q{2010-08-28}
+ s.date = %q{2010-09-18}
s.description = %q{A Ruby client for the NOCMS.org web service API. Provides server-side helpers for Rails/Sinatra/Rack applications. keywords: ruby, rails, sinatra, rack, CMS, content management systems, search, cloud, SAAS, JSON, web service}
s.email = %q{nocms@powcloud.com}
s.extra_rdoc_files = [

0 comments on commit d712488

Please sign in to comment.