Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 50 lines (39 sloc) 1.186 kb
49f8fa0 @jbarnette Clean up obsolete bits.
jbarnette authored
1 require "bundler"
2 Bundler.setup
3
9ef89bd @durran Adding Rakefile
durran authored
4 require "rake"
6e91e9f @etehtsea fix Rake::RDocTask deprecation warning
etehtsea authored
5 require "rdoc/task"
49fa104 @durran Require rspec in Rakefile for build failures on Ubuntu
durran authored
6 require "rspec"
d34f507 @durran Upgrading to rspec 2.0.0.beta.8
durran authored
7 require "rspec/core/rake_task"
9ef89bd @durran Adding Rakefile
durran authored
8
e792bfb @durran Making gemspec dynamic, removing jeweler dependency, adding gem build ta...
durran authored
9 $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
10 require "mongoid/version"
11
ae67ac7 @railsjedi Bumping version (beta.19)
railsjedi authored
12 task :gem => :build
e792bfb @durran Making gemspec dynamic, removing jeweler dependency, adding gem build ta...
durran authored
13 task :build do
14 system "gem build mongoid.gemspec"
15 end
16
17 task :install => :build do
2a9fee0 @durran Updating Rakefile to sudo the install
durran authored
18 system "sudo gem install mongoid-#{Mongoid::VERSION}.gem"
e792bfb @durran Making gemspec dynamic, removing jeweler dependency, adding gem build ta...
durran authored
19 end
20
21 task :release => :build do
15ac280 @durran In accordance with semver we tag with a preceeding v
durran authored
22 system "git tag -a v#{Mongoid::VERSION} -m 'Tagging #{Mongoid::VERSION}'"
3e5c903 @durran Updating rakefile to tag and push
durran authored
23 system "git push --tags"
6e53538 @durran Need the .gem ext for release
durran authored
24 system "gem push mongoid-#{Mongoid::VERSION}.gem"
9ef89bd @durran Adding Rakefile
durran authored
25 end
26
4f8539c @durran Updating rspec to over 2.6
durran authored
27 RSpec::Core::RakeTask.new("spec:unit") do |spec|
2ce971e @durran Embedding many now properly binds one or all when setting entire target ...
durran authored
28 spec.pattern = "spec/unit/**/*_spec.rb"
29 end
30
4f8539c @durran Updating rspec to over 2.6
durran authored
31 RSpec::Core::RakeTask.new("spec:functional") do |spec|
8af3b6a @durran Moving spec/integration to spec/functional since it just makes more sens...
durran authored
32 spec.pattern = "spec/functional/**/*_spec.rb"
2ce971e @durran Embedding many now properly binds one or all when setting entire target ...
durran authored
33 end
34
4f8539c @durran Updating rspec to over 2.6
durran authored
35 RSpec::Core::RakeTask.new('spec:progress') do |spec|
12e897c @durran Using rspec opts
durran authored
36 spec.rspec_opts = %w(--format progress)
131e710 Add spec:progress task
Bernerd Schaefer and Veezus Kreist authored
37 spec.pattern = "spec/**/*_spec.rb"
38 end
39
6e91e9f @etehtsea fix Rake::RDocTask deprecation warning
etehtsea authored
40 RDoc::Task.new do |rdoc|
9ef89bd @durran Adding Rakefile
durran authored
41 rdoc.rdoc_dir = "rdoc"
49f8fa0 @jbarnette Clean up obsolete bits.
jbarnette authored
42 rdoc.title = "mongoid #{Mongoid::VERSION}"
9ef89bd @durran Adding Rakefile
durran authored
43 rdoc.rdoc_files.include("README*")
cdeb836 @cgriego Add a CHANGELOG, fixes #820
cgriego authored
44 rdoc.rdoc_files.include("CHANGELOG*")
9ef89bd @durran Adding Rakefile
durran authored
45 rdoc.rdoc_files.include("lib/**/*.rb")
25dfa04 @durran Adding metric_fu tasks
durran authored
46 end
47
69de1f8 @durran Fixing spec task to run functional then unit
durran authored
48 task :spec => [ "spec:functional", "spec:unit" ]
49 task :default => :spec
Something went wrong with that request. Please try again.