grape-swagger-entity 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +6 -0
- data/lib/grape-swagger/entity/parser.rb +4 -1
- data/lib/grape-swagger/entity/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 728921dd6134e0517a9d041b71ad9eb576cbf69d
|
4
|
+
data.tar.gz: f5a194a8dfff4a6d26283fdc52dbb75e0530e19a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cde2391099a8e9347d51330d750148aa6d197d6aab5e3d369b1a864ebfe397f26aa42ac4ca1e7d388415f6956b250f491dfa480629899b13ed66a8e9e41fa7a
|
7
|
+
data.tar.gz: 3936253b710cae0bdde531efa60bdc90e3f6c3063c990748c1f4d026cc4f94e9f3c8a0e3e73ed479898a5fbdfaf8bf83c1c5852dfefb0cf1288c2aac7c429394
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,12 @@
|
|
8
8
|
|
9
9
|
* Your contribution here.
|
10
10
|
|
11
|
+
### 0.3.2 (January 15, 2019)
|
12
|
+
|
13
|
+
#### Features
|
14
|
+
|
15
|
+
* [#38](https://github.com/ruby-grape/grape-swagger-entity/pull/38): Added support for hidden option for documentation - [@vitoravelino](https://github.com/vitoravelino).
|
16
|
+
|
11
17
|
### 0.3.1 (November 26, 2018)
|
12
18
|
|
13
19
|
#### Features
|
@@ -34,7 +34,10 @@ module GrapeSwagger
|
|
34
34
|
return unless params
|
35
35
|
|
36
36
|
parsed = params.each_with_object({}) do |(entity_name, entity_options), memo|
|
37
|
-
|
37
|
+
documentation_options = entity_options.fetch(:documentation, {})
|
38
|
+
in_option = documentation_options.fetch(:in, nil).to_s
|
39
|
+
hidden_option = documentation_options.fetch(:hidden, nil)
|
40
|
+
next if in_option == 'header' || hidden_option == true
|
38
41
|
|
39
42
|
final_entity_name = entity_options.fetch(:as, entity_name)
|
40
43
|
documentation = entity_options[:documentation]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grape-swagger-entity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kirill Zaitsev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grape-entity
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
86
|
rubyforge_project:
|
87
|
-
rubygems_version: 2.
|
87
|
+
rubygems_version: 2.5.2
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Grape swagger adapter to support grape-entity object parsing
|