bewildr 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/bewildr/finder.rb +2 -1
- metadata +4 -4
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ require 'cucumber/rake/task'
|
|
10
10
|
|
11
11
|
spec = Gem::Specification.new do |s|
|
12
12
|
s.name = 'bewildr'
|
13
|
-
s.version = '0.1.
|
13
|
+
s.version = '0.1.11'
|
14
14
|
s.has_rdoc = true
|
15
15
|
s.extra_rdoc_files = ['README.rdoc', 'LICENSE']
|
16
16
|
s.summary = 'Test WPF UI apps with IronRuby'
|
data/lib/bewildr/finder.rb
CHANGED
@@ -17,7 +17,8 @@ module Bewildr
|
|
17
17
|
#These keys can be combined to create more complex search criteria
|
18
18
|
def condition_for(condition_hash)
|
19
19
|
conditions = condition_hash.select {|key, value| [:id, :name, :type].include?(key) }
|
20
|
-
conditions = Hash[*conditions.flatten]
|
20
|
+
conditions = Hash[*conditions.flatten] if RUBY_VERSION == "1.8.6"
|
21
|
+
|
21
22
|
case
|
22
23
|
when conditions.length == 0 then raise "Condition needs to include at least an :id, a :name or a :type"
|
23
24
|
when conditions.length == 1 then return single_condition(conditions)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bewildr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 11
|
10
|
+
version: 0.1.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nat Ritmeyer
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-10 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|