ParseTree 1.6.2 → 1.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,15 @@
1
+ *** 1.6.3 / 2006-12-20
2
+
3
+ + 1 bug fix:
4
+ + ParseTree::translate was trying to translate inherited class methods.
5
+
1
6
  *** 1.6.2 / 2006-12-19
2
7
 
3
8
  + 2 minor enhancements:
4
9
  + ParseTree::translate can now take :"self.method".
5
- * Improved PT tests for [], []=
10
+ + Improved PT tests for [], []=
6
11
  + 1 bug fixes:
7
- * Fixed a bug in ParseTree where cases w/o exprs were malformed.
12
+ + Fixed a bug in ParseTree where cases w/o exprs were malformed.
8
13
 
9
14
  *** 1.6.1 / 2006-11-11
10
15
 
@@ -25,7 +25,7 @@ require 'inline'
25
25
 
26
26
  class ParseTree
27
27
 
28
- VERSION = '1.6.2'
28
+ VERSION = '1.6.3'
29
29
 
30
30
  ##
31
31
  # Front end translation method.
@@ -101,7 +101,7 @@ class ParseTree
101
101
  code << parse_tree_for_method(klass, m.to_sym)
102
102
  end
103
103
 
104
- klass.singleton_methods.sort.each do |m|
104
+ klass.singleton_methods(false).sort.each do |m|
105
105
  code << parse_tree_for_method(klass, m.to_sym, true)
106
106
  end
107
107
 
@@ -709,6 +709,12 @@ end",
709
709
  [:array, [:vcall, :c], [:vcall, :d]]],
710
710
  },
711
711
 
712
+ "masgn_iasgn" => {
713
+ "Ruby" => "a, @b = c, d",
714
+ "ParseTree" => [:masgn,
715
+ [:array, [:lasgn, :a], [:iasgn, :@b]],
716
+ [:array, [:vcall, :c], [:vcall, :d]]],
717
+ },
712
718
  "match" => {
713
719
  "Ruby" => "if /x/ then\n 1\nend",
714
720
  "ParseTree" => [:if, [:match, [:lit, /x/]], [:lit, 1], nil],
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: ParseTree
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.6.2
7
- date: 2006-12-19 00:00:00 -08:00
6
+ version: 1.6.3
7
+ date: 2006-12-20 00:00:00 -08:00
8
8
  summary: Extract and enumerate ruby parse trees.
9
9
  require_paths:
10
10
  - lib