contraction 0.3.0 → 0.3.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: e0f7aa54dcbe857b462c9f55a7b72e5462b25cec
4
- data.tar.gz: 5b338f1f833a9434b61dfd0b423387398a6789ce
3
+ metadata.gz: ca84999455ea3e43172f5d33752c99aaa56ef836
4
+ data.tar.gz: eef1fdb71b937c70441b06c9a9d9cdc28c7d950e
5
5
  SHA512:
6
- metadata.gz: 4e31cc128163153debc169166fca37bb472473bfb55f24da2a629dbbe577e3b2080b001820c905cec99825b9942f74e2148c6d1905a5a289291bd724d175eebf
7
- data.tar.gz: f73b4bb2677a13d62c56d935647d1775ab3480e7b5f68f1f18343f0f02010db443d20614a3e4e9b95f3691ef0ff92835d13420e7ad8b984bed163f13c5115cce
6
+ metadata.gz: 7adc039c3cb32b7866de67bb4621872985654786a27a996764ca64ccdcf1975176e18165270d1da284c72b6a52b83bec1442922194b33abb67747317e32ceee0
7
+ data.tar.gz: ae8908494a10e9c351f4f8153ab61f88fa3f071163174e55a88c9e317cb49c7a54b52f3bf08094fb15bddb3355989bfee575f46542508a51694be9f917035a82
@@ -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+(?<message>[^{]+)?(?<contract>\{([^}]+)\})?/
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.
@@ -42,7 +42,7 @@ module Contraction
42
42
  attr_reader :name
43
43
 
44
44
  def initialize(args={})
45
- super(args)
45
+ super
46
46
  @name = args[:name]
47
47
  end
48
48
 
@@ -16,9 +16,6 @@ module Contraction
16
16
 
17
17
  def parse(line)
18
18
  @type = Contraction::TypeParser.parse(line).first
19
- rescue => e
20
- puts e
21
- @type = nil
22
19
  end
23
20
  end
24
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contraction
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Luce