Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 52 lines (45 sloc) 1.585 kB
ade5068 @karmi Initial commit; empty Bundler gem
authored
1 require 'bundler'
2 Bundler::GemHelper.install_tasks
6a92423 @karmi Cleanup .gemspec; Add License and Readme; Add Rake tasks
authored
3
4 task :default => :test
5
6 require 'rake/testtask'
7 Rake::TestTask.new(:test) do |test|
8 test.libs << 'lib' << 'test'
2a13174 @karmi [TEST] Correct class names for integration tests, change test Rake ta…
authored
9 test.test_files = FileList['test/unit/*_test.rb', 'test/integration/*_test.rb']
6a92423 @karmi Cleanup .gemspec; Add License and Readme; Add Rake tasks
authored
10 test.verbose = true
2a13174 @karmi [TEST] Correct class names for integration tests, change test Rake ta…
authored
11 # test.warning = true
6a92423 @karmi Cleanup .gemspec; Add License and Readme; Add Rake tasks
authored
12 end
13
4be93d1 @karmi Moved all tests to test/unit and added Rake task accordingly
authored
14 namespace :test do
15 Rake::TestTask.new(:unit) do |test|
16 test.libs << 'lib' << 'test'
f908d42 @karmi Refactor Rakefile, so `rdoc` and `rcov` are optional (eg. for CI)
authored
17 test.test_files = FileList["test/unit/*_test.rb"]
4be93d1 @karmi Moved all tests to test/unit and added Rake task accordingly
authored
18 test.verbose = true
19 end
6adebbf @karmi Added infrastructure for integration tests
authored
20 Rake::TestTask.new(:integration) do |test|
21 test.libs << 'lib' << 'test'
f908d42 @karmi Refactor Rakefile, so `rdoc` and `rcov` are optional (eg. for CI)
authored
22 test.test_files = FileList["test/integration/*_test.rb"]
6adebbf @karmi Added infrastructure for integration tests
authored
23 test.verbose = true
24 end
4be93d1 @karmi Moved all tests to test/unit and added Rake task accordingly
authored
25 end
26
ae131a5 @karmi Added Rake task to generate website/documentation with Rocco [http://…
authored
27 namespace :web do
28
ad8b38f @karmi Added file with the full DSL example, used for documentation/website
authored
29 desc "Update the Github website"
30 task :update => :generate do
bcf2914 @karmi [SETUP] Fixed the `rake web:update` Rake task
authored
31 current_branch = `git branch --no-color`.
32 split("\n").
33 select { |line| line =~ /^\* / }.
34 first.to_s.
35 gsub(/\* (.*)/, '\1')
ae131a5 @karmi Added Rake task to generate website/documentation with Rocco [http://…
authored
36 (puts "Unable to determine current branch"; exit(1) ) unless current_branch
9dd4fb7 @karmi Updated the`web:generate` Rake task
authored
37 system "git checkout web"
19e570b @karmi [GEM] Updated gem name to "tire" and renamed all files from "slingsho…
authored
38 system "cp examples/tire-dsl.html index.html"
39 system "git add index.html && git co -m 'Updated Tire website'"
ae131a5 @karmi Added Rake task to generate website/documentation with Rocco [http://…
authored
40 system "git push origin web:gh-pages -f"
9dd4fb7 @karmi Updated the`web:generate` Rake task
authored
41 system "git checkout #{current_branch}"
ae131a5 @karmi Added Rake task to generate website/documentation with Rocco [http://…
authored
42 end
ad8b38f @karmi Added file with the full DSL example, used for documentation/website
authored
43
44 desc "Generate the Rocco documentation page"
45 task :generate do
19e570b @karmi [GEM] Updated gem name to "tire" and renamed all files from "slingsho…
authored
46 system "rocco examples/tire-dsl.rb"
9dd4fb7 @karmi Updated the`web:generate` Rake task
authored
47 html = File.read('examples/tire-dsl.html').gsub!(/>tire\-dsl\.rb</, '>tire.rb<')
19e570b @karmi [GEM] Updated gem name to "tire" and renamed all files from "slingsho…
authored
48 File.open('examples/tire-dsl.html', 'w') { |f| f.write html }
49 system "open examples/tire-dsl.html"
ad8b38f @karmi Added file with the full DSL example, used for documentation/website
authored
50 end
ae131a5 @karmi Added Rake task to generate website/documentation with Rocco [http://…
authored
51 end
Something went wrong with that request. Please try again.