Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rake task for vendoring new libyaml

  • Loading branch information...
commit da21ad1e9442a8d2c099bce14cd467ae4dbb75f8 1 parent 1d93bc8
@hone hone authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 Rakefile
View
9 Rakefile
@@ -72,3 +72,12 @@ task "gem:install", :gem, :version do |t, args|
uninstall_gem(gem) if gem_detected?(gem)
install_gem(gem, version)
end
+
+desc "update libyaml"
+task "libyaml:update" do
+ sh "curl -o yaml.tgz http://libyaml-compiler.herokuapp.com/yaml.tgz"
+ sh "git rm -rf vendor/yaml-*" if Dir['vendor/yaml-*'].any?
+ sh "cd vendor && tar -zxvf ../yaml.tgz"
+ sh "git add vendor/yaml-*"
+ sh "rm yaml.tgz" if File.exists?("yaml.tgz")
+end
Please sign in to comment.
Something went wrong with that request. Please try again.