debian/0000755000000000000000000000000012574000662007170 5ustar debian/README.source0000644000000000000000000000037312574000662011352 0ustar Packaging notes for capybara for Debian ======================================= The embedded code copy of jQuery and jQuery UI are stripped from the original source using git-import-orig filter mechanism. See `debian/gbp.conf` for the configuration. debian/patches/0000755000000000000000000000000012574000662010617 5ustar debian/patches/0002-Inhibit-tests-for-the-selenium-driver.patch0000644000000000000000000000663512574000662021431 0ustar From: =?utf-8?q?J=C3=A9r=C3=A9my_Bobbio?= Date: Fri, 22 Mar 2013 09:10:43 +0000 Subject: Inhibit tests for the :selenium driver The :selenium driver is deactivated until ruby-selenium-webdriver lands in Debian (see #703492), so let's just skip its tests. --- spec/rspec/matchers_spec.rb | 4 ++++ spec/selenium_spec.rb | 8 ++++++-- spec/selenium_spec_chrome.rb | 3 ++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/spec/rspec/matchers_spec.rb b/spec/rspec/matchers_spec.rb index 3279256..b5151ad 100644 --- a/spec/rspec/matchers_spec.rb +++ b/spec/rspec/matchers_spec.rb @@ -539,6 +539,7 @@ RSpec.describe Capybara::RSpecMatchers do end context 'with wait' do + pending 'waiting for a ruby-selenium-driver package in Debian' do before(:each) do @session = TestSessions::Selenium @session.visit('/with_js') @@ -558,6 +559,7 @@ RSpec.describe Capybara::RSpecMatchers do end end end + end end it "supports compounding" do @@ -584,6 +586,7 @@ RSpec.describe Capybara::RSpecMatchers do end context 'with wait' do + pending 'waiting for a ruby-selenium-driver package in Debian' do before(:each) do @session = TestSessions::Selenium @session.visit('/with_js') @@ -603,6 +606,7 @@ RSpec.describe Capybara::RSpecMatchers do end end end + end end it "supports compounding" do diff --git a/spec/selenium_spec.rb b/spec/selenium_spec.rb index 90f58ec..7c35b2a 100644 --- a/spec/selenium_spec.rb +++ b/spec/selenium_spec.rb @@ -1,5 +1,4 @@ require 'spec_helper' -require "selenium-webdriver" Capybara.register_driver :selenium_focus do |app| profile = Selenium::WebDriver::Firefox::Profile.new @@ -7,6 +6,7 @@ Capybara.register_driver :selenium_focus do |app| Capybara::Selenium::Driver.new(app, browser: :firefox, profile: profile) end +< :chrome, :args => args) end +< Date: Wed, 9 Sep 2015 11:38:48 +0200 Subject: Inhibit tests requiring launchy ruby-launchy is not yet in Debian (#725318) and it's an optional dependency of Capybara. --- lib/capybara/spec/session/save_and_open_page_spec.rb | 3 +++ lib/capybara/spec/session/save_and_open_screenshot_spec.rb | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/capybara/spec/session/save_and_open_page_spec.rb b/lib/capybara/spec/session/save_and_open_page_spec.rb index 42e8634..788e61b 100644 --- a/lib/capybara/spec/session/save_and_open_page_spec.rb +++ b/lib/capybara/spec/session/save_and_open_page_spec.rb @@ -1,3 +1,5 @@ +< [:screenshot] do expected_file_regex = %r{capybara-\d+\.png} allow(@session.driver).to receive(:save_screenshot) @@ -28,6 +27,7 @@ Capybara::SpecHelper.spec '#save_and_open_screenshot' do with(custom_path, {}) expect(Launchy).to have_received(:open).with(custom_path) end + end context 'when launchy cannot be required' do it 'prints out a correct warning message', :requires => [:screenshot] do debian/patches/0003-Inhibit-tests-that-needs-more-than-one-driver.patch0000644000000000000000000000226212574000662022742 0ustar From: =?utf-8?q?J=C3=A9r=C3=A9my_Bobbio?= Date: Fri, 22 Mar 2013 09:12:31 +0000 Subject: Inhibit tests that needs more than one driver As the :selenium driver is deactivated, there's only one driver left currently (:rack_test). This means we have to skip tests that needs more than one driver. --- spec/dsl_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/dsl_spec.rb b/spec/dsl_spec.rb index 88c60cc..3a87b64 100644 --- a/spec/dsl_spec.rb +++ b/spec/dsl_spec.rb @@ -160,12 +160,14 @@ RSpec.describe Capybara::DSL do end it "should change with the current driver" do + pending 'waiting to have ruby-capybara-webkit or ruby-selenium-driver in Debian' expect(Capybara.current_session.mode).to eq(:rack_test) Capybara.current_driver = :selenium expect(Capybara.current_session.mode).to eq(:selenium) end it "should be persistent even across driver changes" do + pending 'waiting to have for ruby-capybara-webkit or ruby-selenium-driver in Debian' object_id = Capybara.current_session.object_id expect(Capybara.current_session.object_id).to eq(object_id) Capybara.current_driver = :selenium debian/patches/0004-Remove-uneeded-dependency-on-pry-in-tests.patch0000644000000000000000000000242712574000662022174 0ustar From: =?utf-8?q?J=C3=A9r=C3=A9my_Bobbio?= Date: Fri, 28 Jun 2013 15:36:37 +0200 Subject: Remove uneeded dependency on pry in tests --- metadata.yml | 14 -------------- spec/spec_helper.rb | 1 - 2 files changed, 15 deletions(-) diff --git a/metadata.yml b/metadata.yml index 4b74b3f..bca9c65 100644 --- a/metadata.yml +++ b/metadata.yml @@ -193,20 +193,6 @@ dependencies: - - ">=" - !ruby/object:Gem::Version version: '0' -- !ruby/object:Gem::Dependency - name: pry - requirement: !ruby/object:Gem::Requirement - requirements: - - - ">=" - - !ruby/object:Gem::Version - version: '0' - type: :development - prerelease: false - version_requirements: !ruby/object:Gem::Requirement - requirements: - - - ">=" - - !ruby/object:Gem::Version - version: '0' description: Capybara is an integration testing tool for rack based web applications. It simulates how a user would interact with a website email: diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 345e1db..2c7d968 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,6 +1,5 @@ require 'rspec/expectations' require "capybara/spec/spec_helper" -require "pry" RSpec.configure do |config| Capybara::SpecHelper.configure(config) debian/patches/0001-Remove-support-for-the-selenium-driver.patch0000644000000000000000000000123212574000662021635 0ustar From: =?utf-8?q?J=C3=A9r=C3=A9my_Bobbio?= Date: Fri, 22 Mar 2013 09:08:21 +0000 Subject: Remove support for the :selenium driver Until ruby-selenium-webdriver lands in Debian, see , we remove support for the :selenium driver. --- lib/capybara.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/capybara.rb b/lib/capybara.rb index bd46520..b3cdd93 100644 --- a/lib/capybara.rb +++ b/lib/capybara.rb @@ -392,7 +392,3 @@ end Capybara.register_driver :rack_test do |app| Capybara::RackTest::Driver.new(app) end - -Capybara.register_driver :selenium do |app| - Capybara::Selenium::Driver.new(app) -end debian/watch0000644000000000000000000000014512574000662010221 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/capybara .*/capybara-(.*).tar.gz debian/source/0000755000000000000000000000000012574000662010470 5ustar debian/source/format0000644000000000000000000000001412574000662011676 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000225712574000662011050 0ustar ruby-capybara (2.5.0-1) unstable; urgency=medium * New upstream version: - Add compatibility with RSpec 3. (Closes: #795029) * Update git-buildpackage configuration. * Refresh patches. * Add a patch to inhibit tests requiring launchy. * Switch to debhelper compat level 9. * Update Vcs-Browser URL. * Update debian/copyright. * Bump Standards-Version, no changes required. -- Jérémy Bobbio Wed, 09 Sep 2015 11:53:36 +0200 ruby-capybara (2.2.1-1) unstable; urgency=low * New upstream version. * Refresh patches. * Restore support for all Ruby versions in the archive. (Closes: #746070) * Bump Standards-Version, no changes required. -- Jérémy Bobbio Sun, 04 May 2014 13:54:54 +0200 ruby-capybara (2.1.0-1) unstable; urgency=low * New upstream version. * Refresh patches against new upstream. * Add a patch to avoid the need for pry to run test suite. * Switch homepage to https. -- Jérémy Bobbio Fri, 28 Jun 2013 15:37:33 +0200 ruby-capybara (2.0.2-1) unstable; urgency=low * Initial release (Closes: #624610) -- Jérémy Bobbio Wed, 17 Apr 2013 11:13:05 +0200 debian/copyright0000644000000000000000000000276112574000662011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: capybara Source: https://github.com/jnicklas/capybara/ Files: * Copyright: 2009-2015 Jonas Nicklas License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: debian/* Copyright: 2013-2015 Jérémy Bobbio License: permissive Copying and distribution of this package, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. debian/ruby-capybara.lintian-overrides0000644000000000000000000000024212574000662015307 0ustar # This is actually not an image but a dummy text file... ruby-capybara binary: image-file-in-usr-lib usr/lib/ruby/vendor_ruby/capybara/spec/fixtures/capybara.jpg debian/README.Debian0000644000000000000000000000041612574000662011232 0ustar Capybara for Debian =================== Until the `selenium-webdriver` gem is packaged, the `:selenium` driver has been disabled in the Debian package for Capybara. See for more details on an upcoming package for `Selenium::WebDriver`. debian/compat0000644000000000000000000000000212574000662010366 0ustar 9 debian/ruby-tests.rake0000644000000000000000000000013112574000662012150 0ustar require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) task :default => :spec debian/control0000644000000000000000000000231012574000662010567 0ustar Source: ruby-capybara Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Jérémy Bobbio Build-Depends: debhelper (>= 9), gem2deb (>= 0.3.0~), ruby-nokogiri, ruby-mime-types, ruby-rack, ruby-rack-test, ruby-xpath, ruby-sinatra, ruby-rspec, yard, cucumber, rake Standards-Version: 3.9.6 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-capybara.git Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-capybara.git Homepage: https://github.com/jnicklas/capybara XS-Ruby-Versions: all Package: ruby-capybara Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-nokogiri, ruby-mime-types, ruby-rack, ruby-rack-test, ruby-xpath, libjs-jquery, libjs-jquery-ui Suggests: ruby-launchy Description: integration testing tool for Rack based web applications Capybara helps to test web applications based on Rack (such as the ones using Rails or Sinatra). It simulates how a real user would interact with the application. Multiple test drivers are supported Rack::Test comes built-in but other drivers can be added separately. debian/ruby-capybara.links0000644000000000000000000000030512574000662012771 0ustar usr/share/javascript/jquery/jquery.js usr/lib/ruby/vendor_ruby/capybara/spec/public/jquery.js usr/share/javascript/jquery-ui/jquery-ui.js usr/lib/ruby/vendor_ruby/capybara/spec/public/jquery-ui.js debian/ruby-capybara.docs0000644000000000000000000000001212574000662012574 0ustar README.md debian/rules0000755000000000000000000000022312574000662010245 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=ruby --with ruby override_dh_installchangelogs: dh_installchangelogs History.md -O--buildsystem=ruby debian/gbp.conf0000644000000000000000000000024112574000662010604 0ustar [DEFAULT] pristine-tar = True [import-orig] filter = ['lib/capybara/spec/public/jquery.js', 'lib/capybara/spec/public/jquery-ui.js'] filter-pristine-tar = True