swagger_yard 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/swagger_yard/model.rb +5 -1
- data/lib/swagger_yard/type.rb +1 -1
- data/lib/swagger_yard/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6166455641c33ed4e8dd620e1d9fd6d7a7a04a8
|
4
|
+
data.tar.gz: 3a36d52baa856e2d06acfc04da5c4a19403aeebf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe018dd6c2336f4b5ccd2b144b54a578e6f7a574a603ee67d0f40b973ed00e41dd7a52b7572666dacd37464e24df6897453d238e7ca986ae7b5ab9441bc68169
|
7
|
+
data.tar.gz: 903a6787f86dea465e460b83212546aa67ca60b49287779b982a042af3e9f9379184f78af034b6ba760baa33ef81d9fc135df3056318bff3f1de6e02c5b58df9
|
data/lib/swagger_yard/model.rb
CHANGED
@@ -12,6 +12,10 @@ module SwaggerYard
|
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
15
|
+
def self.mangle(name)
|
16
|
+
name.gsub(/[^[:alnum:]_]+/, '_')
|
17
|
+
end
|
18
|
+
|
15
19
|
def initialize
|
16
20
|
@properties = []
|
17
21
|
end
|
@@ -24,7 +28,7 @@ module SwaggerYard
|
|
24
28
|
tags.each do |tag|
|
25
29
|
case tag.tag_name
|
26
30
|
when "model"
|
27
|
-
@id = tag.text
|
31
|
+
@id = Model.mangle(tag.text)
|
28
32
|
when "property"
|
29
33
|
@properties << Property.from_tag(tag)
|
30
34
|
end
|
data/lib/swagger_yard/type.rb
CHANGED
data/lib/swagger_yard/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swagger_yard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chtrinh (Chris Trinh)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yard
|