frameworks-capybara 0.2.0.rc3 → 0.2.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/monkey-patches/capybara-patches.rb +2 -2
- data/lib/monkey-patches/webdriver-patches.rb +0 -38
- data/lib/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
@@ -5,7 +5,7 @@ require 'capybara/cucumber'
|
|
5
5
|
##
|
6
6
|
#Monkey Patch's - Use with care!
|
7
7
|
#
|
8
|
-
class Capybara::
|
8
|
+
class Capybara::Selenium::Node
|
9
9
|
def style(prop)
|
10
10
|
native.style(prop)
|
11
11
|
end
|
@@ -23,7 +23,7 @@ class Capybara::Driver::Node
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
-
class Capybara::Driver
|
26
|
+
class Capybara::Selenium::Driver
|
27
27
|
def cookies
|
28
28
|
browser.manage.all_cookies
|
29
29
|
end
|
@@ -30,41 +30,3 @@ module Selenium
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
-
##
|
34
|
-
#Patch to allow following of symlinks when serializing ff profiles
|
35
|
-
#This means we can put certs and key db files into a secure location
|
36
|
-
#on the ci box and then check in symlinks to these files.
|
37
|
-
#
|
38
|
-
#I think this should be fixed in Webdriver itself
|
39
|
-
#http://code.google.com/p/selenium/issues/detail?id=2416
|
40
|
-
module Selenium
|
41
|
-
module WebDriver
|
42
|
-
module Zipper
|
43
|
-
def self.zip(path)
|
44
|
-
# can't use Tempfile here since it doesn't support File::BINARY mode on 1.8
|
45
|
-
# can't use Dir.mktmpdir(&blk) because of http://jira.codehaus.org/browse/JRUBY-4082
|
46
|
-
tmp_dir = Dir.mktmpdir
|
47
|
-
begin
|
48
|
-
zip_path = File.join(tmp_dir, "webdriver-zip")
|
49
|
-
|
50
|
-
Zip::ZipFile.open(zip_path, Zip::ZipFile::CREATE) { |zip|
|
51
|
-
::Find.find(path) do |file|
|
52
|
-
next if File.directory?(file)
|
53
|
-
entry = file.sub("#{path}/", '')
|
54
|
-
#PATCH begin
|
55
|
-
entry = Zip::ZipEntry.new(zip_path, entry)
|
56
|
-
entry.follow_symlinks = true
|
57
|
-
#PATCH end - nothing removed from original
|
58
|
-
|
59
|
-
zip.add entry, file
|
60
|
-
end
|
61
|
-
}
|
62
|
-
|
63
|
-
File.open(zip_path, "rb") { |io| Base64.strict_encode64 io.read }
|
64
|
-
ensure
|
65
|
-
FileUtils.rm_rf tmp_dir
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end # Zipper
|
69
|
-
end # WebDriver
|
70
|
-
end # Selenium
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frameworks-capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15424061
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
9
|
- 0
|
10
10
|
- rc
|
11
|
-
-
|
12
|
-
version: 0.2.0.
|
11
|
+
- 4
|
12
|
+
version: 0.2.0.rc4
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- matt robbins
|