Sha256: bd3a6dbdd86ef9eeb28ac22b976d452c915ebe676198f1ab27b9f62869c93927

Contents?: true

Size: 581 Bytes

Versions: 4

Compression:

Stored size: 581 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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
relaxed-rubocop-2.5 Rakefile
relaxed-rubocop-2.4 Rakefile
relaxed-rubocop-2.3.1 Rakefile
relaxed-rubocop-2.3 Rakefile