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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 941fa126a27124a0c69684155e7b5482b0188cdb
4
- data.tar.gz: ca72b6a3d47a69f8d0b435600655f10ffe2a5e79
3
+ metadata.gz: 7fa8e1ea7c449f390a54abc8cbafb8eadd823f11
4
+ data.tar.gz: 97b2b5a43cf122751b40becfd681e93308ce8ab5
5
5
  SHA512:
6
- metadata.gz: 7430e23e6475b2059b720e6d5815e083b62e30d0ee2d668dc61ab86f959da4726555e2419ae1059ec7b07c75f9c53bbe5ae835c267d518d59643ef89e31d3173
7
- data.tar.gz: 277dd7fcb03156e969c3011acfcb314af21799410d83abd815428b97f836fece8749de1b9ab4c0bd9bb2c287f455df49617ae8c3753e7ada2b4b39c63297eb69
6
+ metadata.gz: affb81d9026b652398b37e711ee46ccc59ca5d331fec99055ec25b9689130182da7e040bfff0bc668fcf7927a6551fe088204d937de2529588733e1fabd0a3b6
7
+ data.tar.gz: d7a4bf0e6ff1a3e5212a589a2042c8ec5e36f1fcd061c6a4ec3267544a9b2369f141cb9b8aac6dd1ae41da6b609633fe12b90ad03ab7eaa493d065cdbfe6489f
data/.travis.yml CHANGED
@@ -6,3 +6,7 @@ rvm:
6
6
  - 2.1.0
7
7
  - jruby-19mode
8
8
  - rbx-2.2.1
9
+ matrix:
10
+ allow_failures:
11
+ - rvm: jruby-19mode
12
+ - rvm: rbx-2.2.1
@@ -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
- {url: linkarr[0]}.merge Hash[linkarr[1]]
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
@@ -1,3 +1,3 @@
1
1
  module Skink
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
@@ -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.0
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-06 00:00:00.000000000 Z
11
+ date: 2013-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack-test