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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c254dadb291d2de68f549efc3c26407a9bf67b23058d495af7543534ee6b5dd
4
- data.tar.gz: f67dedb6a9b0336fade718fd4249781a7db541f22017ae793f6ccc449d7fdd27
3
+ metadata.gz: 9090792ade8b44f18851585ce025a354fab47ff9cb7903ae61982507c34302bf
4
+ data.tar.gz: 26551e11739758d40987f7026cc556e475952f79419cb24abf5df4207ba40364
5
5
  SHA512:
6
- metadata.gz: 988cdf3140fa6de3fe5f290ba43114a52e9037e158b8d6acec65c850d86cf4563b7c5870b2137424ffaeaaf887d4c368f1bfacc448363ee31984e17de6594b95
7
- data.tar.gz: 81945d8559b1b1ff3bcd0de08542eead1ad1b30c3fd8d9472cd89ac128e22afa1b385abed2e54daf636c19bb220224842c0e1dc560aa9959f6256f11545505b7
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
 
@@ -3,7 +3,7 @@
3
3
  module RSpec
4
4
  module Rails
5
5
  module Api
6
- VERSION = '0.3.3'
6
+ VERSION = '0.3.4'
7
7
  end
8
8
  end
9
9
  end
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.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-06-02 00:00:00.000000000 Z
11
+ date: 2021-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport