Sha256: 847288392b928af189f0568ae4906458aacc886e9ac3b1bf80560e069b6523fc

Contents?: true

Size: 555 Bytes

Versions: 8

Compression:

Stored size: 555 Bytes

Contents

# # #
# Gem build and install task
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"

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

Version data entries

8 entries across 6 versions & 3 rubygems

Version Path
J-_-L-1.1.0 Rakefile
micrologger-0.1.2 Rakefile
micrologger-0.1.1 Rakefile
microgem-1.0.2 Rakefile
microgem-1.0.2 template/Rakefile
microgem-1.0.1 template/Rakefile
microgem-1.0.1 Rakefile
J-_-L-1.0.0 Rakefile