Sha256: b19eb9db1536282ea18382102410c20ba7331022ee4ca9fa31c6a46d1f96c744
Contents?: true
Size: 978 Bytes
Versions: 7
Compression:
Stored size: 978 Bytes
Contents
require 'opal/rspec/rake_task' Opal.append_path "./opal" Opal.append_path "./spec" Opal.use_gem "ovto" Opal::RSpec::RakeTask.new(:default) do |server, task| task.pattern = 'spec/**/*_spec.rb' end namespace :docs do desc "build docs" task :build do cd "book" do sh "gitbook build . ../docs" end sh "yardoc -o docs/api" end desc "start gitbook server" task :serve do cd "book" do sh "gitbook serve" end end end desc "git ci, git tag and git push" task :release do cd('examples/sinatra'){ sh 'bundle update' } cd('examples/static'){ sh 'bundle update' } load 'lib/ovto/version.rb' sh "git diff HEAD" v = "v#{Ovto::VERSION}" puts "release as #{v}? [y/N]" break unless $stdin.gets.chomp == "y" sh "gem build ovto" # First, make sure we can build gem sh "bundle exec rake docs:build" sh "git ci -am '#{v}'" sh "git tag '#{v}'" sh "git push origin master --tags" sh "gem push ovto-#{Ovto::VERSION}.gem" end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
ovto-0.6.2 | Rakefile |
ovto-0.6.1 | Rakefile |
ovto-0.6.0 | Rakefile |
ovto-0.6.0.rc1 | Rakefile |
ovto-0.5.0 | Rakefile |
ovto-0.4.1 | Rakefile |
ovto-0.4.0 | Rakefile |