Sha256: b1b9b38f18ddafd6f94c2e53a17915eed1b508e5968290c4869fc0a99f61fab7

Contents?: true

Size: 867 Bytes

Versions: 110

Compression:

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

# # #
# Run Specs

desc "#{gemspec.name} | Spec"
task :spec do
  sh "for file in spec/*.rb; do ruby $file; done"
end
task default: :spec

Version data entries

110 entries across 110 versions & 10 rubygems

Version Path
unicode-sequence_name-1.9.0 Rakefile
unicode-emoji-2.7.1 Rakefile
unicode-emoji-2.7.0 Rakefile
unicode-sequence_name-1.8.0 Rakefile
unicode-emoji-2.6.0 Rakefile
unicode-emoji-2.5.0 Rakefile
unicode-sequence_name-1.7.0 Rakefile
unicode-scripts-1.6.0 Rakefile
unicode-numeric_value-1.7.0 Rakefile
unicode-name-1.9.0 Rakefile
unicode-types-1.6.0 Rakefile
unicode-confusable-1.7.0 Rakefile
unicode-categories-1.6.0 Rakefile
unicode-blocks-1.6.0 Rakefile
unicode-sequence_name-1.6.0 Rakefile
unicode-emoji-2.4.0 Rakefile
unicode-emoji-2.3.1 Rakefile
unicode-sequence_name-1.5.0 Rakefile
unicode-emoji-2.3.0 Rakefile
unicode-emoji-2.2.0 Rakefile