Sha256: 5ef97c60973c69b65f9940d9108db16c7766c8e4ff7052528c74fad208ba0053

Contents?: true

Size: 1.73 KB

Versions: 3

Compression:

Stored size: 1.73 KB

Contents

# encoding: utf-8

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
require 'rake'

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 = "itrigga-core_ext"
  gem.homepage = "http://gems.itrigga.com/trigga-core_ext"
  gem.license = "MIT"
  gem.summary = %Q{extensions for core classes Hash, Array}
  gem.description = %Q{Adds methods for 
    Hash: 
    - symbolize_keys
    - recursive_symbolize_keys
    Array:
    - to_csv (requires FasterCSV gem if ruby 1.8)
    - select_with_index
    - to_auto_complete_list
    - active_record_type_condition_rendering
  }
  gem.email = "aldavidson@itrigga.com"
  gem.authors = ["Al Davidson", "Anson Kelly"]
  # dependencies defined in Gemfile
  gem.require_paths << "lib/itrigga"
end
Jeweler::RubygemsDotOrgTasks.new

require 'spec/version'
require 'spec/rake/spectask'
require 'spec/ruby'

Spec::Rake::SpecTask.new(:spec) do |spec|
  spec.spec_files = FileList['spec/**/*_spec.rb']
  spec.spec_opts = ['--options', 'spec/spec.opts']
end

task :default => :spec

desc "Run all specs with rcov"
Spec::Rake::SpecTask.new(:rcov) do |t|
  t.spec_files = FileList['spec/**/*_spec.rb']
  t.spec_opts = ['--options', 'spec/spec.opts']
  t.rcov = true
  t.rcov_dir = 'coverage'
  t.rcov_opts = ['--exclude', "features,kernel,load-diff-lcs\.rb,instance_exec\.rb,lib/spec.rb,lib/spec/runner.rb,^spec/*,bin/spec,examples,/gems,/Library/Ruby,\.autotest,#{ENV['GEM_HOME']}"]
  t.rcov_opts << '--sort coverage --text-summary --aggregate coverage.data'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
itrigga-core_ext-1.5.0 Rakefile
itrigga-core_ext-1.3.0 Rakefile
itrigga-core_ext-1.0.0 Rakefile