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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5c383799eb8b1882f4b289039e571d8a518ddc0
4
- data.tar.gz: cb39a3a20b85eb3fc497d035ebee9c0c6375f7b4
3
+ metadata.gz: df8721926f741e7dbf02d294af27ffb0ef6a5966
4
+ data.tar.gz: 56a609a42385912a4ff0be8851e93c958bd60fce
5
5
  SHA512:
6
- metadata.gz: ea8ce6b6578aa0c588bf82bc917a7d7ddfe68691f026f0fd7497febac8ca52794e75492460eaffdc2ed7d92bf608176221b914936136fad15327b94ab35a1ad5
7
- data.tar.gz: 47bc74f3aa301b682dbf0bfcf0a8dfe1acab4e3b7297aa7a06b5e1ec6d5c16ff97f0b7bc17f440a613b2bfcb0ce8e3c153cf777fa3abd799260919d5cf22dd25
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.
@@ -744,6 +744,8 @@ module Sorcerer
744
744
  else
745
745
  resource(sexp[1].first)
746
746
  end
747
+ end
748
+ if sexp[2]
747
749
  emit(" => ")
748
750
  resource(sexp[2])
749
751
  end
@@ -2,7 +2,7 @@ module Sorcerer
2
2
  VERSION_NUMBERS = [
3
3
  VERSION_MAJOR = 1,
4
4
  VERSION_MINOR = 0,
5
- VERSION_BUILD = 0,
5
+ VERSION_BUILD = 1,
6
6
  ]
7
7
 
8
8
  VERSION = VERSION_NUMBERS.join('.')
@@ -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.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-07-10 00:00:00.000000000 Z
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.3
58
+ rubygems_version: 2.0.5
59
59
  signing_key:
60
60
  specification_version: 4
61
61
  summary: Generate Source from Ripper ASTs