Sha256: 426d461d5dab53e95e3550614a2e1f5609501b939d4c8cc00ff366d08aee9ca7
Contents?: true
Size: 798 Bytes
Versions: 4
Compression:
Stored size: 798 Bytes
Contents
require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) task :default => :spec # Get gemspec info gemspec_file = Dir['*.gemspec'].first gemspec = eval File.read(gemspec_file), binding, gemspec_file info = "#{gemspec.name} | #{gemspec.version} | " \ "#{gemspec.runtime_dependencies.size} dependencies | " \ "#{gemspec.files.size} files" # Gem build and install task desc info task :gem do puts info + "\n\n" print " "; sh "gem build #{gemspec_file}" FileUtils.mkdir_p 'pkg' FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg' puts; sh %{gem install --no-document pkg/#{gemspec.name}-#{gemspec.version}.gem} end # Start an IRB session with the gem loaded desc "#{gemspec.name} | IRB" task :irb do sh "irb -I ./lib -r #{gemspec.name.gsub '-','/'}" end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
stroop-1.2.0 | Rakefile |
stroop-1.1.0 | Rakefile |
stroop-1.0.0 | Rakefile |
stroop-0.1.0 | Rakefile |