rails_api_documentation 0.1.7 → 0.1.8
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1afeaa5bfc004cbd8b336ee5e519c68370e93a9
|
4
|
+
data.tar.gz: 62bc79580e467745d34c3d09ea163e01447937d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f375d2f59a0760eed8126def0aaf1a13e47d69c3e5b1843607c4bf8aa19d05c48c92b114ad4a478daa0d5404362a9ce78e3e6b8057ad7a8441627bb197f5af6
|
7
|
+
data.tar.gz: e0dc7b4fa38831dfee6e4f9246d94b00f6d05587d15fd00c2fb87980d72fa0755e4f0f19474ac949c7f0853c6c1fb86380e2b09e11bf9f6fecfd219e46d00e53
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# author: Vadim Shaveiko <@vshaveyko>
|
3
3
|
class RailsApiDoc::Controller::Parameter::Repository::Param
|
4
4
|
|
5
|
-
ACCEPTED_TYPES = [Bool, String, Integer, Object, Array, DateTime, :enum, :model].freeze
|
5
|
+
ACCEPTED_TYPES = [::Bool, String, Integer, Object, Array, DateTime, :enum, :model].freeze
|
6
6
|
|
7
7
|
# @type - type to check
|
8
8
|
def self.accepted_nested_type?(type)
|
data/lib/rails_api_doc.rb
CHANGED
@@ -27,6 +27,13 @@ end
|
|
27
27
|
require 'rails_api_doc/version'
|
28
28
|
require 'rails_api_doc/engine'
|
29
29
|
|
30
|
-
#
|
30
|
+
# constants for defining in controllers
|
31
|
+
# TODO: move to namespace ?
|
31
32
|
class Bool
|
32
33
|
end
|
34
|
+
|
35
|
+
class Enum
|
36
|
+
end
|
37
|
+
|
38
|
+
class Nested
|
39
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_api_documentation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vs
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|