Sha256: 1282c15fab2da3a28e6e467be7fee51aa76a8dc165e40122528c8478b7b1bd5d

Contents?: true

Size: 1.94 KB

Versions: 60

Compression:

Stored size: 1.94 KB

Contents

require 'rubygems'
require 'bundler'

begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end

$LOAD_PATH.unshift('lib')

require 'rake'
require 'jeweler'

Jeweler::Tasks.new do |gem|
  gem.name = "jeweler"
  gem.version = Jeweler::Version::STRING
  gem.homepage = "http://github.com/technicalpickles/jeweler"
  gem.summary = "Opinionated tool for creating and managing RubyGem projects"
  gem.description = "Simple and opinionated helper for creating Rubygem projects on GitHub"
  gem.license = "MIT"
  gem.authors = ["Josh Nichols"]
  gem.email = "josh@technicalpickles.com"
  gem.files.include %w(lib/jeweler/templates/.document lib/jeweler/templates/.gitignore)

  # dependencies defined in Gemfile
end

Jeweler::RubygemsDotOrgTasks.new

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.test_files = FileList.new('test/**/test_*.rb') do |list|
    list.exclude 'test/test_helper.rb'
  end
  test.libs << 'test'
  test.verbose = true
end

namespace :test do
  task :gemspec_dup do
    gemspec = Rake.application.jeweler.gemspec
    dupped_gemspec = gemspec.dup
    cloned_gemspec = gemspec.clone
    puts gemspec.to_ruby
    puts dupped_gemspec.to_ruby
  end
end

require 'yard'
YARD::Rake::YardocTask.new do |t|
  t.files   = FileList['lib/**/*.rb'].exclude('lib/jeweler/templates/**/*.rb')
end

require 'rcov/rcovtask'
Rcov::RcovTask.new(:rcov => :check_dependencies) do |rcov|
  rcov.libs << 'test'
  rcov.pattern = 'test/**/test_*.rb'
end

require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features) do |features|
  features.cucumber_opts = "features --format progress"
end
namespace :features do
  Cucumber::Rake::Task.new(:pretty) do |features|
    features.cucumber_opts = "features --format progress"
  end
end

if ENV["RUN_CODE_RUN"] == "true"
  task :default => [:test, :features]
else
  task :default => :test
end

Version data entries

60 entries across 33 versions & 2 rubygems

Version Path
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.6.5 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.6.4 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.6.2 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.5.4 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.5.3 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/Rakefile