rspec-api_helpers 1.0.3 → 1.0.4

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: 51a641bd76b3a46a960754e8861860d32972bac1
4
- data.tar.gz: 1b480a982afb4055b3fbfca1fdd3f60b80c6e8bc
3
+ metadata.gz: c08980619017c22065e1a49f255748c058245c9e
4
+ data.tar.gz: e22ecb29f18e63407450fe2ef083c82b08c0e770
5
5
  SHA512:
6
- metadata.gz: c962fddbe7d1be3c2ee17b2ee4dbf5ba30c02da03453bbe2e4b2865fef49e2626d746162a32dd347951c2225c527739348510a123a5c958cc5cdc89b99e4493f
7
- data.tar.gz: 48a8f069f18bba160cd52f01ed9b021d0f54ba6790be941fc2b0a9637192edde45b070a50511b6760da322b5ee700598f745d060123a2f5cd310cdbb363f1c03
6
+ metadata.gz: 19dac1cfcd16a2119677c704f0220aecff28bb3e2dca01d07b71d7e767f034a39a87a1ef8ea6cee53555ffc6f8fb1a971ea4cd18892efcce02733024da6a071c
7
+ data.tar.gz: 8a864633feae73817bbc2575bdcbd153cc448fa0ac5b2e13b9be1294d97dfbcb32297aae6e99ca8b73f3124f4c3034af5198a66e58ebcaf41a6a0ea9fab36317
data/README.md CHANGED
@@ -7,7 +7,7 @@ Usefull Rspec helpers for APIs (currently JSONAPI and AM-JSON adapters are suppo
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'rspec-api_helpers', github: 'kollegorna/rspec-api_helpers'
10
+ gem 'rspec-api_helpers', '1.0.3'
11
11
  ```
12
12
 
13
13
  And then execute:
@@ -64,7 +64,7 @@ It expects the HTTP response to include this header (and value).
64
64
  #### Resource
65
65
 
66
66
  ```ruby
67
- it_returns_attributes(resource: 'user', model: '@user', attrs: [
67
+ it_returns_attributes(resource: 'user', model: proc{@user}, attrs: [
68
68
  :email, :name
69
69
  ])
70
70
  ```
@@ -1,5 +1,5 @@
1
1
  module Rspec
2
2
  module Api
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_runtime_dependency "activesupport", "> 4.2"
22
+ spec.add_runtime_dependency "rspec-core", "> 3.1"
22
23
  spec.add_development_dependency "bundler", "~> 1.7"
23
24
  spec.add_development_dependency "rake", "~> 10.0"
24
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-api_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filippos Vasilakis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-12-18 00:00:00.000000000 Z
12
+ date: 2017-11-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -25,6 +25,20 @@ dependencies:
25
25
  - - ">"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '4.2'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rspec-core
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">"
33
+ - !ruby/object:Gem::Version
34
+ version: '3.1'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">"
40
+ - !ruby/object:Gem::Version
41
+ version: '3.1'
28
42
  - !ruby/object:Gem::Dependency
29
43
  name: bundler
30
44
  requirement: !ruby/object:Gem::Requirement
@@ -97,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
111
  version: '0'
98
112
  requirements: []
99
113
  rubyforge_project:
100
- rubygems_version: 2.5.1
114
+ rubygems_version: 2.6.12
101
115
  signing_key:
102
116
  specification_version: 4
103
117
  summary: Rspec matchers for APIs