Sha256: a179a9409711663063e35443d5d3103831ef0879261bb913c5cd90800f86f02f

Contents?: true

Size: 731 Bytes

Versions: 30

Compression:

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

Version data entries

30 entries across 29 versions & 4 rubygems

Version Path
unicode-age-2.0.0.pre Rakefile
unicode-age-1.1.0 Rakefile
microgem-1.0.8 Rakefile
wooga_uvm-0.3.1 Rakefile
microgem-1.0.7 Rakefile
unicode-age-1.0.1 Rakefile
unicode-categories-1.0.0 Rakefile
unicode-age-1.0.0 Rakefile
microgem-1.0.6 template/Rakefile
microgem-1.0.6 Rakefile