Sha256: 09b473e93bf08b95699c20708b60e9fab02cbc969670fd84a724580fc4cb4305

Contents?: true

Size: 609 Bytes

Versions: 2

Compression:

Stored size: 609 Bytes

Contents

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

desc "#{gemspec.name} | SPECS"
task :specs do
  ruby "spec/*"
end

task default: :specs

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nem-1.0.1 Rakefile
nem-1.0.0 Rakefile