mirah 0.0.9-java → 0.0.10-java
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +40 -0
- data/Rakefile +3 -2
- data/javalib/mirah-bootstrap.jar +0 -0
- data/lib/mirah/ast.rb +22 -12
- data/lib/mirah/ast/flow.rb +28 -14
- data/lib/mirah/ast/intrinsics.rb +20 -17
- data/lib/mirah/ast/method.rb +9 -3
- data/lib/mirah/ast/scope.rb +3 -3
- data/lib/mirah/ast/structure.rb +16 -13
- data/lib/mirah/commands/base.rb +6 -2
- data/lib/mirah/jvm/compiler/java_source.rb +4 -4
- data/lib/mirah/jvm/source_generator/builder.rb +6 -0
- data/lib/mirah/jvm/types/intrinsics.rb +8 -3
- data/lib/mirah/transform/helper.rb +1 -1
- data/lib/mirah/typer/simple.rb +1 -1
- data/lib/mirah/util/argument_processor.rb +2 -2
- data/lib/mirah/util/process_errors.rb +2 -1
- data/lib/mirah/version.rb +1 -1
- data/test/core/test_ast.rb +4 -6
- data/test/core/test_commands.rb +80 -0
- data/test/core/test_compilation.rb +2 -6
- data/test/core/test_env.rb +1 -3
- data/test/core/test_macros.rb +15 -3
- data/test/core/test_typer.rb +17 -4
- data/test/jvm/bytecode_test_helper.rb +6 -7
- data/test/jvm/javac_test_helper.rb +0 -7
- data/test/jvm/test_annotations.rb +58 -0
- data/test/jvm/test_blocks.rb +62 -0
- data/test/jvm/test_jvm_compiler.rb +40 -188
- data/test/jvm/test_macros.rb +13 -0
- data/test/jvm/test_rescue.rb +152 -0
- data/test/plugins/test_gwt.rb +1 -3
- data/test/test_helper.rb +19 -0
- metadata +13 -5
data/test/plugins/test_gwt.rb
CHANGED
@@ -13,9 +13,7 @@
|
|
13
13
|
# See the License for the specific language governing permissions and
|
14
14
|
# limitations under the License.
|
15
15
|
|
16
|
-
require '
|
17
|
-
require 'mirah'
|
18
|
-
require 'jruby'
|
16
|
+
require 'test_helper'
|
19
17
|
|
20
18
|
class TestGWT < Test::Unit::TestCase
|
21
19
|
include Mirah::AST
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,19 @@
|
|
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
|
+
require 'bundler/setup'
|
16
|
+
require 'test/unit'
|
17
|
+
require 'mirah'
|
18
|
+
require 'jruby'
|
19
|
+
require 'turn'
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: mirah
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.10
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Charles Oliver Nutter
|
@@ -11,8 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-
|
15
|
-
default_executable:
|
14
|
+
date: 2011-11-20 00:00:00 Z
|
16
15
|
dependencies:
|
17
16
|
- !ruby/object:Gem::Dependency
|
18
17
|
name: bitescript
|
@@ -131,18 +130,23 @@ files:
|
|
131
130
|
- lib/mirah/util/class_loader.rb
|
132
131
|
- lib/mirah/util/compilation_state.rb
|
133
132
|
- lib/mirah/util/process_errors.rb
|
133
|
+
- test/test_helper.rb
|
134
134
|
- test/core/test_ast.rb
|
135
|
+
- test/core/test_commands.rb
|
135
136
|
- test/core/test_compilation.rb
|
136
137
|
- test/core/test_env.rb
|
137
138
|
- test/core/test_macros.rb
|
138
139
|
- test/core/test_typer.rb
|
139
140
|
- test/jvm/bytecode_test_helper.rb
|
140
141
|
- test/jvm/javac_test_helper.rb
|
142
|
+
- test/jvm/test_annotations.rb
|
143
|
+
- test/jvm/test_blocks.rb
|
141
144
|
- test/jvm/test_enumerable.rb
|
142
145
|
- test/jvm/test_java_typer.rb
|
143
146
|
- test/jvm/test_jvm_compiler.rb
|
144
147
|
- test/jvm/test_macros.rb
|
145
148
|
- test/jvm/test_main_method.rb
|
149
|
+
- test/jvm/test_rescue.rb
|
146
150
|
- test/plugins/test_gwt.rb
|
147
151
|
- examples/bintrees.mirah
|
148
152
|
- examples/construction.mirah
|
@@ -211,7 +215,6 @@ files:
|
|
211
215
|
- History.txt
|
212
216
|
- README.txt
|
213
217
|
- Rakefile
|
214
|
-
has_rdoc: true
|
215
218
|
homepage: http://www.mirah.org/
|
216
219
|
licenses: []
|
217
220
|
|
@@ -242,19 +245,24 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
242
245
|
requirements: []
|
243
246
|
|
244
247
|
rubyforge_project: mirah
|
245
|
-
rubygems_version: 1.
|
248
|
+
rubygems_version: 1.8.9
|
246
249
|
signing_key:
|
247
250
|
specification_version: 3
|
248
251
|
summary: Mirah is a customizable programming language featuring static types, local type inference and a heavily Ruby-inspired syntax
|
249
252
|
test_files:
|
253
|
+
- test/test_helper.rb
|
250
254
|
- test/core/test_ast.rb
|
255
|
+
- test/core/test_commands.rb
|
251
256
|
- test/core/test_compilation.rb
|
252
257
|
- test/core/test_env.rb
|
253
258
|
- test/core/test_macros.rb
|
254
259
|
- test/core/test_typer.rb
|
260
|
+
- test/jvm/test_annotations.rb
|
261
|
+
- test/jvm/test_blocks.rb
|
255
262
|
- test/jvm/test_enumerable.rb
|
256
263
|
- test/jvm/test_java_typer.rb
|
257
264
|
- test/jvm/test_jvm_compiler.rb
|
258
265
|
- test/jvm/test_macros.rb
|
259
266
|
- test/jvm/test_main_method.rb
|
267
|
+
- test/jvm/test_rescue.rb
|
260
268
|
- test/plugins/test_gwt.rb
|