Sha256: d032bcbe963a2602c8f45e33a5317f5ce8fda9e2187659b997f51d83965c2a2a

Contents?: true

Size: 814 Bytes

Versions: 4

Compression:

Stored size: 814 Bytes

Contents

#!/usr/bin/env rake

$LOAD_PATH.unshift File.expand_path("lib", File.dirname(__FILE__))

require "rspec/core/rake_task"
require "config_file/version"
require "gemspec_deps_gen/gemspec_deps_gen"

version = ConfigFile::VERSION
project_name = File.basename(Dir.pwd)

task :gen do
  generator = GemspecDepsGen.new

  generator.generate_dependencies "spec", "#{project_name}.gemspec.erb", "#{project_name}.gemspec"
end

task :build => :gen do
  system "gem build #{project_name}.gemspec"
end

task :install do
  system "gem install #{project_name}-#{version}.gem"
end

task :uninstall do
  system "gem uninstall #{project_name}"
end

task :release => :build do
  system "gem push #{project_name}-#{version}.gem"
end

RSpec::Core::RakeTask.new do |task|
  task.pattern = 'spec/**/*_spec.rb'
  task.verbose = false
end


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
config-file-1.1.0 Rakefile
config-file-1.0.2 Rakefile
config-file-1.0.1 Rakefile
config-file-1.0.0 Rakefile