cond 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES.rdoc +5 -1
- data/README.rdoc +13 -4
- data/Rakefile +9 -4
- data/devel/levitate.rb +851 -0
- data/lib/cond/cond.rb +0 -2
- data/lib/cond/version.rb +3 -0
- data/spec/cond_spec_base.rb +1 -5
- data/spec/readme_spec.rb +2 -2
- data/spec/restarts_spec.rb +2 -2
- metadata +27 -62
- data/MANIFEST +0 -39
- data/devel/jumpstart.rb +0 -970
- data/install.rb +0 -2
data/CHANGES.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -31,9 +31,10 @@ Resolve errors without unwinding the stack.
|
|
31
31
|
|
32
32
|
== Install
|
33
33
|
|
34
|
-
% gem install
|
35
|
-
|
36
|
-
|
34
|
+
% gem install live_ast
|
35
|
+
|
36
|
+
Or from inside an unpacked .tgz download, <code>rake install</code> /
|
37
|
+
<code>rake uninstall</code>.
|
37
38
|
|
38
39
|
== Description
|
39
40
|
|
@@ -86,6 +87,13 @@ Cond is 100% compatible with the built-in exception-handling system.
|
|
86
87
|
We may imagine that Ruby had always had this handler+restart
|
87
88
|
functionality but nobody remembered to use it.
|
88
89
|
|
90
|
+
== Links
|
91
|
+
|
92
|
+
* Home: http://quix.github.com/cond
|
93
|
+
* Feature Requests, Bug Reports: http://github.com/quix/cond/issues
|
94
|
+
* Manual Download: http://github.com/quix/cond/archives/master
|
95
|
+
* Repository: http://github.com/quix/cond
|
96
|
+
|
89
97
|
== Background
|
90
98
|
|
91
99
|
Cond is stolen from the Common Lisp condition system.
|
@@ -219,7 +227,8 @@ Translated to Ruby from http://c2.com/cgi/wiki?LispRestartExample
|
|
219
227
|
|
220
228
|
== Technical Notes
|
221
229
|
|
222
|
-
Cond has been tested on MRI 1.8.6, 1.8.7, 1.9, and
|
230
|
+
Cond has been tested on MRI 1.8.6, 1.8.7, 1.9.1, 1.9.2, and
|
231
|
+
jruby-1.4.
|
223
232
|
|
224
233
|
Each thread keeps its own list of handlers, restarts, and other data.
|
225
234
|
All operations are fully thread-safe.
|
data/Rakefile
CHANGED
@@ -1,13 +1,18 @@
|
|
1
1
|
$LOAD_PATH.unshift "devel"
|
2
2
|
|
3
|
-
require '
|
3
|
+
require 'levitate'
|
4
4
|
|
5
5
|
readme_file = nil
|
6
6
|
|
7
|
-
|
8
|
-
s.
|
9
|
-
s.
|
7
|
+
Levitate.new "cond" do |s|
|
8
|
+
s.developers << ['James M. Lawrence', 'quixoticsycophant@gmail.com']
|
9
|
+
s.username = "quix"
|
10
|
+
s.rubyforge_info = ["quix", "cond"]
|
10
11
|
s.description_sentences = 2
|
12
|
+
s.development_dependencies = [
|
13
|
+
["rspec", "~> 1.3.0"],
|
14
|
+
]
|
15
|
+
|
11
16
|
s.rdoc_files = %w[
|
12
17
|
lib/cond/cond.rb
|
13
18
|
lib/cond/dsl_definition.rb
|