rspec-api-matchers 0.6.0 → 0.6.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: 7a9cb40b04968465419bdc9816a1002fe6a29761
4
- data.tar.gz: f1ca85d85451586be343f9edf7bb2d6405590578
3
+ metadata.gz: d7bafa7be5d9a9a73eec85c9c1fa473844e348a1
4
+ data.tar.gz: b95d6c0afaa31f027647e56645e97030e4bd654e
5
5
  SHA512:
6
- metadata.gz: a5315d2e00d92d287059754dbef2aa689305f43ed5e66b5a580b332aed9430a1cc4741b9a1f96b768f5c074e45910c1d31a4b9c6ad04301461407d6f1bdfcbbd
7
- data.tar.gz: 59b6add713ca2f7988ffca56bddbb5fb64efc069066f01e283ac135ed00382fcf3834f573c7dba9d7920c59fad110ce850c903e4ccdc54738eb267ae429dae89
6
+ metadata.gz: e7bf0a450c8600f4b1d93f7ca503fe50280356700b34b72701cd1bde563dcdb96498d3ef3620e62ff81be6587cb130db2645c06404650084f3ff1b11e02cb1a8
7
+ data.tar.gz: 500abca1395d180d69c261e486af6821a52102f3603762369a1984d81db200dc9e0bfd7450854407bc0297207c4ae7034db12d57f8ffe8c32199612fd007c51b
data/README.md CHANGED
@@ -31,11 +31,11 @@ How to install
31
31
  To install on your system, run `gem install rspec-api-matchers`.
32
32
  To use inside a bundled Ruby project, add this line to the Gemfile:
33
33
 
34
- gem 'rspec-api-matchers', '~> 0.5.0'
34
+ gem 'rspec-api-matchers', '~> 0.6.0'
35
35
 
36
36
  The rspec-api-matchers gem follows [Semantic Versioning](http://semver.org).
37
- Any new release that is fully backward-compatible bumps the *patch* version (0.5.1).
38
- Any new version that breaks compatibility bumps the *minor* version (0.6.0)
37
+ Any new release that is fully backward-compatible bumps the *patch* version (0.0.x).
38
+ Any new version that breaks compatibility bumps the *minor* version (0.x.0)
39
39
 
40
40
  Indicating the full version in your Gemfile (*major*.*minor*.*patch*) guarantees
41
41
  that your project won’t occur in any error when you `bundle update` and a new
@@ -46,4 +46,5 @@ How to contribute
46
46
  =================
47
47
 
48
48
  Don’t hesitate to send me code comments, issues or pull requests through GitHub!
49
+
49
50
  All feedback is appreciated. Thanks :)
@@ -91,7 +91,7 @@ module RSpecApi
91
91
 
92
92
  def to_hash(attrs)
93
93
  array = Array.wrap(attrs).map do |item|
94
- item.is_a?(Hash) ? [item.keys.first, item.values.first] : [item, {}]
94
+ item.is_a?(Hash) ? item.to_a.flatten : [item, {}]
95
95
  end.flatten
96
96
  Hash[*array]
97
97
  end
@@ -16,6 +16,7 @@ module RSpecApi
16
16
  content_type = case type
17
17
  when :json then 'application/json; charset=utf-8'
18
18
  when :any then %r{}
19
+ else type
19
20
  end
20
21
  RSpecApi::Matchers::ContentType::Matcher.new content_type
21
22
  end
@@ -1,5 +1,5 @@
1
1
  module RSpecApi
2
2
  module Matchers
3
- VERSION = '0.6.0'
3
+ VERSION = '0.6.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-api-matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob