Sha256: eec892526835b8edfed154d968a8b2cb3530e3da09a6bad07a8dc00ebbe6a228
Contents?: true
Size: 858 Bytes
Versions: 5
Compression:
Stored size: 858 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 ruby "spec/unicode_confusable_spec.rb" end task default: :spec
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
unicode-confusable-1.12.0 | Rakefile |
unicode-confusable-1.11.0 | Rakefile |
unicode-confusable-1.10.0 | Rakefile |
unicode-confusable-1.9.0 | Rakefile |
unicode-confusable-1.8.0 | Rakefile |