contraction 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/parser.rb +1 -1
- data/lib/parser/lines.rb +1 -1
- data/lib/parser/type.rb +0 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca84999455ea3e43172f5d33752c99aaa56ef836
|
4
|
+
data.tar.gz: eef1fdb71b937c70441b06c9a9d9cdc28c7d950e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7adc039c3cb32b7866de67bb4621872985654786a27a996764ca64ccdcf1975176e18165270d1da284c72b6a52b83bec1442922194b33abb67747317e32ceee0
|
7
|
+
data.tar.gz: ae8908494a10e9c351f4f8153ab61f88fa3f071163174e55a88c9e317cb49c7a54b52f3bf08094fb15bddb3355989bfee575f46542508a51694be9f917035a82
|
data/lib/parser.rb
CHANGED
@@ -7,7 +7,7 @@ require 'contract'
|
|
7
7
|
module Contraction
|
8
8
|
module Parser
|
9
9
|
RETURN_LINE_REGEX = /^#\s*@return\s+(?<type>\[[^\]]+\])?\s*(?<message>[^{]+)?(?<contract>\{([^}]+)\})?/
|
10
|
-
PARAM_LINE_REGEX = /^#\s*@param\s+(?<type>\[[^\]]+\])?\s*(?<name>[^\s]+)\s
|
10
|
+
PARAM_LINE_REGEX = /^#\s*@param\s+(?<type>\[[^\]]+\])?\s*(?<name>[^\s]+)\s*(?<message>[^{]+)?(?<contract>\{([^}]+)\})?/
|
11
11
|
|
12
12
|
# Parses text passed to it for a given method for RDoc @param and @return
|
13
13
|
# lines to build contracts.
|
data/lib/parser/lines.rb
CHANGED
data/lib/parser/type.rb
CHANGED