Sha256: 58ad4fa6affe4a5a60744c84767fd55e55bd139cd81768b600c1fc01fc325aa5
Contents?: true
Size: 872 Bytes
Versions: 2
Compression:
Stored size: 872 Bytes
Contents
# # # # 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 # # # # Run specs desc "#{gemspec.name} | Test" task :test do sh "for file in test/*_test.rb; do ruby $file; done" end task default: :test
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nice_partials-0.1.6 | Rakefile |
nice_partials-0.1.5 | Rakefile |