Sha256: 5b4a4dfd39e9bbf2b5e64853c34f12f99dbad5ae8721881c3ba132690a1a66e9
Contents?: true
Size: 1.84 KB
Versions: 2
Compression:
Stored size: 1.84 KB
Contents
require 'rubygems' unless defined?(Gem) 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 require 'jeweler' Jeweler::Tasks.new do |gem| # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options gem.name = "gorillib" gem.homepage = "http://infochimps.com/labs" gem.license = "MIT" gem.summary = %Q{include only what you need. No dependencies, no creep} gem.description = %Q{Gorillib: infochimps lightweight subset of ruby convenience methods} gem.email = "coders@infochimps.org" gem.authors = ["Infochimps"] ignores = File.readlines(".gitignore").grep(/^[^#]\S+/).map{|s| s.chomp } dotfiles = [".gemtest", ".gitignore", ".rspec", ".yardopts"] gem.files = dotfiles + Dir["**/*"]. reject{|f| f =~ %r{^(vendor|coverage)/} }. reject{|f| File.directory?(f) }. reject{|f| ignores.any?{|i| File.fnmatch(i, f) || File.fnmatch(i+'/**/*', f) || File.fnmatch(i+'/*', f) } } gem.test_files = gem.files.grep(/^spec\//) gem.require_paths = ['lib'] end Jeweler::RubygemsDotOrgTasks.new require 'rspec/core' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |spec| Bundler.setup(:default, :development, :test) spec.pattern = FileList['spec/**/*_spec.rb'] end RSpec::Core::RakeTask.new(:rcov) do |spec| Bundler.setup(:default, :development, :test) spec.pattern = 'spec/**/*_spec.rb' spec.rcov = true spec.rcov_opts = %w[ --exclude .rvm --no-comments --text-summary] end require 'yard' YARD::Rake::YardocTask.new do Bundler.setup(:default, :development, :docs) require 'redcloth' end # App-specific tasks Dir[File.dirname(__FILE__)+'/lib/tasks/**/*.rake'].sort.each{|f| load f } task :default => [:spec]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gorillib-0.1.11 | Rakefile |
gorillib-0.1.9 | Rakefile |