Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add patch from @espen to latest capybara-webkit

  • Loading branch information...
commit 02a0e04d9a893d1f1a3676193d5ba8027c2ff39a 1 parent 8674ef7
Jaime Iniesta authored November 09, 2011

Showing 1 changed file with 12 additions and 1 deletion. Show diff stats Hide diff stats

  1. 13  lib/capybara_webkit_builder.rb
13  lib/capybara_webkit_builder.rb
@@ -35,6 +35,17 @@ def build
35 35
   def build_all
36 36
     makefile &&
37 37
     qmake &&
38  
-    build
  38
+    build && fix_generated_by_header
  39
+  end
  40
+
  41
+  def fix_generated_by_header
  42
+    path = File.expand_path "../../Makefile", __FILE__
  43
+    content = File.read path
  44
+    content.force_encoding "BINARY"
  45
+    content.sub! /# Generated by .+\n/, ""
  46
+    File.open path, "w" do |file|
  47
+      file.write content
  48
+    end
  49
+    true
39 50
   end
40 51
 end

0 notes on commit 02a0e04

Please sign in to comment.
Something went wrong with that request. Please try again.