Sha256: 7a51faec345f0510e48156f8ddf400694e9692d7220d05fd1ec57b64cd74ff8a

Contents?: true

Size: 1.72 KB

Versions: 1

Compression:

Stored size: 1.72 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 'rspec/core/rake_task'

desc 'Default: run specs.'
task :default => :spec

desc "Run specs"
RSpec::Core::RakeTask.new do |t|
  t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
  # Put spec opts in a file named .rspec in root
end

desc "Generate code coverage"
RSpec::Core::RakeTask.new(:coverage) do |t|
  t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
  t.rcov = true
  t.rcov_opts = ['--exclude', 'spec']
end
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
  version = File.exist?('VERSION') ? File.read('VERSION') : ""

  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "net_helper #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itrigga-core_ext-1.5.1 Rakefile