rewrite 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -103,7 +103,7 @@ module Rewrite
103
103
  )
104
104
  ensure
105
105
  exp.clear
106
- end
106
+ end,
107
107
  s(:nil)
108
108
  )
109
109
  ),
@@ -2,7 +2,7 @@ module Rewrite #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 4
5
+ TINY = 5
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -2,6 +2,17 @@ require File.dirname(__FILE__) + '/test_helper.rb'
2
2
 
3
3
  class TestRewriteHelpers < Test::Unit::TestCase
4
4
 
5
+ def test_splat_variables
6
+
7
+ assert_equal(
8
+ lambda { |*a| a[0].call }.to_sexp.to_a,
9
+ Rewrite::RewriteVariablesAsThunkCalls.new(:a).process(
10
+ lambda { |*a| a[0] }.to_sexp
11
+ ).to_a
12
+ )
13
+
14
+ end
15
+
5
16
  def test_simple_rewrite
6
17
 
7
18
  assert_equal(
data/website/index.html CHANGED
@@ -33,7 +33,7 @@
33
33
  <h1>rewrite</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/rewrite"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/rewrite" class="numbers">0.0.4</a>
36
+ <a href="http://rubyforge.org/projects/rewrite" class="numbers">0.0.5</a>
37
37
  </div>
38
38
  <h1>&#x2192; &#8216;rewrite&#8217;</h1>
39
39
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rewrite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reg Braithwaite