-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
47 lines (41 loc) · 1.08 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
require 'rake'
require "bundler/gem_tasks"
require 'rspec/core/rake_task'
require 'rake/clean'
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
Bundler::GemHelper.install_tasks
desc "List any Markaby specific warnings"
task :warnings do
`ruby -w test/test_markaby.rb 2>&1`.split(/\n/).each do |line|
next unless line =~ /warning:/
next if line =~ /builder-/
puts line
end
end
desc "Start a Markaby-aware IRB session"
task :irb do
sh 'irb -I lib -r markaby -r markaby/kernel_method'
end
namespace :gemspec do
task :commit do
sh "git add ."
sh "git commit -m 'Update gemspec'"
end
end
# namespace :release do
# task :patch => [:spec, "version:bump:patch", :update_gemspec, :rerdoc, :tag_release, :build, :push_tags]
#
# task :update_gemspec => ["gemspec:generate", "gemspec:validate", "gemspec:commit"]
# task :tag_release do
# require File.dirname(__FILE__) + "/lib/markaby"
# version = "v#{Markaby::VERSION}"
# sh "git tag #{version}"
# end
#
# task :push_tags do
# sh "git push --tags"
# end
# end
#
# task :release => "release:patch"