skink 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.travis.yml CHANGED
@@ -2,4 +2,5 @@ language: ruby
2
2
  rvm:
3
3
  - "1.9.2"
4
4
  - "1.9.3"
5
- script: bundle exec rspec spec
5
+ - "2.0.0"
6
+ - rbx-19mode
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
- Skink
1
+ Skink [![Build Status](https://travis-ci.org/toddthomas/skink.png)](http://travis-ci.org/toddthomas/skink)
2
2
  =====
3
3
 
4
- [![Build Status](https://travis-ci.org/toddthomas/skink.png)](http://travis-ci.org/toddthomas/skink)
5
-
6
4
  Skink is Capybara's smaller, more primitive companion. Button-clicking
7
5
  and JavaScript are beyond Skink's intellectual abilities, but Skink is
8
6
  happy to help test your REST API.
data/Rakefile CHANGED
@@ -1 +1,7 @@
1
1
  require "bundler/gem_tasks"
2
+
3
+ require "rspec/core/rake_task"
4
+
5
+ RSpec::Core::RakeTask.new(:spec)
6
+
7
+ task :default => :spec
@@ -52,6 +52,8 @@ class Response
52
52
 
53
53
  def has_xpath? path, value = nil
54
54
  elems = xpath(path)
55
+ elems = [elems] unless elems.respond_to? :any?
56
+
55
57
  if value
56
58
  block = ->(elem) {value === elem.to_s}
57
59
  else
data/lib/skink/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Skink
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skink
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-05 00:00:00.000000000 Z
12
+ date: 2013-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack-test
@@ -167,7 +167,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
167
167
  version: '0'
168
168
  segments:
169
169
  - 0
170
- hash: 2165425510283092143
170
+ hash: -875101598988712592
171
171
  required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  none: false
173
173
  requirements:
@@ -176,10 +176,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  version: '0'
177
177
  segments:
178
178
  - 0
179
- hash: 2165425510283092143
179
+ hash: -875101598988712592
180
180
  requirements: []
181
181
  rubyforge_project:
182
- rubygems_version: 1.8.24
182
+ rubygems_version: 1.8.25
183
183
  signing_key:
184
184
  specification_version: 3
185
185
  summary: Skink is Capybara's smaller, more primitive companion.