reqres_rspec 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reqres_rspec/collector.rb +6 -4
- data/lib/reqres_rspec/version.rb +1 -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: 33b9c2ae1ff89f8b143a95b57ab5e24610d30f03
|
4
|
+
data.tar.gz: 17da2fccf67c882f86865cb83db2848f4ba357a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18b8874053b92d709588cd367353b57fe5aaa2af01dcaa57249ae5f4fa8797f363efe00e3655b9c4cf0e0606e89f09e772b32d46861252f3ca683c5169bde7f1
|
7
|
+
data.tar.gz: a8ca25cc3442248f14c9f179c142e28f51d01be5e75deee83678bc46b196b88a5b7999506c6887fa0a10530ca9034625d3438c11f38cdcfd52562c12562cb3ea
|
@@ -3,11 +3,13 @@ module ReqresRspec
|
|
3
3
|
# Contains spec values read from rspec example, request and response
|
4
4
|
attr_accessor :records
|
5
5
|
|
6
|
-
#
|
6
|
+
# Param importances
|
7
7
|
PARAM_IMPORTANCES = %w[required optional]
|
8
8
|
|
9
|
-
#
|
10
|
-
|
9
|
+
# Param types
|
10
|
+
# NOTE: make sure sub-strings go at the end
|
11
|
+
PARAM_TYPES = ['Boolean', 'String', 'Text', 'Float', 'DateTime', 'Date', 'File',
|
12
|
+
'Array of Integer', 'Array of String', 'Array', 'Integer']
|
11
13
|
|
12
14
|
# response headers contain many unnecessary information,
|
13
15
|
# everything from this list will be stripped
|
@@ -126,7 +128,7 @@ module ReqresRspec
|
|
126
128
|
|
127
129
|
# replace each first occurrence of param's value in the request path
|
128
130
|
#
|
129
|
-
#
|
131
|
+
# Example:
|
130
132
|
# request path = /api/users/123
|
131
133
|
# id = 123
|
132
134
|
# symbolized path => /api/users/:id
|
data/lib/reqres_rspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reqres_rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rilian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coderay
|