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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc53c34a1d96a10227eb1bab911e2801f27f0a7f
4
- data.tar.gz: 68e4e46eef97cbcd75dcad25ae000c561471daed
3
+ metadata.gz: 11b07d542fe83151b401c7a36caca18f25c1c197
4
+ data.tar.gz: 78e73108ae2b0ad1684c0c13be7f5a296e1b96ca
5
5
  SHA512:
6
- metadata.gz: b2cf34d44f6763fa37943a4fa28c91c500df1f4717f3f817852de09b35d3f8ec8cff9e4e54ae6c9349146b4b7f89539bcbb01d7aedb3b4770dd8d34d031c7b3e
7
- data.tar.gz: 73dc36adcf7dfdf6071a57d36d1af32b94955305e0973dae10144114c1aed0572beb7b6496710667516e3703ca883f3e04a9a01eff6d4f978e0b80c2ee33cb30
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
 
@@ -1,3 +1,3 @@
1
1
  module Openapi
2
- VERSION = '0.3.7'.freeze
2
+ VERSION = '0.3.9'.freeze
3
3
  end
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.7
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 00:00:00.000000000 Z
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.5.1
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