frameworks-capybara 0.2.0.rc3 → 0.2.0.rc4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- frameworks-capybara (0.2.0.rc3)
4
+ frameworks-capybara (0.2.0.rc4)
5
5
  capybara (>= 1.0.0)
6
6
  capybara-celerity
7
7
  capybara-mechanize (>= 0.3.0)
@@ -5,7 +5,7 @@ require 'capybara/cucumber'
5
5
  ##
6
6
  #Monkey Patch's - Use with care!
7
7
  #
8
- class Capybara::Driver::Selenium::Node
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::Selenium
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
@@ -1,4 +1,4 @@
1
1
  module FrameworksCapybara
2
- VERSION = '0.2.0.rc3'
2
+ VERSION = '0.2.0.rc4'
3
3
  end
4
4
 
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: 15424051
4
+ hash: 15424061
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
9
  - 0
10
10
  - rc
11
- - 3
12
- version: 0.2.0.rc3
11
+ - 4
12
+ version: 0.2.0.rc4
13
13
  platform: ruby
14
14
  authors:
15
15
  - matt robbins