Sha256: 5737e5ecba16b95942157a01bf50a75e05903a3bb6a85a7602fc7b7e1d7aaf85

Contents?: true

Size: 873 Bytes

Versions: 22

Compression:

Stored size: 873 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/*_spec.rb; do ruby $file; done"
end
task default: :spec

Version data entries

22 entries across 22 versions & 5 rubygems

Version Path
characteristics-1.2.0 Rakefile
characteristics-1.1.0 Rakefile
symbolify-1.3.1 Rakefile
characteristics-1.0.0 Rakefile
render_react-1.0.1 Rakefile
render_react-1.0.0 Rakefile
symbolify-1.3.0 Rakefile
characteristics-0.8.0 Rakefile
pws-otp-0.9.0 Rakefile
symbolify-1.2.0 Rakefile
characteristics-0.7.0 Rakefile
symbolify-1.1.0 Rakefile
characteristics-0.6.0 Rakefile
characteristics-0.5.2 Rakefile
symbolify-1.0.0 Rakefile
characteristics-0.5.1 Rakefile
characteristics-0.4.0 Rakefile
characteristics-0.3.1 Rakefile
characteristics-0.3.0 Rakefile
characteristics-0.2.0 Rakefile