skink 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/lib/skink/client/response.rb +3 -1
- data/lib/skink/version.rb +1 -1
- data/spec/skink_dsl_spec.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fa8e1ea7c449f390a54abc8cbafb8eadd823f11
|
4
|
+
data.tar.gz: 97b2b5a43cf122751b40becfd681e93308ce8ab5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: affb81d9026b652398b37e711ee46ccc59ca5d331fec99055ec25b9689130182da7e040bfff0bc668fcf7927a6551fe088204d937de2529588733e1fabd0a3b6
|
7
|
+
data.tar.gz: d7a4bf0e6ff1a3e5212a589a2042c8ec5e36f1fcd061c6a4ec3267544a9b2369f141cb9b8aac6dd1ae41da6b609633fe12b90ad03ab7eaa493d065cdbfe6489f
|
data/.travis.yml
CHANGED
@@ -91,7 +91,8 @@ class Response
|
|
91
91
|
def links
|
92
92
|
if link_header
|
93
93
|
LinkHeader.parse(link_header).to_a.map do |linkarr|
|
94
|
-
|
94
|
+
with_sym_keys = Hash[linkarr[1].map{|(k,v)| [k.to_sym,v]}]
|
95
|
+
{url: linkarr[0]}.merge with_sym_keys
|
95
96
|
end
|
96
97
|
end
|
97
98
|
end
|
@@ -103,6 +104,7 @@ class Response
|
|
103
104
|
if opts.nil?
|
104
105
|
links.any?
|
105
106
|
else
|
107
|
+
opts = Hash[opts.map{|(k,v)| [k.to_sym,v]}]
|
106
108
|
links.any? do |link|
|
107
109
|
link == link.deep_merge(opts)
|
108
110
|
end
|
data/lib/skink/version.rb
CHANGED
data/spec/skink_dsl_spec.rb
CHANGED
@@ -79,7 +79,9 @@ shared_examples "a REST API test language" do
|
|
79
79
|
response.should_not have_header("This-Is-Not-A-Header-Name")
|
80
80
|
|
81
81
|
response.should have_link_header
|
82
|
-
response.should have_link_header({url: 'http://link.example.com'})
|
82
|
+
response.should have_link_header({url: 'http://link.example.com', rel: 'search'})
|
83
|
+
response.should have_link_header({'url' => 'http://link.example.com', 'rel' => 'search'})
|
84
|
+
response.should have_link_header({url: 'http://link.example.com', 'rel' => 'search'})
|
83
85
|
end
|
84
86
|
|
85
87
|
it "has a helpful failure message for have_header" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skink
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Todd Thomas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack-test
|