domino 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/domino.gemspec +1 -1
  3. data/lib/domino.rb +3 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 668a5c9b60cd2400258480a45f70444913a6c776
4
- data.tar.gz: 411bee6d727404291237bd9fa7e286371f413cc4
3
+ metadata.gz: 8e011d8bc68c0c8ae737dca7043ba829256b5cb6
4
+ data.tar.gz: 71e4c55f827b3a608e3ecd754b665ee37dc02cbb
5
5
  SHA512:
6
- metadata.gz: 4de9f8704851ef5e0f2891f44218db61022a65ec6a1bf11278fb966286a38df418f14b554992614436df2b310674ad454db7eac2aac43fb0ef8f038d69ca6256
7
- data.tar.gz: 8812d350512383ba7b3503b3e9d2644e14f81215217caad816120a4ddb3ee106afc4884185f1cf255a6e82189e52a23f0ff29726c1a26bbf06767d597164f215
6
+ metadata.gz: f4f2e5bd103f116d0f0bc2eedd120536abe9bd9e7aee8b3fb3eaaa592a404b376d6977db952bd4152884d286acd5deff2f8cd62becdbd388f5a60d385741a4a3
7
+ data.tar.gz: 711b95a1769bb2c17782cb539b76706dbdf1e041444ac3d574c93e6b2e9f83b52de509dfe91e4f91cf2278ce12a0aea02d04c1317bdd634ae76fbd6012d77103
data/domino.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = "domino"
4
- gem.version = "0.7.0"
4
+ gem.version = "0.7.1"
5
5
  gem.platform = Gem::Platform::RUBY
6
6
  gem.authors = ["Nick Gauthier"]
7
7
  gem.email = ["ngauthier@gmail.com"]
data/lib/domino.rb CHANGED
@@ -85,7 +85,9 @@ class Domino
85
85
  # Returns collection of Dominos for capybara node matching all attributes.
86
86
  def where(attributes)
87
87
  select do |node|
88
- attributes.to_set.subset?(node.attributes.to_set)
88
+ attributes.all? do |key, value|
89
+ node.send(key) == value if node.respond_to?(key)
90
+ end
89
91
  end
90
92
  end
91
93
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domino
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Gauthier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-08 00:00:00.000000000 Z
11
+ date: 2015-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  requirements: []
106
106
  rubyforge_project:
107
- rubygems_version: 2.4.2
107
+ rubygems_version: 2.4.8
108
108
  signing_key:
109
109
  specification_version: 4
110
110
  summary: View abstraction for integration testing