Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.4.0
Fetching contributors…

Cannot retrieve contributors at this time

file 42 lines (36 sloc) 1.795 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "capybara-js_finders/version"

Gem::Specification.new do |s|
  s.name = "capybara-js_finders"
  s.version = Capybara::JsFinders::VERSION
  s.authors = ["Robert Pankowecki"]
  s.email = %w(robert.pankowecki@gmail.com rpa@gavdi.com)
  s.homepage = "https://github.com/paneq/capybara-js_finders"
  s.summary = %q{Additional finders for capybara that for some reason cannot use only xpath for finding nodes but needs to execute js for some calculations}
  s.description = <<-DESC
Additional finders for capybara that for some reason
cannot use only xpath for finding nodes but needs to
execute js for some calculations.

Ex: I you want to find a table cell
that is under or next to other cell the easiest way to do it is to
check their position on page and compare them. This way you do not
need to wory about calculating the effects of using colspan
and rowspan attributes.

The downside is that you need to use capybara driver that runs
a browser like selenium.
DESC

  s.rubyforge_project = "capybara-js_finders"

  s.files = `git ls-files`.split("\n")
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
  s.require_paths = ["lib"]

  s.add_dependency "capybara", "~> 1.0.0"
  s.add_development_dependency "rake", "~> 0.9.0"
  s.add_development_dependency "rdoc", ">= 2.4.2"
  s.add_development_dependency "sinatra", "~> 1.2.6"
  s.add_development_dependency "erubis", "~> 2.6.6"
  s.add_development_dependency "bbq", "~> 0.0.3"
  s.add_development_dependency "redcarpet", "~> 1.17"
  s.add_development_dependency "ruby-debug19"
end
Something went wrong with that request. Please try again.