Sha256: f96ffb54b61bb81c1b4d26865e17fa768eaf916a706bf8e07a8703c0f3c37c44

Contents?: true

Size: 1.87 KB

Versions: 2

Compression:

Stored size: 1.87 KB

Contents

require 'rubygems'
require 'rake'
require 'echoe'

version = File.read( 'VERSION' ) rescue "0.0.42_bugged"

Echoe.new('ric', version ) do |p|
  p.description    = "My first gem with various utilities (colors and tests now). 
  My name is Riccardo, hence 'ric' (ok I admit it, this was just ot prove Im able to build a sentence
   with hence!)"
  p.url            = "http://github.com/palladius/ric"
  p.author         = "Riccardo Carlesso"
  p.licenses       = "MIT" # see LICENSE
  p.email          = "['p','ll','diusbonton].join('a') @ gmail.com"
  p.ignore_pattern = [
    ".noheroku",
    "docs/*", 
    "HISTORY",
    "images/*/*/*", "images/*/*", 'images', 
    "private/*",
    "sbin/*", 
    "script/*", 
    "tmp/*", "tmp/*/*", "tmp/*/*/*",
  ]
  p.development_dependencies = [ 
    ['activeresource',  '~> 0'],
    ['echoe',  '~> 0'],
  ]
  p.runtime_dependencies = [ 
      'activeresource',
  ]
end

#p.add_development_dependency 'activeresource', '~> 0'

#### RAKE TEST
require 'rake'
require 'rake/testtask'
require 'rdoc/task'

desc 'Default: run unit tests.'
task :default => :test

desc 'Test the ric gem'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.libs << 'test'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end

desc 'Generate documentation for the ric gem'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'Riccardo GEM'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('HISTORY.yml')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

desc 'Deploys new version of gem'
#task :default => :test
namespace :deploy do
	# I think it'd be smarter to do some
	# task :manifest
	# task :build_gemspec
	# But I dont know how to do that :)
  #system 'rake manifest && rake build_gemspec && echo built ok'
  puts "TODO deploy gem to rubygems..."
  system 'touch TODO-rake-deploy.touch'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ric-0.13.0 Rakefile
ric-0.12.2 Rakefile