openapi-rails 0.3.7 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openapi/mongoid/spec_builder.rb +8 -0
- data/lib/openapi/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: 11b07d542fe83151b401c7a36caca18f25c1c197
|
4
|
+
data.tar.gz: 78e73108ae2b0ad1684c0c13be7f5a296e1b96ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3853a5e282c84dce66dd2ee948cff206eed5f3c4c9023b1d868519cbb8eddd0d896853b6ebfcc458372c2269b77fdebf64cc39a85af13c0899925b353f2763e
|
7
|
+
data.tar.gz: 59184ece6abcf11fbb1eb693653a5ea12fd671e3214165c539d9cfe0824c828d0e85e074a647c02aa48127d9baff6e05b812b48301755da45f25b3885c9c5717
|
@@ -69,6 +69,14 @@ module Openapi
|
|
69
69
|
self.spec_resource_class ||=
|
70
70
|
self.try(:crud_resource_class)
|
71
71
|
|
72
|
+
self.spec_resource_class ||=
|
73
|
+
self.to_s.
|
74
|
+
split('::').
|
75
|
+
last.
|
76
|
+
sub(/Controller$/, '').
|
77
|
+
singularize.
|
78
|
+
constantize
|
79
|
+
|
72
80
|
self.spec_resource_name ||=
|
73
81
|
self.spec_resource_class.to_s.remove('::')
|
74
82
|
|
data/lib/openapi/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openapi-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kravets
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-01-
|
12
|
+
date: 2017-01-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: swagger-blocks
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
173
|
rubyforge_project:
|
174
|
-
rubygems_version: 2.
|
174
|
+
rubygems_version: 2.6.8
|
175
175
|
signing_key:
|
176
176
|
specification_version: 4
|
177
177
|
summary: CRUD interface for Rails models with OpenAPI (Swagger) specification support
|