Rakefile in random_text-0.0.6.4 vs Rakefile in random_text-0.0.6.5
- old
+ new
@@ -1,18 +1,20 @@
-require 'rubygems'
-require 'rake'
-require 'rake/clean'
-require 'fileutils'
-require 'echoe'
-
-load 'tasks/rspec.rake'
-
-task :default => :spec
-task :test
-
-version = YAML.load_file(File.join(File.dirname(__FILE__), 'VERSION.yml')).join('.') rescue nil
-
-Echoe.new('random_text', version) do |p|
- p.author = "toy"
- p.summary = "A library to generate random strings."
- p.runtime_dependencies = ['activesupport']
-end
+require 'rubygems'
+require 'rake'
+require 'rake/clean'
+require 'fileutils'
+require 'echoe'
+
+version = YAML.load_file(File.join(File.dirname(__FILE__), 'VERSION.yml')).join('.') rescue nil
+
+echoe = Echoe.new('random_text', version) do |p|
+ p.author = 'toy'
+ p.summary = 'A library to generate random strings.'
+ p.runtime_dependencies = ['activesupport']
+end
+
+desc "Replace system gem with symlink to this folder"
+task :ghost do
+ path = Gem.searcher.find(echoe.name).full_gem_path
+ system 'sudo', 'rm', '-r', path
+ symlink File.expand_path('.'), path
+end