Rakefile in rally_rest_api-0.7.7 vs Rakefile in rally_rest_api-0.7.8
- old
+ new
@@ -1,52 +1,24 @@
-require 'rubygems'
-require 'rake'
-require 'rake/clean'
-require 'rake/testtask'
-require 'rake/packagetask'
-require 'rake/gempackagetask'
-require 'rake/rdoctask'
-require 'rake/contrib/rubyforgepublisher'
-require 'fileutils'
-require 'hoe'
-include FileUtils
-require File.join(File.dirname(__FILE__), 'lib', 'rally_rest_api', 'version')
+# Look in the tasks/setup.rb file for the various options that can be
+# configured in this Rakefile. The .rake files in the tasks directory
+# are where the options are used.
-AUTHOR = "Bob Cotton" # can also be an array of Authors
-EMAIL = "bob.cotton@ralldev.com"
-DESCRIPTION = "A ruby-ized interface to Rally's REST webservices API"
-GEM_NAME = "rally_rest_api" # what ppl will type to install your gem
-RUBYFORGE_PROJECT = "rally-rest-api" # The unix name for your project
-HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
-RELEASE_TYPES = %w( gem ) # can use: gem, tar, zip
+load 'tasks/setup.rb'
+ensure_in_path 'lib'
+require 'rally_rest_api'
-NAME = "rally_rest_api"
-REV = nil # UNCOMMENT IF REQUIRED: File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
-VERS = ENV['VERSION'] || (RallyRestVersion::LIBRARY_VERSION::STRING + (REV ? ".#{REV}" : ""))
-CLEAN.include ['**/.*.sw?', '*.gem', '.config']
-RDOC_OPTS = ['--quiet', '--title', "rally_rest_api documentation",
- "--opname", "index.html",
- "--line-numbers",
- "--main", "README",
- "--inline-source"]
+task :default => 'spec:run'
-# Generate all the Rake tasks
-# Run 'rake -T' to see list of generated tasks (from gem root directory)
-hoe = Hoe.new(GEM_NAME, VERS) do |p|
- p.author = AUTHOR
- p.description = DESCRIPTION
- p.email = EMAIL
- p.summary = DESCRIPTION
- p.url = HOMEPATH
- p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
- p.test_globs = ["test/*.rb"]
- p.clean_globs = CLEAN #An array of file patterns to delete on clean.
+PROJ.name = 'rally_rest_api'
+PROJ.authors = 'Bob Cotton'
+PROJ.email = 'bob.cotton@rallydev.com'
+PROJ.url = 'http://rally-rest-api.rubyforge.org/rally_rest_api'
+PROJ.rubyforge_name = 'rally-rest-api'
+PROJ.summary = "A Ruby interface to the Rally REST API"
+PROJ.version = RallyRestVersion::LIBRARY_VERSION::STRING
- p.extra_deps = []
- p.extra_deps << ["builder"]
+PROJ.exclude = ['.git/*', 'pkg/*']
- # == Optional
- #p.changes - A description of the release's latest changes.
- #p.spec_extras - A hash of extra values to set in the gemspec.
-end
-
+PROJ.spec_opts << '--color'
+
+# EOF