cond 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/cond/cond.rb CHANGED
@@ -3,8 +3,6 @@
3
3
  # Resolve errors without unwinding the stack.
4
4
  #
5
5
  module Cond
6
- VERSION = "0.3.0"
7
-
8
6
  class << self
9
7
  include DSL
10
8
  include Wrapping
@@ -0,0 +1,3 @@
1
+ module Cond
2
+ VERSION = "0.3.1"
3
+ end
@@ -1,12 +1,8 @@
1
1
  $LOAD_PATH.unshift File.dirname(__FILE__) + "/../lib"
2
2
  $LOAD_PATH.unshift File.dirname(__FILE__) + "/../devel"
3
3
 
4
- require 'rubygems'
5
- require 'spec/autorun'
6
-
7
- # NOTE: In jruby this must come after require 'rubygems'
8
4
  require 'cond'
9
-
5
+ require 'spec/autorun'
10
6
  require 'stringio'
11
7
 
12
8
  def capture(input_string)
data/spec/readme_spec.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  require File.dirname(__FILE__) + '/cond_spec_base'
2
2
 
3
- require "jumpstart"
3
+ require 'levitate'
4
4
 
5
- Jumpstart.doc_to_spec(
5
+ Levitate.doc_to_spec(
6
6
  "README.rdoc",
7
7
  "Synopsis",
8
8
  "DSL Form and Raw Form",
@@ -1,12 +1,12 @@
1
1
  require File.dirname(__FILE__) + '/cond_spec_base'
2
2
 
3
- require 'jumpstart'
3
+ require 'levitate'
4
4
 
5
5
  RESTARTS_FILE = File.dirname(__FILE__) + '/../readmes/restarts.rb'
6
6
 
7
7
  def run_restarts(input_string)
8
8
  capture(input_string) {
9
- Jumpstart::Ruby.no_warnings {
9
+ Levitate.no_warnings {
10
10
  load RESTARTS_FILE
11
11
  }
12
12
  }
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cond
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ prerelease:
5
+ version: 0.3.1
5
6
  platform: ruby
6
7
  authors:
7
8
  - James M. Lawrence
@@ -9,11 +10,20 @@ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
12
 
12
- date: 2009-09-13 00:00:00 -04:00
13
- default_executable:
14
- dependencies: []
15
-
16
- description: Cond allows errors to be handled near the place where they occur, before the stack unwinds. It offers several advantages over exceptions while peacefully coexisting with the standard exception behavior.
13
+ date: 2011-05-18 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rspec
17
+ prerelease: false
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: 1.3.0
24
+ type: :development
25
+ version_requirements: *id001
26
+ description: Cond allows errors to be handled near the place where they occur, before the stack unwinds. It offers several advantages over exceptions while peacefully coexisting with the standard exception behavior.
17
27
  email:
18
28
  - quixoticsycophant@gmail.com
19
29
  executables: []
@@ -22,12 +32,12 @@ extensions: []
22
32
 
23
33
  extra_rdoc_files:
24
34
  - README.rdoc
35
+ - CHANGES.rdoc
25
36
  files:
26
37
  - CHANGES.rdoc
27
38
  - README.rdoc
28
39
  - Rakefile
29
- - devel/jumpstart.rb
30
- - install.rb
40
+ - devel/levitate.rb
31
41
  - lib/cond.rb
32
42
  - lib/cond/code_section.rb
33
43
  - lib/cond/cond.rb
@@ -43,6 +53,7 @@ files:
43
53
  - lib/cond/restartable_section.rb
44
54
  - lib/cond/symbol_generator.rb
45
55
  - lib/cond/thread_local.rb
56
+ - lib/cond/version.rb
46
57
  - lib/cond/wrapping.rb
47
58
  - readmes/restarts.rb
48
59
  - readmes/seibel_pcl.rb
@@ -61,9 +72,7 @@ files:
61
72
  - spec/symbols_spec.rb
62
73
  - spec/thread_local_spec.rb
63
74
  - spec/wrapping_spec.rb
64
- - MANIFEST
65
- has_rdoc: true
66
- homepage: http://cond.rubyforge.org
75
+ homepage: http://quix.github.com/cond
67
76
  licenses: []
68
77
 
69
78
  post_install_message:
@@ -71,19 +80,7 @@ rdoc_options:
71
80
  - --main
72
81
  - README.rdoc
73
82
  - --title
74
- - "cond: Resolve errors without unwinding the stack."
75
- - --exclude
76
- - CHANGES.rdoc
77
- - --exclude
78
- - README.rdoc
79
- - --exclude
80
- - Rakefile
81
- - --exclude
82
- - devel/jumpstart.rb
83
- - --exclude
84
- - install.rb
85
- - --exclude
86
- - lib/cond.rb
83
+ - "cond: Resolve errors without unwinding the stack"
87
84
  - --exclude
88
85
  - lib/cond/code_section.rb
89
86
  - --exclude
@@ -101,59 +98,27 @@ rdoc_options:
101
98
  - --exclude
102
99
  - lib/cond/thread_local.rb
103
100
  - --exclude
104
- - readmes/restarts.rb
105
- - --exclude
106
- - readmes/seibel_pcl.rb
107
- - --exclude
108
- - spec/bad_spec.rb
109
- - --exclude
110
- - spec/basic_spec.rb
111
- - --exclude
112
- - spec/calc_spec.rb
113
- - --exclude
114
- - spec/cond_spec_base.rb
115
- - --exclude
116
- - spec/error_spec.rb
117
- - --exclude
118
- - spec/leave_again_spec.rb
119
- - --exclude
120
- - spec/matching_spec.rb
121
- - --exclude
122
- - spec/raise_spec.rb
123
- - --exclude
124
- - spec/readme_spec.rb
125
- - --exclude
126
- - spec/reraise_spec.rb
101
+ - lib/cond/version.rb
127
102
  - --exclude
128
- - spec/restarts_spec.rb
129
- - --exclude
130
- - spec/seibel_spec.rb
131
- - --exclude
132
- - spec/symbols_spec.rb
133
- - --exclude
134
- - spec/thread_local_spec.rb
135
- - --exclude
136
- - spec/wrapping_spec.rb
137
- - --exclude
138
- - MANIFEST
103
+ - lib/cond.rb
139
104
  require_paths:
140
105
  - lib
141
106
  required_ruby_version: !ruby/object:Gem::Requirement
107
+ none: false
142
108
  requirements:
143
109
  - - ">="
144
110
  - !ruby/object:Gem::Version
145
111
  version: "0"
146
- version:
147
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
+ none: false
148
114
  requirements:
149
115
  - - ">="
150
116
  - !ruby/object:Gem::Version
151
117
  version: "0"
152
- version:
153
118
  requirements: []
154
119
 
155
- rubyforge_project: cond
156
- rubygems_version: 1.3.5
120
+ rubyforge_project:
121
+ rubygems_version: 1.8.2
157
122
  signing_key:
158
123
  specification_version: 3
159
124
  summary: Resolve errors without unwinding the stack.
data/MANIFEST DELETED
@@ -1,39 +0,0 @@
1
- CHANGES.rdoc
2
- MANIFEST
3
- README.rdoc
4
- Rakefile
5
- devel/jumpstart.rb
6
- install.rb
7
- lib/cond.rb
8
- lib/cond/code_section.rb
9
- lib/cond/cond.rb
10
- lib/cond/defaults.rb
11
- lib/cond/dsl.rb
12
- lib/cond/dsl_definition.rb
13
- lib/cond/error.rb
14
- lib/cond/handler.rb
15
- lib/cond/handling_section.rb
16
- lib/cond/kernel_raise.rb
17
- lib/cond/message_proc.rb
18
- lib/cond/restart.rb
19
- lib/cond/restartable_section.rb
20
- lib/cond/symbol_generator.rb
21
- lib/cond/thread_local.rb
22
- lib/cond/wrapping.rb
23
- readmes/restarts.rb
24
- readmes/seibel_pcl.rb
25
- spec/bad_spec.rb
26
- spec/basic_spec.rb
27
- spec/calc_spec.rb
28
- spec/cond_spec_base.rb
29
- spec/error_spec.rb
30
- spec/leave_again_spec.rb
31
- spec/matching_spec.rb
32
- spec/raise_spec.rb
33
- spec/readme_spec.rb
34
- spec/reraise_spec.rb
35
- spec/restarts_spec.rb
36
- spec/seibel_spec.rb
37
- spec/symbols_spec.rb
38
- spec/thread_local_spec.rb
39
- spec/wrapping_spec.rb