sorcerer 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/sorcerer/resource.rb +2 -0
- data/lib/sorcerer/version.rb +1 -1
- data/test/sorcerer/resource_test.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df8721926f741e7dbf02d294af27ffb0ef6a5966
|
4
|
+
data.tar.gz: 56a609a42385912a4ff0be8851e93c958bd60fce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3211b38e8163a2ec485269bcc6d4d31644bb9659470d254f0c9604f458440255446d1cf9571ce97eb57cb2365a6de62e28c14c12b0b162e8c9265fb7d8f5ab2c
|
7
|
+
data.tar.gz: ff4f4a85b6076fe49dc3599eeacc10d1d9d896919d0a8b043c6dcf1d6c542587f48950c8e7d90381788fb09e5deb0ed4e5f6f80ed1da34a588bbf7c264941e64
|
data/README.md
CHANGED
@@ -130,6 +130,9 @@ MIT-LICENSE file for details.
|
|
130
130
|
|
131
131
|
## History
|
132
132
|
|
133
|
+
* 1.0.1 - Add support for missing exception class or variable in
|
134
|
+
rescue (from Trent Ogren).
|
135
|
+
|
133
136
|
* 1.0.0 - Ready for the work, version 1!
|
134
137
|
|
135
138
|
* 0.3.11 - Fix support for subexpressions involving Meth() calls.
|
data/lib/sorcerer/resource.rb
CHANGED
data/lib/sorcerer/version.rb
CHANGED
@@ -432,6 +432,8 @@ class ResourceTest < Test::Unit::TestCase
|
|
432
432
|
|
433
433
|
def test_can_source_begin_rescue_end
|
434
434
|
assert_resource_lines "begin~rescue; end"
|
435
|
+
assert_resource_lines "begin~rescue E; #b; end"
|
436
|
+
assert_resource_lines "begin~rescue => ex; #b; end"
|
435
437
|
assert_resource_lines "begin~rescue E => ex; #b; end"
|
436
438
|
assert_resource_lines "begin~#a; rescue E => ex; #b; end"
|
437
439
|
assert_resource_lines "begin~#a; rescue E, F => ex; #b; end"
|
@@ -448,6 +450,8 @@ class ResourceTest < Test::Unit::TestCase
|
|
448
450
|
|
449
451
|
def test_can_source_begin_rescue_ensure_end
|
450
452
|
assert_resource_lines "begin~rescue; end"
|
453
|
+
assert_resource_lines "begin~rescue E; #b; ensure~#c; end"
|
454
|
+
assert_resource_lines "begin~rescue => ex; #b; ensure~#c; end"
|
451
455
|
assert_resource_lines "begin~rescue E => ex; #b; ensure~#c; end"
|
452
456
|
assert_resource_lines "begin~#a; rescue E => ex; #b; ensure~#c; end"
|
453
457
|
assert_resource_lines "begin~#a; rescue E, F => ex; #b; ensure~#c; end"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sorcerer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Weirich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Generate the original Ruby source from a Ripper-style abstract syntax
|
14
14
|
tree.
|
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
57
|
rubyforge_project: sorcerer
|
58
|
-
rubygems_version: 2.0.
|
58
|
+
rubygems_version: 2.0.5
|
59
59
|
signing_key:
|
60
60
|
specification_version: 4
|
61
61
|
summary: Generate Source from Ripper ASTs
|