debian/0000755000000000000000000000000012163310644007166 5ustar debian/gbp.conf0000644000000000000000000000024512163310644010606 0ustar [DEFAULT] pristine-tar = True [git-import-orig] filter = ['lib/capybara/spec/public/jquery.js', 'lib/capybara/spec/public/jquery-ui.js'] filter-pristine-tar = True debian/rules0000755000000000000000000000022312163310644010243 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=ruby --with ruby override_dh_installchangelogs: dh_installchangelogs History.md -O--buildsystem=ruby debian/ruby-capybara.docs0000644000000000000000000000001212163310644012572 0ustar README.md debian/ruby-capybara.links0000644000000000000000000000030512163310644012767 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/control0000644000000000000000000000233012163310644010567 0ustar Source: ruby-capybara Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Jérémy Bobbio Build-Depends: debhelper (>= 7.0.50~), 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.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-capybara.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-capybara.git Homepage: https://github.com/jnicklas/capybara XS-Ruby-Versions: ruby1.9.1 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-tests.rake0000644000000000000000000000013112163310644012146 0ustar require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) task :default => :spec debian/compat0000644000000000000000000000000212163310644010364 0ustar 7 debian/README.Debian0000644000000000000000000000041612163310644011230 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/ruby-capybara.lintian-overrides0000644000000000000000000000024212163310644015305 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/copyright0000644000000000000000000000275412163310644011131 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-2012 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 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/changelog0000644000000000000000000000066612163310644011050 0ustar 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/source/0000755000000000000000000000000012163310644010466 5ustar debian/source/format0000644000000000000000000000001412163310644011674 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000014512163310644010217 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/capybara .*/capybara-(.*).tar.gz debian/patches/0000755000000000000000000000000012163310644010615 5ustar debian/patches/0001-Remove-support-for-the-selenium-driver.patch0000644000000000000000000000123712163310644021640 0ustar From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= 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 5ec55ce..cb47a63 100644 --- a/lib/capybara.rb +++ b/lib/capybara.rb @@ -338,7 +338,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/patches/0004-Remove-uneeded-dependency-on-pry-in-tests.patch0000644000000000000000000000245112163310644022167 0ustar From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= Date: Fri, 28 Jun 2013 15:36:37 +0200 Subject: Remove uneeded dependency on pry in tests --- metadata.yml | 16 ---------------- spec/spec_helper.rb | 1 - 2 files changed, 17 deletions(-) diff --git a/metadata.yml b/metadata.yml index 9fae951..8f01680 100644 --- a/metadata.yml +++ b/metadata.yml @@ -247,22 +247,6 @@ dependencies: - - ! '>=' - !ruby/object:Gem::Version version: '0' -- !ruby/object:Gem::Dependency - name: pry - requirement: !ruby/object:Gem::Requirement - none: false - requirements: - - - ! '>=' - - !ruby/object:Gem::Version - version: '0' - type: :development - prerelease: false - version_requirements: !ruby/object:Gem::Requirement - none: false - 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 03ac1f2..9650bcb 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,4 @@ require "capybara/spec/spec_helper" -require "pry" RSpec.configure do |config| Capybara::SpecHelper.configure(config) debian/patches/0003-Inhibit-tests-that-needs-more-than-one-driver.patch0000644000000000000000000000224212163310644022736 0ustar From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= 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 cce248d..b4e6286 100644 --- a/spec/dsl_spec.rb +++ b/spec/dsl_spec.rb @@ -157,12 +157,14 @@ 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' Capybara.current_session.mode.should == :rack_test Capybara.current_driver = :selenium Capybara.current_session.mode.should == :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 Capybara.current_session.object_id.should == object_id Capybara.current_driver = :selenium debian/patches/series0000644000000000000000000000032112163310644012026 0ustar 0001-Remove-support-for-the-selenium-driver.patch 0002-Inhibit-tests-for-the-selenium-driver.patch 0003-Inhibit-tests-that-needs-more-than-one-driver.patch 0004-Remove-uneeded-dependency-on-pry-in-tests.patch debian/patches/0002-Inhibit-tests-for-the-selenium-driver.patch0000644000000000000000000000201412163310644021412 0ustar From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bobbio?= 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/selenium_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/selenium_spec.rb b/spec/selenium_spec.rb index 7de2545..6d7c1d4 100644 --- a/spec/selenium_spec.rb +++ b/spec/selenium_spec.rb @@ -1,5 +1,6 @@ require 'spec_helper' +< [ :status_code, :trigger ] +PENDING describe Capybara::Session do +pending "waiting for a ruby-selenium-driver package in Debian" do + context 'with selenium driver' do before do @session = TestSessions::Selenium @@ -50,3 +54,4 @@ describe Capybara::Session do end end end +end debian/README.source0000644000000000000000000000037312163310644011350 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.