Rakefile in ohm-1.0.0.rc4 vs Rakefile in ohm-1.0.0
- old
+ new
@@ -29,11 +29,11 @@
Cutest.run(Dir["test/*.rb"])
end
desc "Generate documentation"
-task :doc => [:yard, :rocco]
+task :doc => :yard
desc "Generated YARD documentation"
task :yard do
require "yard"
@@ -63,48 +63,9 @@
File.open(file, "w") { |f| f.write(contents) }
end
end
-desc "Generate ROCCO documentation"
-task :rocco do
- `mkdir doc/examples` unless Dir.exists?("doc/examples")
- `rocco examples/*.*`
- `mv examples/*.html doc/examples`
-end
-
desc "Deploy documentation"
task :deploy do
system "rsync --del -avz doc/* ohm.keyvalue.org:deploys/ohm.keyvalue.org/"
-end
-
-namespace :examples do
- desc "Run all the examples"
- task :run do
- begin
- require "cutest"
- rescue LoadError
- raise "!! Missing gem `cutest`. Try `gem install cutest`."
- end
-
- Cutest.run(Dir["examples/*.rb"])
- end
-end
-
-task :paste_lua_inline do
- def wrap(const, data)
- ret = "#{const} = (<<-EOT).gsub(/^ {4}/, "")\n"
- ret << data.gsub(/^/, " ")
- ret << " EOT\n"
- end
-
- save = File.read("./lua/save.lua")
- del = File.read("./lua/delete.lua")
- # save = "foo"
- # del = "bar"
-
- ohm = File.read("./lib/ohm.rb", :encoding => "utf-8")
- ohm.gsub!(/SAVE =(.*?)$(.*?)EOT/m, wrap("SAVE", save))
- ohm.gsub!(/DELETE =(.*?)$(.*?)EOT/m, wrap("DELETE", del))
-
- puts ohm
end