Sha256: 2e44386cf51e2e46db5b1491907545cfd7cdf41e236558068f5a491b25f77f2c
Contents?: true
Size: 602 Bytes
Versions: 66
Compression:
Stored size: 602 Bytes
Contents
require 'pathname' gem_name = Pathname.new(File.expand_path('..', __FILE__)).children.find{ |ch| ch.file? and ch.basename.to_s =~ /\.gemspec$/ }.basename('.gemspec').to_s task :gem do system "rm -f *.gem" system "gem build #{gem_name}.gemspec" system "gem push #{gem_name}-*.gem" system "rm -f *.gem" end task :install do Rake::Task['uninstall'].invoke system "rm -f *.gem" system "gem build #{gem_name}.gemspec" system "sudo gem install #{gem_name}-*.gem" system "rm -f #{gem_name}-*.gem" end task :uninstall do system "sudo gem uninstall -x #{gem_name}", err: '/dev/null' end
Version data entries
66 entries across 66 versions & 2 rubygems