Permalink
Browse files

Add patch from @espen to latest capybara-webkit

  • Loading branch information...
1 parent 8674ef7 commit 02a0e04d9a893d1f1a3676193d5ba8027c2ff39a @jaimeiniesta committed Nov 9, 2011
Showing with 12 additions and 1 deletion.
  1. +12 −1 lib/capybara_webkit_builder.rb
@@ -35,6 +35,17 @@ def build
def build_all
makefile &&
qmake &&
- build
+ build && fix_generated_by_header
+ end
+
+ def fix_generated_by_header
+ path = File.expand_path "../../Makefile", __FILE__
+ content = File.read path
+ content.force_encoding "BINARY"
+ content.sub! /# Generated by .+\n/, ""
+ File.open path, "w" do |file|
+ file.write content
+ end
+ true
end
end

0 comments on commit 02a0e04

Please sign in to comment.