typestrict 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/base.rb +0 -12
- data/lib/typestrict.rb +1 -1
- metadata +4 -4
data/lib/base.rb
CHANGED
@@ -124,19 +124,7 @@ module Strict
|
|
124
124
|
else
|
125
125
|
if supertype.is_a? Symbol #distinct supertype
|
126
126
|
if @@dynamic_handlers.has_key? supertype
|
127
|
-
|
128
|
-
raise_set_before = @@raise_exception
|
129
|
-
previous_errors = @@errors
|
130
|
-
setmode_catch!
|
131
|
-
|
132
127
|
@@dynamic_handlers[supertype].call(data, context)
|
133
|
-
|
134
|
-
if raise_set_before
|
135
|
-
raise_hell!
|
136
|
-
setmode_raise!
|
137
|
-
else
|
138
|
-
@@errors.concat(previous_errors)
|
139
|
-
end
|
140
128
|
else
|
141
129
|
catch_error "undefined symbol-supertype encountered: #{supertype.inspect}"
|
142
130
|
end
|
data/lib/typestrict.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: typestrict
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 13
|
10
|
+
version: 0.0.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Raeez Lorgat
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-17 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|