sorcerer 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -665,11 +665,11 @@ module Sorcerer
665
665
  },
666
666
  :mrhs_add_star => lambda { |sexp|
667
667
  resource(sexp[1])
668
- emit(", ")
668
+ emit(", ") unless sexp[1] == [:mrhs_new]
669
669
  emit("*")
670
670
  resource(sexp[2])
671
671
  },
672
- :mrhs_new => NYI,
672
+ :mrhs_new => NOOP,
673
673
  :mrhs_new_from_args => PASS1,
674
674
  :next => lambda { |sexp|
675
675
  emit("next")
@@ -2,7 +2,7 @@ module Sorcerer
2
2
  VERSION_NUMBERS = [
3
3
  VERSION_MAJOR = 0,
4
4
  VERSION_MINOR = 3,
5
- VERSION_BUILD = 4,
5
+ VERSION_BUILD = 5,
6
6
  ]
7
7
 
8
8
  VERSION = VERSION_NUMBERS.join('.')
@@ -468,6 +468,8 @@ class SourcerTest < Test::Unit::TestCase
468
468
  assert_resource "a, b, *c = 1, 2, 3, 4"
469
469
  assert_resource "a, b, *c = 1, 2, *args"
470
470
  assert_resource "(a, b), *c = 1, 2, *args"
471
+ assert_resource "a = *b"
472
+ assert_resource "a = *[b, c]"
471
473
  end
472
474
 
473
475
  def test_can_source_statement_sequences
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sorcerer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-10 00:00:00.000000000 Z
12
+ date: 2012-10-31 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Generate the original Ruby source from a Ripper-style abstract syntax
15
15
  tree.
@@ -24,10 +24,10 @@ files:
24
24
  - rakelib/git.rake
25
25
  - rakelib/readme.rake
26
26
  - rakelib/testing.rake
27
+ - lib/sorcerer.rb
27
28
  - lib/sorcerer/resource.rb
28
29
  - lib/sorcerer/subexpression.rb
29
30
  - lib/sorcerer/version.rb
30
- - lib/sorcerer.rb
31
31
  - test/sorcerer/resource_test.rb
32
32
  - test/sorcerer/subexpression_test.rb
33
33
  homepage: http://github.com/jimweirich/sorcerer
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  version: '0'
57
57
  requirements: []
58
58
  rubyforge_project: sorcerer
59
- rubygems_version: 1.8.15
59
+ rubygems_version: 1.8.24
60
60
  signing_key:
61
61
  specification_version: 3
62
62
  summary: Generate Source from Ripper ASTs