yard-contracts 0.1.3 → 0.1.4

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: 42d360186d8be5324d7223a1219342cc04d9f009
4
- data.tar.gz: 2a3ab83e5fd4bbf52048899164a5732bee6df672
3
+ metadata.gz: 8bd22dd96ef9f882ddf7bd040a48de5baaa0bb6c
4
+ data.tar.gz: 86617b4be5048bb5aca873a4b1f58a36d990f2a0
5
5
  SHA512:
6
- metadata.gz: 837f4e04d5a62c09a2c141075c48178d6b403927a2b2c64495e07727b73191c39114f0dae0680aef5ab7a717e979845548385bfb27a465a0076bb0a746a08cb1
7
- data.tar.gz: 30d876886715397087eee3f8f3abbfb76517ffeebead072d6c58e50f5158f3151eff22d9d1839d1d083b3f6bdac4cc39bb27986a70fa3ac686e8eb7a401ef815
6
+ metadata.gz: 6b9564e8f9cb753cbda5074674d35aeda2ba554b09420885614159181d48292e846bf74c2a72e0750f2db2f54574963e2aea773d93d7b64c75c01d74776bc20b
7
+ data.tar.gz: bd9b379569cef1d3fe1f7dbda8f8fd29adb677ad957036e9a090435264e9f6004af84d5dd41bd2ace0115169f60eb3cda1874f30be9c452aa06675b10944685e
@@ -256,8 +256,11 @@ module Contracts
256
256
  con = type
257
257
  begin
258
258
  con = Contracts.const_get(type)
259
- rescue StandardError # NameError
260
- con = eval(type) rescue StandardError
259
+ rescue Exception
260
+ begin
261
+ con = eval(type)
262
+ rescue Exception
263
+ end
261
264
  end
262
265
  con
263
266
  end
@@ -1,3 +1,3 @@
1
1
  module YARDContracts
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yard-contracts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon George