Sha256: fbaf12974e97b64a60f73158bd1692e7170385cbdaa5558b45834b9e03efece7
Contents?: true
Size: 970 Bytes
Versions: 3
Compression:
Stored size: 970 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 # # # # Benchmark: Take with a grain of salt desc "Compare with contracts and rubype" task :benchmark do ruby "benchmark/compare.rb" end # # # # Specs desc "Run specs" task :spec do ruby "spec/sig_spec.rb" end task default: :spec
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
sig-1.0.2 | Rakefile |
charyf_sig-1.1.2 | Rakefile |
charyf_sig-1.1.0 | Rakefile |