Sha256: b8d9d76f0d499b8e0297d10f09b2bdbb83ab106af4cf1c3c0bb1d00e17513d78
Contents?: true
Size: 758 Bytes
Versions: 6
Compression:
Stored size: 758 Bytes
Contents
# # # # Get gemspec info require "bundler/gem_tasks" 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
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
nice_partials-0.10.1 | Rakefile |
nice_partials-0.10.0 | Rakefile |
nice_partials-0.9.3 | Rakefile |
nice_partials-0.9.2 | Rakefile |
nice_partials-0.9.1 | Rakefile |
nice_partials-0.9.0 | Rakefile |