rspec-rails-api 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/rspec/rails/api/metadata.rb +3 -0
- data/lib/rspec/rails/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9090792ade8b44f18851585ce025a354fab47ff9cb7903ae61982507c34302bf
|
4
|
+
data.tar.gz: 26551e11739758d40987f7026cc556e475952f79419cb24abf5df4207ba40364
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bc1803ab38dc596f0fbf3993da2f860e22849f1d2e9c68be91e860b36684ee3bf0129a98972afca1d7f65869531c6cc8aa0f36d66aa91d97f92ebbad69cfff1
|
7
|
+
data.tar.gz: b96392b596dd83d1de832b62a72d54afbed0f0a556c36bbf7627ed2fbec7c36d59c4d1d935186e3de62f72524243bf75f92a6429bc492cf559ebb22751e74dcc
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,11 @@
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
4
|
## Not released
|
5
|
+
## 0.3.4 - 2021-10-20
|
6
|
+
- Add the "required" attribute in parameters
|
7
|
+
|
8
|
+
## 0.3.3 - 2021-06-02
|
9
|
+
- Fix correct types on request parameters
|
5
10
|
|
6
11
|
## 0.3.2 - 2021-03-09
|
7
12
|
- Fix YAML rendering (ruby objects were sometimes rendered in documentation)
|
@@ -36,6 +36,9 @@ module RSpec
|
|
36
36
|
def add_parameter(type, fields)
|
37
37
|
raise "Parameter #{type} is already defined" if @parameters[type]
|
38
38
|
|
39
|
+
fields.each_value do |field|
|
40
|
+
field[:required] = true unless field[:required] == false
|
41
|
+
end
|
39
42
|
@parameters[type] = fields
|
40
43
|
end
|
41
44
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-rails-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel Tancoigne
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|