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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 975a235818d6db49cd7fa682097786bdddea1ca0
4
- data.tar.gz: ce7d4e6e8445fdb0657328b8b43a5f98a5008758
3
+ metadata.gz: 24e47db7c99a60f14f7334500350a810e300f2a8
4
+ data.tar.gz: 2f52e42bb47863170511fd0cd037f87cac32e403
5
5
  SHA512:
6
- metadata.gz: 4c5eb07c84cbc3eda2e169ed70b9b08ab6615ce3bf2e58d0c5d9f7fba32a2f181ff8f1e488369e3e316c438b3d021e8873f1a2a58621a7e5d5c5308e3671fca7
7
- data.tar.gz: bac879d907aea3d434b852c4cb701efa2a243d82152d5ecbdf362bcc75fe25e4c7a30b684999291cc0f2d79efc560658c3eacc99a98840889d9a00b069f9aa79
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\[(\w*)\]\s*([\w\[\]]*)(\(required\))?\s*(.*)\Z/).captures
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
@@ -1,5 +1,5 @@
1
1
  module Swaggard
2
2
 
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
 
5
5
  end
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.0
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-02-06 00:00:00.000000000 Z
11
+ date: 2016-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails