typestrict 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/base.rb +0 -12
  2. data/lib/typestrict.rb +1 -1
  3. 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
@@ -2,7 +2,7 @@ require File.join(File.dirname(__FILE__), 'base')
2
2
  require File.join(File.dirname(__FILE__), 'supertypes')
3
3
 
4
4
  module Strict
5
- VERSION = '0.0.12'
5
+ VERSION = '0.0.13'
6
6
  include Strict::Base
7
7
  include Strict::SuperTypes
8
8
  end
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: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 12
10
- version: 0.0.12
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-16 00:00:00 -07:00
18
+ date: 2010-08-17 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency