grape-swagger-entity 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/.rubocop_todo.yml +12 -13
- data/CHANGELOG.md +6 -0
- data/Gemfile +1 -1
- data/Rakefile +1 -1
- data/grape-swagger-entity.gemspec +1 -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
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '029fa174a6e8b862a95e41092e5eb3f88620d55c'
|
|
4
|
+
data.tar.gz: e319381ef0cb0e125d838ec535ba7f76961c10b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c9be3808f26f6024559d88b9ba1824ec4be407a8d79ae1dc78117ceb565b6a5fddf8fd45683977be26a2fe65a490f80d58610c63a3f88f4d31c135b18630a2f4
|
|
7
|
+
data.tar.gz: a9bfcc5f55b02133f4f6ffa3bc17c57285ddb957ee839d68fc1f9c42e030be9e8f38cb5c597d2d7dca9916d865b17992cfabd23e06df5d0c11fbc6ae12198c2b
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2017-
|
|
3
|
+
# on 2017-07-03 22:59:40 +0300 using RuboCop version 0.49.1.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
@@ -8,16 +8,21 @@
|
|
|
8
8
|
|
|
9
9
|
# Offense count: 2
|
|
10
10
|
Metrics/AbcSize:
|
|
11
|
-
Max:
|
|
11
|
+
Max: 40
|
|
12
|
+
|
|
13
|
+
# Offense count: 1
|
|
14
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
|
15
|
+
Metrics/BlockLength:
|
|
16
|
+
Max: 27
|
|
12
17
|
|
|
13
18
|
# Offense count: 1
|
|
14
19
|
# Configuration parameters: CountComments.
|
|
15
20
|
Metrics/ClassLength:
|
|
16
|
-
Max:
|
|
21
|
+
Max: 124
|
|
17
22
|
|
|
18
23
|
# Offense count: 1
|
|
19
24
|
Metrics/CyclomaticComplexity:
|
|
20
|
-
Max:
|
|
25
|
+
Max: 15
|
|
21
26
|
|
|
22
27
|
# Offense count: 14
|
|
23
28
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
@@ -28,22 +33,16 @@ Metrics/LineLength:
|
|
|
28
33
|
# Offense count: 3
|
|
29
34
|
# Configuration parameters: CountComments.
|
|
30
35
|
Metrics/MethodLength:
|
|
31
|
-
Max:
|
|
36
|
+
Max: 30
|
|
32
37
|
|
|
33
38
|
# Offense count: 2
|
|
34
39
|
Metrics/PerceivedComplexity:
|
|
35
|
-
Max:
|
|
40
|
+
Max: 16
|
|
36
41
|
|
|
37
42
|
# Offense count: 2
|
|
38
43
|
Style/Documentation:
|
|
39
44
|
Exclude:
|
|
40
45
|
- 'spec/**/*'
|
|
46
|
+
- 'test/**/*'
|
|
41
47
|
- 'lib/grape-swagger/entity.rb'
|
|
42
48
|
- 'lib/grape-swagger/entity/parser.rb'
|
|
43
|
-
|
|
44
|
-
# Offense count: 1
|
|
45
|
-
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
|
46
|
-
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
|
47
|
-
Style/FileName:
|
|
48
|
-
Exclude:
|
|
49
|
-
- 'lib/grape-swagger-entity.rb'
|
data/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
* Your contribution here.
|
|
10
10
|
|
|
11
|
+
### 0.2.1 (Jule 5, 2017)
|
|
12
|
+
|
|
13
|
+
#### Features
|
|
14
|
+
|
|
15
|
+
* [#26](https://github.com/ruby-grape/grape-swagger-entity/pull/26): Add support for read only field - [@FChaack](https://github.com/FChaack).
|
|
16
|
+
|
|
11
17
|
### 0.2.0 (March 2, 2017)
|
|
12
18
|
|
|
13
19
|
#### Features
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
|
@@ -52,7 +52,10 @@ module GrapeSwagger
|
|
|
52
52
|
end
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
if documentation
|
|
56
|
+
memo[entity_name][:read_only] = documentation[:read_only].to_s == 'true' if documentation[:read_only]
|
|
57
|
+
memo[entity_name][:description] = documentation[:desc] if documentation[:desc]
|
|
58
|
+
end
|
|
56
59
|
end
|
|
57
60
|
end
|
|
58
61
|
|
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.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kirill Zaitsev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-07-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: grape-swagger
|
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
83
83
|
version: '0'
|
|
84
84
|
requirements: []
|
|
85
85
|
rubyforge_project:
|
|
86
|
-
rubygems_version: 2.5.
|
|
86
|
+
rubygems_version: 2.5.2
|
|
87
87
|
signing_key:
|
|
88
88
|
specification_version: 4
|
|
89
89
|
summary: Grape swagger adapter to support grape-entity object parsing
|