Sha256: 1efaa3771bdeac2c27f55f6d77dc6c6e74a4635411d558221ec35c1b48eaf59e

Contents?: true

Size: 384 Bytes

Versions: 15

Compression:

Stored size: 384 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"
require 'open3'

RSpec::Core::RakeTask.new(:spec)

#task :default => :spec
task :default do
  system 'rake -T'
end

desc "open github origin url"
task :open_github do
  out, err, status = Open3.capture3("git remote -v")
  url = "https://"+out.match(/^origin\s+git@(.+) \(fetch\)/)[1].gsub(':','/')
  system "open #{url}"
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
nb_util-0.6.0 Rakefile
nb_util-0.5.6 Rakefile
nb_util-0.5.4 Rakefile
nb_util-0.5.1 Rakefile
nb_util-0.4.8 Rakefile
nb_util-0.4.7 Rakefile
nb_util-0.4.5 Rakefile
nb_util-0.4.4 Rakefile
nb_util-0.4.3 Rakefile
nb_util-0.4.2 Rakefile
nb_util-0.4.1 Rakefile
nb_util-0.4.0 Rakefile
nb_util-0.3.8 Rakefile
nb_util-0.3.5 Rakefile
nb_util-0.3.4 Rakefile