swaggard 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/swaggard/swagger/parameters/query.rb +1 -1
- data/lib/swaggard/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: 24e47db7c99a60f14f7334500350a810e300f2a8
|
4
|
+
data.tar.gz: 2f52e42bb47863170511fd0cd037f87cac32e403
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7827e98f7bf3ff42c00068a9b809e34bed18444fb1f0b5bdd0b1262e900c536fdbfef1c1ce4165a9f13e7aa10009ddb1f5804c006a3d015e1b2d07df983e76d9
|
7
|
+
data.tar.gz: 64eb703c895231ec53ccb4d906252354f2743f57490a7ee5cc2a61b7f1cbb7b1aaff3ee8a32cb4f0fc3adcf1f587faee7ba92aefd24721906a4e9e7b4dab2ca2
|
@@ -24,7 +24,7 @@ module Swaggard
|
|
24
24
|
# Example: [Array] status(required) Filter by status. (e.g. status[]=1&status[]=2&status[]=3)
|
25
25
|
# Example: [Integer] media[media_type_id] ID of the desired media type.
|
26
26
|
def parse(string)
|
27
|
-
data_type, name, required, options_and_description = string.match(/\A\[(\
|
27
|
+
data_type, name, required, options_and_description = string.match(/\A\[(\S*)\]\s*([\w\[\]]*)(\(required\))?\s*(.*)\Z/).captures
|
28
28
|
allow_multiple = name.gsub!('[]', '')
|
29
29
|
|
30
30
|
options, description = options_and_description.match(/\A(\[.*\])?(.*)\Z/).captures
|
data/lib/swaggard/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swaggard
|
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
|
- Adrian Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|