mirah 0.0.10-java → 0.0.11-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. data/History.txt +44 -0
  2. data/README.txt +12 -7
  3. data/Rakefile +13 -12
  4. data/examples/SortClosure$__xform_tmp_1.class +0 -0
  5. data/examples/SortClosure$__xform_tmp_2.class +0 -0
  6. data/examples/SortClosure.class +0 -0
  7. data/examples/macros/StringEachChar$Extension1.class +0 -0
  8. data/javalib/mirah-bootstrap.jar +0 -0
  9. data/lib/mirah/appengine_tasks.rb +8 -6
  10. data/lib/mirah/ast/flow.rb +3 -3
  11. data/lib/mirah/ast/structure.rb +23 -2
  12. data/lib/mirah/commands/base.rb +5 -2
  13. data/lib/mirah/commands/base.rb~ +57 -0
  14. data/lib/mirah/commands/run.rb +15 -8
  15. data/lib/mirah/jvm/compiler/java_source.rb +15 -11
  16. data/lib/mirah/jvm/method_lookup.rb~ +247 -0
  17. data/lib/mirah/jvm/types/bitescript_ext.rb +41 -0
  18. data/lib/mirah/jvm/types/boolean.rb +33 -0
  19. data/lib/mirah/jvm/types/factory.rb +43 -3
  20. data/lib/mirah/jvm/types/integers.rb +1 -14
  21. data/lib/mirah/jvm/types/intrinsics.rb +1 -14
  22. data/lib/mirah/jvm/types/source_mirror.rb +6 -3
  23. data/lib/mirah/parser.rb +2 -6
  24. data/lib/mirah/transform/transformer.rb +2 -0
  25. data/lib/mirah/util/argument_processor.rb +33 -12
  26. data/lib/mirah/util/class_loader.rb +7 -2
  27. data/lib/mirah/util/compilation_state.rb +8 -0
  28. data/lib/mirah/version.rb +1 -1
  29. data/lib/mirah/version.rb~ +18 -0
  30. data/test/core/{test_ast.rb → ast_test.rb} +5 -1
  31. data/test/core/{test_commands.rb → commands_test.rb} +29 -2
  32. data/test/core/{test_compilation.rb → compilation_test.rb} +2 -2
  33. data/test/core/{test_env.rb → env_test.rb} +2 -2
  34. data/test/core/{test_macros.rb → macros_test.rb} +2 -2
  35. data/test/core/{test_typer.rb → typer_test.rb} +1 -1
  36. data/test/core/util/argument_processor_test.rb +64 -0
  37. data/test/core/util/class_loader_test.rb +31 -0
  38. data/test/fixtures/my.properties +0 -0
  39. data/test/fixtures/org/foo/A.class +0 -0
  40. data/test/jvm/{test_annotations.rb → annotations_test.rb} +2 -2
  41. data/test/jvm/blocks_test.rb +262 -0
  42. data/test/jvm/bytecode_test_helper.rb +1 -33
  43. data/test/jvm/constructors_test.rb +110 -0
  44. data/test/jvm/{test_enumerable.rb → enumerable_test.rb} +2 -2
  45. data/test/jvm/factory_test.rb +22 -0
  46. data/test/jvm/{test_java_typer.rb → java_typer_test.rb} +1 -1
  47. data/test/jvm/jvm_compiler_test.rb +2162 -0
  48. data/test/jvm/{test_jvm_compiler.rb → jvm_compiler_test.rb~} +43 -220
  49. data/test/jvm/{test_macros.rb → macros_test.rb} +2 -2
  50. data/test/jvm/{test_main_method.rb → main_method_test.rb} +2 -2
  51. data/test/jvm/{test_rescue.rb → rescue_test.rb} +33 -2
  52. data/test/plugins/{test_gwt.rb → gwt_test.rb} +2 -2
  53. data/test/test_helper.rb +40 -0
  54. metadata +33 -33
  55. data/test/jvm/test_blocks.rb +0 -62
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mirah
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.10
5
+ version: 0.0.11
6
6
  platform: java
7
7
  authors:
8
8
  - Charles Oliver Nutter
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-11-20 00:00:00 Z
14
+ date: 2012-04-09 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bitescript
@@ -62,6 +62,7 @@ files:
62
62
  - lib/mirah/transform.rb
63
63
  - lib/mirah/typer.rb
64
64
  - lib/mirah/version.rb
65
+ - lib/mirah/version.rb~
65
66
  - lib/mirah/ast/call.rb
66
67
  - lib/mirah/ast/class.rb
67
68
  - lib/mirah/ast/flow.rb
@@ -73,6 +74,7 @@ files:
73
74
  - lib/mirah/ast/structure.rb
74
75
  - lib/mirah/ast/type.rb
75
76
  - lib/mirah/commands/base.rb
77
+ - lib/mirah/commands/base.rb~
76
78
  - lib/mirah/commands/compile.rb
77
79
  - lib/mirah/commands/parse.rb
78
80
  - lib/mirah/commands/run.rb
@@ -86,6 +88,7 @@ files:
86
88
  - lib/mirah/compiler/type.rb
87
89
  - lib/mirah/jvm/compiler.rb
88
90
  - lib/mirah/jvm/method_lookup.rb
91
+ - lib/mirah/jvm/method_lookup.rb~
89
92
  - lib/mirah/jvm/typer.rb
90
93
  - lib/mirah/jvm/types.rb
91
94
  - lib/mirah/jvm/compiler/base.rb
@@ -97,6 +100,7 @@ files:
97
100
  - lib/mirah/jvm/source_generator/typer.rb
98
101
  - lib/mirah/jvm/types/array_type.rb
99
102
  - lib/mirah/jvm/types/basic_types.rb
103
+ - lib/mirah/jvm/types/bitescript_ext.rb
100
104
  - lib/mirah/jvm/types/boolean.rb
101
105
  - lib/mirah/jvm/types/dynamic_type.rb
102
106
  - lib/mirah/jvm/types/enumerable.rb
@@ -131,23 +135,30 @@ files:
131
135
  - lib/mirah/util/compilation_state.rb
132
136
  - lib/mirah/util/process_errors.rb
133
137
  - test/test_helper.rb
134
- - test/core/test_ast.rb
135
- - test/core/test_commands.rb
136
- - test/core/test_compilation.rb
137
- - test/core/test_env.rb
138
- - test/core/test_macros.rb
139
- - test/core/test_typer.rb
138
+ - test/core/ast_test.rb
139
+ - test/core/commands_test.rb
140
+ - test/core/compilation_test.rb
141
+ - test/core/env_test.rb
142
+ - test/core/macros_test.rb
143
+ - test/core/typer_test.rb
144
+ - test/core/util/argument_processor_test.rb
145
+ - test/core/util/class_loader_test.rb
146
+ - test/fixtures/my.properties
147
+ - test/fixtures/org/foo/A.class
148
+ - test/jvm/annotations_test.rb
149
+ - test/jvm/blocks_test.rb
140
150
  - test/jvm/bytecode_test_helper.rb
151
+ - test/jvm/constructors_test.rb
152
+ - test/jvm/enumerable_test.rb
153
+ - test/jvm/factory_test.rb
154
+ - test/jvm/java_typer_test.rb
141
155
  - test/jvm/javac_test_helper.rb
142
- - test/jvm/test_annotations.rb
143
- - test/jvm/test_blocks.rb
144
- - test/jvm/test_enumerable.rb
145
- - test/jvm/test_java_typer.rb
146
- - test/jvm/test_jvm_compiler.rb
147
- - test/jvm/test_macros.rb
148
- - test/jvm/test_main_method.rb
149
- - test/jvm/test_rescue.rb
150
- - test/plugins/test_gwt.rb
156
+ - test/jvm/jvm_compiler_test.rb
157
+ - test/jvm/jvm_compiler_test.rb~
158
+ - test/jvm/macros_test.rb
159
+ - test/jvm/main_method_test.rb
160
+ - test/jvm/rescue_test.rb
161
+ - test/plugins/gwt_test.rb
151
162
  - examples/bintrees.mirah
152
163
  - examples/construction.mirah
153
164
  - examples/dynamic.mirah
@@ -159,6 +170,9 @@ files:
159
170
  - examples/java_thing.mirah
160
171
  - examples/simple_class.mirah
161
172
  - examples/sort_closure.mirah
173
+ - examples/SortClosure$__xform_tmp_1.class
174
+ - examples/SortClosure$__xform_tmp_2.class
175
+ - examples/SortClosure.class
162
176
  - examples/swing.mirah
163
177
  - examples/tak.mirah
164
178
  - examples/test.edb
@@ -171,6 +185,7 @@ files:
171
185
  - examples/macros/square.mirah
172
186
  - examples/macros/square_int.mirah
173
187
  - examples/macros/string-each-char.mirah
188
+ - examples/macros/StringEachChar$Extension1.class
174
189
  - examples/maven/pom.xml
175
190
  - examples/maven/README.txt
176
191
  - examples/maven/src/main/mirah/hello_mirah.mirah
@@ -245,24 +260,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
260
  requirements: []
246
261
 
247
262
  rubyforge_project: mirah
248
- rubygems_version: 1.8.9
263
+ rubygems_version: 1.8.15
249
264
  signing_key:
250
265
  specification_version: 3
251
266
  summary: Mirah is a customizable programming language featuring static types, local type inference and a heavily Ruby-inspired syntax
252
267
  test_files:
253
268
  - test/test_helper.rb
254
- - test/core/test_ast.rb
255
- - test/core/test_commands.rb
256
- - test/core/test_compilation.rb
257
- - test/core/test_env.rb
258
- - test/core/test_macros.rb
259
- - test/core/test_typer.rb
260
- - test/jvm/test_annotations.rb
261
- - test/jvm/test_blocks.rb
262
- - test/jvm/test_enumerable.rb
263
- - test/jvm/test_java_typer.rb
264
- - test/jvm/test_jvm_compiler.rb
265
- - test/jvm/test_macros.rb
266
- - test/jvm/test_main_method.rb
267
- - test/jvm/test_rescue.rb
268
- - test/plugins/test_gwt.rb
@@ -1,62 +0,0 @@
1
- # Copyright (c) 2010 The Mirah project authors. All Rights Reserved.
2
- # All contributing project authors may be found in the NOTICE file.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- class TestBlocks < Test::Unit::TestCase
17
-
18
- def setup
19
- super
20
- clear_tmp_files
21
- reset_type_factory
22
- end
23
-
24
- def parse_and_type code, name=tmp_script_name
25
- parse_and_resolve_types name, code
26
- end
27
-
28
- #this should probably be a core test
29
- def test_empty_block_parses_and_types_without_error
30
- assert_nothing_raised do
31
- parse_and_type(<<-CODE)
32
- interface Bar do;def run:void;end;end
33
-
34
- class Foo
35
- def foo(a:Bar)
36
- 1
37
- end
38
- end
39
- Foo.new.foo do
40
- end
41
- CODE
42
- end
43
- end
44
-
45
- def test_non_empty_block_parses_and_types_without_error
46
- assert_nothing_raised do
47
- parse_and_type(<<-CODE)
48
- interface Bar do;def run:void;end;end
49
-
50
- class Foo
51
- def foo(a:Bar)
52
- 1
53
- end
54
- end
55
- Foo.new.foo do
56
- 1
57
- end
58
- CODE
59
- end
60
- end
61
-
62
- end