Sha256: 6933b1bb4e191321306ed4dafcab0424d4e796b06cb74af25a859e4673c94ce5
Contents?: true
Size: 786 Bytes
Versions: 1
Compression:
Stored size: 786 Bytes
Contents
begin require 'jeweler' name = 'random_text' summary = 'Library to generate random strings' jewel = Jeweler::Tasks.new do |j| j.name = name j.summary = summary j.homepage = "http://github.com/toy/#{name}" j.authors = ["Boba Fat"] end Jeweler::GemcutterTasks.new require 'pathname' desc "Replace system gem with symlink to this folder" task 'ghost' do gem_path = Pathname(Gem.searcher.find(name).full_gem_path) current_path = Pathname('.').expand_path cmd = gem_path.writable? && gem_path.parent.writable? ? %w() : %w(sudo) system(*cmd + %W[rm -r #{gem_path}]) system(*cmd + %W[ln -s #{current_path} #{gem_path}]) end rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
random_text-1.0.2 | Rakefile |