Sha256: 3fe9f7a25926c8d0b9c805ad03201a782672ba18564c0d3a3c83221324f83507
Contents?: true
Size: 1.45 KB
Versions: 1
Compression:
Stored size: 1.45 KB
Contents
require 'rake' require 'spec/rake/spectask' Dir.chdir File.dirname(__FILE__) # Specs task :default => :spec Spec::Rake::SpecTask.new('spec') do |t| t.spec_files = FileList["spec/**/*_spec.rb"].select{|f| f !~ /\/_/} t.libs = ['lib'].collect{|f| "#{File.dirname __FILE__}/#{f}"} end # Gem require 'rake/clean' require 'rake/gempackagetask' require 'fileutils' spec = Gem::Specification.new do |s| s.name = "abstract-interface" s.version = "0.0.3" s.summary = "Abstract Interface for the Crystal Framework" s.description = "Abstract Interface for the Crystal Framework" s.author = "Alexey Petrushin" # s.email = "" s.homepage = "http://github.com/alexeypetrushin/abstract-interface" s.platform = Gem::Platform::RUBY s.has_rdoc = true s.files = (['Rakefile', 'readme.md'] + Dir.glob("{lib,spec}/**/*")) s.require_paths = ["lib"] [ 'crystal', ].each{|name| s.add_dependency(name)} end PACKAGE_DIR = "#{File.expand_path File.dirname(__FILE__)}/build" Rake::GemPackageTask.new(spec) do |p| package_dir = PACKAGE_DIR # FileUtils.mkdir package_dir unless File.exist? package_dir p.need_tar = true if RUBY_PLATFORM !~ /mswin/ p.need_zip = true p.package_dir = package_dir end # CLEAN.include [ 'pkg', '*.gem'] task :push do dir = Dir.chdir PACKAGE_DIR do gem_file = Dir.glob("abstract-interface*.gem").first system "gem push #{gem_file}" end end task :clean do system "rm -r #{PACKAGE_DIR}" end task :release => [:gem, :push, :clean]
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
abstract-interface-0.0.3 | Rakefile |