Sha256: 320122b43c62a83445b0699b414b93a3831e700b60f089f3fa76a445160fdbb7

Contents?: true

Size: 732 Bytes

Versions: 52

Compression:

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

52 entries across 50 versions & 16 rubygems

Version Path
unicode-x-16.0.0 Rakefile
unicode-x-15.1.0 Rakefile
code-0.9.4 Rakefile
unicode-x-15.0.0 Rakefile
unicode-x-14.0.1 Rakefile
unicode-x-14.0.0 Rakefile
clipboard_formatter-1.0.1 Rakefile
uke-1.0.3 Rakefile
website-1.0.1 Rakefile
code-0.9.3 Rakefile
unicode-x-13.0.1 Rakefile
unicode-x-13.0.0 Rakefile
unicode-x-12.1.0 Rakefile
unicode-x-12.0.0 Rakefile
unicode-x-11.0.0 Rakefile
unicode-x-1.4.1 Rakefile
uke-1.0.2 Rakefile
uke-1.0.1 Rakefile
redux-0.1.1 Rakefile
code-0.9.2 Rakefile