rkelly 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,13 @@
1
+ = RKelly CHANGELOG
2
+
3
+ === 1.0.1
4
+
5
+ * Bugfixes
6
+
7
+ * Fixed nondeterministic file order loading issue.
8
+
9
+ === 0.0.1
10
+
11
+ * Added dynamic method assignment
12
+ * Birthday!
13
+
@@ -1,6 +1,6 @@
1
- CHANGELOG.txt
1
+ CHANGELOG.rdoc
2
2
  Manifest.txt
3
- README.txt
3
+ README.rdoc
4
4
  Rakefile
5
5
  lib/parser.y
6
6
  lib/rkelly.rb
@@ -64,7 +64,6 @@ lib/rkelly/visitors/pointcut_visitor.rb
64
64
  lib/rkelly/visitors/real_sexp_visitor.rb
65
65
  lib/rkelly/visitors/sexp_visitor.rb
66
66
  lib/rkelly/visitors/visitor.rb
67
- rkelly.gemspec
68
67
  test/ecma_script_test_case.rb
69
68
  test/execute_test_case.rb
70
69
  test/execution_contexts/test_10_1_3-1.rb
@@ -1,6 +1,6 @@
1
1
  = RKelly
2
2
 
3
- http://rkelly.rubyforge.org/
3
+ * http://rkelly.rubyforge.org/
4
4
 
5
5
  == DESCRIPTION
6
6
 
data/Rakefile CHANGED
@@ -8,14 +8,11 @@ require 'rkelly/constants'
8
8
  GENERATED_PARSER = "lib/rkelly/generated_parser.rb"
9
9
 
10
10
  HOE = Hoe.new('rkelly', RKelly::VERSION) do |p|
11
- p.rubyforge_name = 'rkelly'
12
- p.author = 'Aaron Patterson'
13
- p.email = 'aaronp@rubyforge.org'
14
- p.summary = "RKelly parses JavaScript and returns a parse tree suitable for feeding to Ruby2Ruby."
15
- p.description = p.paragraphs_of('README.txt', 3).join("\n\n")
16
- p.url = p.paragraphs_of('README.txt', 1).first.strip
17
- p.changes = p.paragraphs_of('CHANGELOG.txt', 0..2).join("\n\n")
18
- p.clean_globs = [GENERATED_PARSER]
11
+ p.developer('Aaron Patterson', 'aaronp@rubyforge.org')
12
+ p.readme_file = 'README.rdoc'
13
+ p.history_file = 'CHANGELOG.rdoc'
14
+ p.extra_rdoc_files = FileList['*.rdoc']
15
+ p.clean_globs = [GENERATED_PARSER]
19
16
  end
20
17
 
21
18
  file GENERATED_PARSER => "lib/parser.y" do |t|
@@ -32,49 +29,6 @@ task :parser => GENERATED_PARSER
32
29
  Rake::Task[:test].prerequisites << :parser
33
30
  Rake::Task[:check_manifest].prerequisites << :parser
34
31
 
35
- desc "Create a new node"
36
- task :new_node do
37
- filename = ENV['NODE']
38
- raise "invalid node name" if !filename
39
-
40
- classname = nil
41
- if filename =~ /[A-Z]/
42
- classname = filename
43
- filename = filename.gsub(/([A-Z])/) { |x| "_#{x.downcase}" }.gsub(/^_/, '')
44
- end
45
-
46
- full_file = "lib/rkelly/nodes/#{filename}.rb"
47
- test_file = "test/test_#{filename}.rb"
48
- puts "writing: #{full_file}"
49
- File.open(full_file, 'wb') { |f|
50
- f.write <<-END
51
- module RKelly
52
- module Nodes
53
- class #{classname} < Node
54
- end
55
- end
56
- end
57
- END
58
- }
59
- puts "adding to nodes include"
60
- File.open("lib/rkelly/nodes.rb", 'ab') { |f|
61
- f.puts "require 'rkelly/nodes/#{filename}'"
62
- }
63
-
64
- puts "writing test case: #{test_file}"
65
- File.open(test_file, 'wb') { |f|
66
- f.write <<-END
67
- require File.dirname(__FILE__) + "/helper"
68
-
69
- class #{classname}Test < NodeTestCase
70
- def test_failure
71
- assert false
72
- end
73
- end
74
- END
75
- }
76
- end
77
-
78
32
  namespace :gem do
79
33
  task :spec do
80
34
  File.open("#{HOE.name}.gemspec", 'w') do |f|
@@ -1,3 +1,3 @@
1
1
  module RKelly
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
@@ -1,5 +1,25 @@
1
1
  require 'rkelly/nodes/node'
2
2
  require 'rkelly/nodes/function_expr_node'
3
- Dir[File.join(File.dirname(__FILE__), "nodes/*_node.rb")].each do |file|
4
- require file[/rkelly\/nodes\/.*/]
5
- end
3
+ require 'rkelly/nodes/binary_node'
4
+ require 'rkelly/nodes/bracket_accessor_node'
5
+ require 'rkelly/nodes/case_clause_node'
6
+ require 'rkelly/nodes/comma_node'
7
+ require 'rkelly/nodes/conditional_node'
8
+ require 'rkelly/nodes/dot_accessor_node'
9
+ require 'rkelly/nodes/for_in_node'
10
+ require 'rkelly/nodes/for_node'
11
+ require 'rkelly/nodes/function_call_node'
12
+ require 'rkelly/nodes/function_decl_node'
13
+ require 'rkelly/nodes/function_expr_node'
14
+ require 'rkelly/nodes/if_node'
15
+ require 'rkelly/nodes/label_node'
16
+ require 'rkelly/nodes/new_expr_node'
17
+ require 'rkelly/nodes/not_strict_equal_node'
18
+ require 'rkelly/nodes/op_equal_node'
19
+ require 'rkelly/nodes/postfix_node'
20
+ require 'rkelly/nodes/prefix_node'
21
+ require 'rkelly/nodes/property_node'
22
+ require 'rkelly/nodes/resolve_node'
23
+ require 'rkelly/nodes/strict_equal_node'
24
+ require 'rkelly/nodes/try_node'
25
+ require 'rkelly/nodes/var_decl_node'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rkelly
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
  - Aaron Patterson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-23 00:00:00 -08:00
12
+ date: 2009-06-08 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,22 +20,23 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.9.0
23
+ version: 1.12.2
24
24
  version:
25
25
  description: The RKelly library will parse JavaScript and return a parse tree.
26
- email: aaronp@rubyforge.org
26
+ email:
27
+ - aaronp@rubyforge.org
27
28
  executables: []
28
29
 
29
30
  extensions: []
30
31
 
31
32
  extra_rdoc_files:
32
- - CHANGELOG.txt
33
33
  - Manifest.txt
34
- - README.txt
34
+ - CHANGELOG.rdoc
35
+ - README.rdoc
35
36
  files:
36
- - CHANGELOG.txt
37
+ - CHANGELOG.rdoc
37
38
  - Manifest.txt
38
- - README.txt
39
+ - README.rdoc
39
40
  - Rakefile
40
41
  - lib/parser.y
41
42
  - lib/rkelly.rb
@@ -99,7 +100,6 @@ files:
99
100
  - lib/rkelly/visitors/real_sexp_visitor.rb
100
101
  - lib/rkelly/visitors/sexp_visitor.rb
101
102
  - lib/rkelly/visitors/visitor.rb
102
- - rkelly.gemspec
103
103
  - test/ecma_script_test_case.rb
104
104
  - test/execute_test_case.rb
105
105
  - test/execution_contexts/test_10_1_3-1.rb
@@ -234,10 +234,12 @@ files:
234
234
  - test/test_with_node.rb
235
235
  has_rdoc: true
236
236
  homepage: http://rkelly.rubyforge.org/
237
+ licenses: []
238
+
237
239
  post_install_message:
238
240
  rdoc_options:
239
241
  - --main
240
- - README.txt
242
+ - README.rdoc
241
243
  require_paths:
242
244
  - lib
243
245
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -255,10 +257,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
255
257
  requirements: []
256
258
 
257
259
  rubyforge_project: rkelly
258
- rubygems_version: 1.3.1
260
+ rubygems_version: 1.3.3
259
261
  signing_key:
260
- specification_version: 2
261
- summary: RKelly parses JavaScript and returns a parse tree suitable for feeding to Ruby2Ruby.
262
+ specification_version: 3
263
+ summary: The RKelly library will parse JavaScript and return a parse tree.
262
264
  test_files:
263
265
  - test/execution_contexts/test_10_1_3-1.rb
264
266
  - test/expressions/test_11_3_1.rb
@@ -1,7 +0,0 @@
1
- = RKelly CHANGELOG
2
-
3
- == 0.0.1
4
-
5
- * Added dynamic method assignment
6
- * Birthday!
7
-
@@ -1,33 +0,0 @@
1
- Gem::Specification.new do |s|
2
- s.name = %q{rkelly}
3
- s.version = "0.0.0.20080909095845"
4
-
5
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
- s.authors = ["Aaron Patterson"]
7
- s.date = %q{2008-09-09}
8
- s.description = %q{The RKelly library will parse JavaScript and return a parse tree.}
9
- s.email = %q{aaronp@rubyforge.org}
10
- s.extra_rdoc_files = ["CHANGELOG.txt", "Manifest.txt", "README.txt"]
11
- s.files = ["CHANGELOG.txt", "Manifest.txt", "README.txt", "Rakefile", "lib/parser.y", "lib/rkelly.rb", "lib/rkelly/constants.rb", "lib/rkelly/generated_parser.rb", "lib/rkelly/js.rb", "lib/rkelly/js/array.rb", "lib/rkelly/js/base.rb", "lib/rkelly/js/boolean.rb", "lib/rkelly/js/function.rb", "lib/rkelly/js/function_prototype.rb", "lib/rkelly/js/global_object.rb", "lib/rkelly/js/math.rb", "lib/rkelly/js/nan.rb", "lib/rkelly/js/number.rb", "lib/rkelly/js/object.rb", "lib/rkelly/js/object_prototype.rb", "lib/rkelly/js/property.rb", "lib/rkelly/js/scope.rb", "lib/rkelly/js/string.rb", "lib/rkelly/lexeme.rb", "lib/rkelly/nodes.rb", "lib/rkelly/nodes/binary_node.rb", "lib/rkelly/nodes/bracket_accessor_node.rb", "lib/rkelly/nodes/case_clause_node.rb", "lib/rkelly/nodes/comma_node.rb", "lib/rkelly/nodes/conditional_node.rb", "lib/rkelly/nodes/dot_accessor_node.rb", "lib/rkelly/nodes/for_in_node.rb", "lib/rkelly/nodes/for_node.rb", "lib/rkelly/nodes/function_call_node.rb", "lib/rkelly/nodes/function_decl_node.rb", "lib/rkelly/nodes/function_expr_node.rb", "lib/rkelly/nodes/if_node.rb", "lib/rkelly/nodes/label_node.rb", "lib/rkelly/nodes/new_expr_node.rb", "lib/rkelly/nodes/node.rb", "lib/rkelly/nodes/not_strict_equal_node.rb", "lib/rkelly/nodes/op_equal_node.rb", "lib/rkelly/nodes/postfix_node.rb", "lib/rkelly/nodes/prefix_node.rb", "lib/rkelly/nodes/property_node.rb", "lib/rkelly/nodes/resolve_node.rb", "lib/rkelly/nodes/strict_equal_node.rb", "lib/rkelly/nodes/try_node.rb", "lib/rkelly/nodes/var_decl_node.rb", "lib/rkelly/parser.rb", "lib/rkelly/runtime.rb", "lib/rkelly/runtime/ruby_function.rb", "lib/rkelly/runtime/scope_chain.rb", "lib/rkelly/token.rb", "lib/rkelly/tokenizer.rb", "lib/rkelly/visitable.rb", "lib/rkelly/visitors.rb", "lib/rkelly/visitors/dot_visitor.rb", "lib/rkelly/visitors/ecma_visitor.rb", "lib/rkelly/visitors/enumerable_visitor.rb", "lib/rkelly/visitors/evaluation_visitor.rb", "lib/rkelly/visitors/function_visitor.rb", "lib/rkelly/visitors/pointcut_visitor.rb", "lib/rkelly/visitors/sexp_visitor.rb", "lib/rkelly/visitors/visitor.rb", "test/ecma_script_test_case.rb", "test/execute_test_case.rb", "test/execution_contexts/test_10_1_3-1.rb", "test/expressions/test_11_3_1.rb", "test/expressions/test_11_3_2.rb", "test/expressions/test_11_4_2.rb", "test/expressions/test_11_4_3.rb", "test/expressions/test_11_4_4.rb", "test/expressions/test_11_4_5.rb", "test/expressions/test_11_4_6.rb", "test/expressions/test_11_4_8.rb", "test/expressions/test_11_4_9.rb", "test/expressions/test_11_5_1.rb", "test/expressions/test_11_5_2.rb", "test/expressions/test_11_5_3.rb", "test/expressions/test_11_6_1-1.rb", "test/expressions/test_11_9_1.rb", "test/function/test_15_3_1_1-1.rb", "test/global_object/test_15_1_1_1.rb", "test/global_object/test_15_1_1_2.rb", "test/global_object/test_15_1_1_3.rb", "test/helper.rb", "test/node_test_case.rb", "test/object/test_15_2_1_1.rb", "test/object/test_15_2_1_2.rb", "test/object/test_15_2_2_1.rb", "test/statements/test_12_5-1.rb", "test/test_add_node.rb", "test/test_arguments_node.rb", "test/test_array_node.rb", "test/test_assign_expr_node.rb", "test/test_automatic_semicolon_insertion.rb", "test/test_bit_and_node.rb", "test/test_bit_or_node.rb", "test/test_bit_x_or_node.rb", "test/test_bitwise_not_node.rb", "test/test_block_node.rb", "test/test_bracket_accessor_node.rb", "test/test_break_node.rb", "test/test_case_block_node.rb", "test/test_case_clause_node.rb", "test/test_comma_node.rb", "test/test_comments.rb", "test/test_conditional_node.rb", "test/test_const_statement_node.rb", "test/test_continue_node.rb", "test/test_delete_node.rb", "test/test_divide_node.rb", "test/test_do_while_node.rb", "test/test_dot_accessor_node.rb", "test/test_ecma_visitor.rb", "test/test_element_node.rb", "test/test_empty_statement_node.rb", "test/test_equal_node.rb", "test/test_evaluation_visitor.rb", "test/test_expression_statement_node.rb", "test/test_false_node.rb", "test/test_for_in_node.rb", "test/test_for_node.rb", "test/test_function_body_node.rb", "test/test_function_call_node.rb", "test/test_function_decl_node.rb", "test/test_function_expr_node.rb", "test/test_function_visitor.rb", "test/test_getter_property_node.rb", "test/test_global_object.rb", "test/test_greater_node.rb", "test/test_greater_or_equal_node.rb", "test/test_if_node.rb", "test/test_in_node.rb", "test/test_instance_of_node.rb", "test/test_label_node.rb", "test/test_left_shift_node.rb", "test/test_less_node.rb", "test/test_less_or_equal_node.rb", "test/test_line_number.rb", "test/test_logical_and_node.rb", "test/test_logical_not_node.rb", "test/test_logical_or_node.rb", "test/test_modulus_node.rb", "test/test_multiply_node.rb", "test/test_new_expr_node.rb", "test/test_not_equal_node.rb", "test/test_not_strict_equal_node.rb", "test/test_null_node.rb", "test/test_number_node.rb", "test/test_object_literal_node.rb", "test/test_op_and_equal_node.rb", "test/test_op_divide_equal_node.rb", "test/test_op_equal_node.rb", "test/test_op_l_shift_equal_node.rb", "test/test_op_minus_equal_node.rb", "test/test_op_mod_equal_node.rb", "test/test_op_multiply_equal_node.rb", "test/test_op_or_equal_node.rb", "test/test_op_plus_equal_node.rb", "test/test_op_r_shift_equal_node.rb", "test/test_op_u_r_shift_equal_node.rb", "test/test_op_x_or_equal_node.rb", "test/test_parameter_node.rb", "test/test_parser.rb", "test/test_pointcut_visitor.rb", "test/test_postfix_node.rb", "test/test_prefix_node.rb", "test/test_property_node.rb", "test/test_regexp_node.rb", "test/test_resolve_node.rb", "test/test_return_node.rb", "test/test_right_shift_node.rb", "test/test_runtime.rb", "test/test_scope_chain.rb", "test/test_setter_property_node.rb", "test/test_source_elements.rb", "test/test_strict_equal_node.rb", "test/test_string_node.rb", "test/test_subtract_node.rb", "test/test_switch_node.rb", "test/test_this_node.rb", "test/test_throw_node.rb", "test/test_tokenizer.rb", "test/test_true_node.rb", "test/test_try_node.rb", "test/test_type_of_node.rb", "test/test_unary_minus_node.rb", "test/test_unary_plus_node.rb", "test/test_unsigned_right_shift_node.rb", "test/test_var_decl_node.rb", "test/test_var_statement_node.rb", "test/test_void_node.rb", "test/test_while_node.rb", "test/test_with_node.rb"]
12
- s.has_rdoc = true
13
- s.homepage = %q{http://rkelly.rubyforge.org/}
14
- s.rdoc_options = ["--main", "README.txt"]
15
- s.require_paths = ["lib"]
16
- s.rubyforge_project = %q{rkelly}
17
- s.rubygems_version = %q{1.2.0}
18
- s.summary = %q{RKelly parses JavaScript and returns a parse tree suitable for feeding to Ruby2Ruby.}
19
- s.test_files = ["test/execution_contexts/test_10_1_3-1.rb", "test/expressions/test_11_3_1.rb", "test/expressions/test_11_3_2.rb", "test/expressions/test_11_4_2.rb", "test/expressions/test_11_4_3.rb", "test/expressions/test_11_4_4.rb", "test/expressions/test_11_4_5.rb", "test/expressions/test_11_4_6.rb", "test/expressions/test_11_4_8.rb", "test/expressions/test_11_4_9.rb", "test/expressions/test_11_5_1.rb", "test/expressions/test_11_5_2.rb", "test/expressions/test_11_5_3.rb", "test/expressions/test_11_6_1-1.rb", "test/expressions/test_11_9_1.rb", "test/function/test_15_3_1_1-1.rb", "test/global_object/test_15_1_1_1.rb", "test/global_object/test_15_1_1_2.rb", "test/global_object/test_15_1_1_3.rb", "test/object/test_15_2_1_1.rb", "test/object/test_15_2_1_2.rb", "test/object/test_15_2_2_1.rb", "test/statements/test_12_5-1.rb", "test/test_add_node.rb", "test/test_arguments_node.rb", "test/test_array_node.rb", "test/test_assign_expr_node.rb", "test/test_automatic_semicolon_insertion.rb", "test/test_bit_and_node.rb", "test/test_bit_or_node.rb", "test/test_bit_x_or_node.rb", "test/test_bitwise_not_node.rb", "test/test_block_node.rb", "test/test_bracket_accessor_node.rb", "test/test_break_node.rb", "test/test_case_block_node.rb", "test/test_case_clause_node.rb", "test/test_comma_node.rb", "test/test_comments.rb", "test/test_conditional_node.rb", "test/test_const_statement_node.rb", "test/test_continue_node.rb", "test/test_delete_node.rb", "test/test_divide_node.rb", "test/test_do_while_node.rb", "test/test_dot_accessor_node.rb", "test/test_ecma_visitor.rb", "test/test_element_node.rb", "test/test_empty_statement_node.rb", "test/test_equal_node.rb", "test/test_evaluation_visitor.rb", "test/test_expression_statement_node.rb", "test/test_false_node.rb", "test/test_for_in_node.rb", "test/test_for_node.rb", "test/test_function_body_node.rb", "test/test_function_call_node.rb", "test/test_function_decl_node.rb", "test/test_function_expr_node.rb", "test/test_function_visitor.rb", "test/test_getter_property_node.rb", "test/test_global_object.rb", "test/test_greater_node.rb", "test/test_greater_or_equal_node.rb", "test/test_if_node.rb", "test/test_in_node.rb", "test/test_instance_of_node.rb", "test/test_label_node.rb", "test/test_left_shift_node.rb", "test/test_less_node.rb", "test/test_less_or_equal_node.rb", "test/test_line_number.rb", "test/test_logical_and_node.rb", "test/test_logical_not_node.rb", "test/test_logical_or_node.rb", "test/test_modulus_node.rb", "test/test_multiply_node.rb", "test/test_new_expr_node.rb", "test/test_not_equal_node.rb", "test/test_not_strict_equal_node.rb", "test/test_null_node.rb", "test/test_number_node.rb", "test/test_object_literal_node.rb", "test/test_op_and_equal_node.rb", "test/test_op_divide_equal_node.rb", "test/test_op_equal_node.rb", "test/test_op_l_shift_equal_node.rb", "test/test_op_minus_equal_node.rb", "test/test_op_mod_equal_node.rb", "test/test_op_multiply_equal_node.rb", "test/test_op_or_equal_node.rb", "test/test_op_plus_equal_node.rb", "test/test_op_r_shift_equal_node.rb", "test/test_op_u_r_shift_equal_node.rb", "test/test_op_x_or_equal_node.rb", "test/test_parameter_node.rb", "test/test_parser.rb", "test/test_pointcut_visitor.rb", "test/test_postfix_node.rb", "test/test_prefix_node.rb", "test/test_property_node.rb", "test/test_regexp_node.rb", "test/test_resolve_node.rb", "test/test_return_node.rb", "test/test_right_shift_node.rb", "test/test_runtime.rb", "test/test_scope_chain.rb", "test/test_setter_property_node.rb", "test/test_source_elements.rb", "test/test_strict_equal_node.rb", "test/test_string_node.rb", "test/test_subtract_node.rb", "test/test_switch_node.rb", "test/test_this_node.rb", "test/test_throw_node.rb", "test/test_tokenizer.rb", "test/test_true_node.rb", "test/test_try_node.rb", "test/test_type_of_node.rb", "test/test_unary_minus_node.rb", "test/test_unary_plus_node.rb", "test/test_unsigned_right_shift_node.rb", "test/test_var_decl_node.rb", "test/test_var_statement_node.rb", "test/test_void_node.rb", "test/test_while_node.rb", "test/test_with_node.rb"]
20
-
21
- if s.respond_to? :specification_version then
22
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
23
- s.specification_version = 2
24
-
25
- if current_version >= 3 then
26
- s.add_development_dependency(%q<hoe>, [">= 1.7.0"])
27
- else
28
- s.add_dependency(%q<hoe>, [">= 1.7.0"])
29
- end
30
- else
31
- s.add_dependency(%q<hoe>, [">= 1.7.0"])
32
- end
33
- end