opal 0.3.15 → 0.3.16
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.
- data/.gitignore +1 -1
- data/Gemfile +8 -2
- data/README.md +1 -1
- data/Rakefile +51 -57
- data/bin/opal +50 -2
- data/{runtime/corelib → core}/alpha.rb +6 -1
- data/{runtime/corelib → core}/array.rb +38 -42
- data/{runtime/corelib → core}/basic_object.rb +6 -17
- data/core/boolean.rb +40 -0
- data/core/class.rb +69 -0
- data/{runtime/corelib → core}/comparable.rb +0 -0
- data/core/debug.js +59 -0
- data/core/debug.rb +35 -0
- data/core/dir.rb +90 -0
- data/core/enumerable.rb +331 -0
- data/core/enumerator.rb +126 -0
- data/core/error.rb +40 -0
- data/{runtime/corelib → core}/file.rb +6 -3
- data/core/gemlib.rb +30 -0
- data/{runtime/corelib → core}/hash.rb +37 -35
- data/{runtime/corelib → core}/io.rb +0 -0
- data/{runtime/corelib → core}/kernel.rb +26 -21
- data/{runtime/corelib → core}/load_order +2 -5
- data/{runtime/corelib → core}/match_data.rb +2 -4
- data/core/module.rb +204 -0
- data/{runtime/corelib → core}/nil_class.rb +1 -7
- data/{runtime/corelib → core}/numeric.rb +9 -13
- data/core/object.rb +17 -0
- data/{runtime/corelib → core}/proc.rb +2 -13
- data/{runtime/corelib → core}/range.rb +19 -7
- data/{runtime/corelib → core}/rational.rb +0 -0
- data/{runtime/corelib → core}/regexp.rb +2 -6
- data/core/runtime.js +672 -0
- data/{runtime/corelib → core}/string.rb +25 -9
- data/{runtime/corelib → core}/struct.rb +0 -0
- data/core/time.rb +111 -0
- data/{runtime/corelib → core}/top_self.rb +0 -0
- data/{runtime/spec → core_spec}/README.md +0 -0
- data/{runtime/spec → core_spec}/core/array/allocate_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/append_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/assoc_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/at_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/clear_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/collect_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/compact_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/concat_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/constructor_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/count_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/delete_at_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/delete_if_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/delete_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/each_index_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/each_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/element_reference_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/element_set_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/empty_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/eql_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/equal_value_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/fetch_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/first_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/fixtures/classes.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/flatten_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/include_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/insert_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/last_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/length_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/map_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/plus_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/pop_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/push_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/rassoc_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/reject_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/replace_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/reverse_each_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/reverse_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/shared/collect.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/shared/eql.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/shared/length.rb +0 -0
- data/{runtime/spec → core_spec}/core/array/shared/replace.rb +0 -0
- data/{runtime/spec → core_spec}/core/class/new_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/enumerable/all_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/enumerable/any_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/enumerable/collect_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/enumerable/count_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/enumerable/detect_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/enumerable/find_spec.rb +0 -0
- data/core_spec/core/enumerable/first_spec.rb +3 -0
- data/{runtime/spec → core_spec}/core/enumerable/fixtures/classes.rb +0 -0
- data/{runtime/spec → core_spec}/core/enumerable/shared/collect.rb +0 -0
- data/{runtime/spec → core_spec}/core/enumerable/shared/entries.rb +0 -0
- data/{runtime/spec → core_spec}/core/enumerable/shared/find.rb +0 -0
- data/core_spec/core/enumerable/shared/take.rb +31 -0
- data/{runtime/spec → core_spec}/core/enumerable/to_a_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/false/and_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/false/inspect_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/false/or_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/false/to_s_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/false/xor_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/hash/allocate_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/hash/assoc_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/hash/clear_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/hash/clone_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/hash/default_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/hash/delete_if_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/hash/element_reference_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/hash/element_set_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/hash/new_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/matchdata/to_a_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/nil/and_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/nil/inspect_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/nil/nil_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/nil/or_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/nil/to_a_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/nil/to_f_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/nil/to_i_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/nil/to_s_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/nil/xor_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/numeric/equal_value_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/object/is_a_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/object/shared/kind_of.rb +0 -0
- data/{runtime/spec → core_spec}/core/regexp/match_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/regexp/shared/match.rb +0 -0
- data/{runtime/spec → core_spec}/core/symbol/to_proc_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/true/and_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/true/inspect_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/true/or_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/true/to_s_spec.rb +0 -0
- data/{runtime/spec → core_spec}/core/true/xor_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/alias_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/and_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/array_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/block_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/break_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/case_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/defined_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/ensure_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/fixtures/block.rb +0 -0
- data/{runtime/spec → core_spec}/language/fixtures/break.rb +0 -0
- data/{runtime/spec → core_spec}/language/fixtures/defined.rb +0 -0
- data/{runtime/spec → core_spec}/language/fixtures/ensure.rb +0 -0
- data/{runtime/spec → core_spec}/language/fixtures/next.rb +0 -0
- data/{runtime/spec → core_spec}/language/fixtures/send.rb +0 -0
- data/{runtime/spec → core_spec}/language/fixtures/super.rb +0 -0
- data/{runtime/spec → core_spec}/language/hash_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/if_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/loop_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/next_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/or_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/predefined_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/regexp/interpolation_spec.rb +8 -0
- data/{runtime/spec → core_spec}/language/regexp_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/send_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/string_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/super_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/symbol_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/undef_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/unless_spec.rb +0 -0
- data/{runtime/spec → core_spec}/language/until_spec.rb +0 -0
- data/core_spec/language/variables_spec.rb +112 -0
- data/{runtime/spec → core_spec}/language/versions/hash_1.9.rb +0 -0
- data/{runtime/spec → core_spec}/language/while_spec.rb +0 -0
- data/{runtime/spec → core_spec}/opal/opal/defined_spec.rb +0 -0
- data/{runtime/spec → core_spec}/opal/opal/function_spec.rb +0 -0
- data/{runtime/spec → core_spec}/opal/opal/native_spec.rb +0 -0
- data/{runtime/spec → core_spec}/opal/opal/null_spec.rb +0 -0
- data/{runtime/spec → core_spec}/opal/opal/number_spec.rb +0 -0
- data/{runtime/spec → core_spec}/opal/opal/object_spec.rb +0 -0
- data/{runtime/spec → core_spec}/opal/opal/string_spec.rb +0 -0
- data/{runtime/spec → core_spec}/opal/opal/typeof_spec.rb +0 -0
- data/{runtime/spec → core_spec}/opal/opal/undefined_spec.rb +0 -0
- data/{runtime/spec → core_spec}/opal/true/case_compare_spec.rb +0 -0
- data/{runtime/spec → core_spec}/opal/true/class_spec.rb +0 -0
- data/{docs/spec_runner.html → core_spec/release_runner.html} +4 -3
- data/core_spec/runner.html +16 -0
- data/core_spec/spec_helper.rb +23 -0
- data/lib/opal.rb +85 -2
- data/lib/opal/builder.rb +129 -46
- data/lib/opal/context.rb +47 -26
- data/lib/opal/dependency_builder.rb +113 -14
- data/lib/opal/environment.rb +40 -45
- data/lib/opal/parser/grammar.rb +2296 -2254
- data/lib/opal/parser/grammar.y +27 -8
- data/lib/opal/parser/lexer.rb +12 -3
- data/lib/opal/parser/parser.rb +117 -30
- data/lib/opal/parser/scope.rb +2 -2
- data/lib/opal/version.rb +1 -1
- data/opal.gemspec +3 -8
- data/spec/grammar/masgn_spec.rb +37 -0
- metadata +177 -227
- data/index.html +0 -434
- data/lib/opal/command.rb +0 -73
- data/runtime/README.md +0 -25
- data/runtime/corelib/boolean.rb +0 -44
- data/runtime/corelib/class.rb +0 -43
- data/runtime/corelib/complex.rb +0 -2
- data/runtime/corelib/dir.rb +0 -29
- data/runtime/corelib/enumerable.rb +0 -316
- data/runtime/corelib/enumerator.rb +0 -80
- data/runtime/corelib/error.rb +0 -25
- data/runtime/corelib/module.rb +0 -171
- data/runtime/corelib/native.rb +0 -50
- data/runtime/corelib/object.rb +0 -21
- data/runtime/corelib/time.rb +0 -196
- data/runtime/gemlib/alpha.rb +0 -5
- data/runtime/gemlib/kernel.rb +0 -17
- data/runtime/gemlib/load_order +0 -2
- data/runtime/kernel/class.js +0 -256
- data/runtime/kernel/debug.js +0 -42
- data/runtime/kernel/init.js +0 -114
- data/runtime/kernel/load_order +0 -5
- data/runtime/kernel/loader.js +0 -151
- data/runtime/kernel/runtime.js +0 -414
- data/runtime/spec/language/variables_spec.rb +0 -28
- data/runtime/spec/library/stringscanner/scan_spec.rb +0 -36
- data/runtime/spec/opal/forwardable/def_instance_delegator_spec.rb +0 -49
- data/runtime/spec/spec_helper.rb +0 -25
- data/runtime/stdlib/base64.rb +0 -91
- data/runtime/stdlib/date.rb +0 -4
- data/runtime/stdlib/dev.rb +0 -171
- data/runtime/stdlib/forwardable.rb +0 -33
- data/runtime/stdlib/optparse.rb +0 -0
- data/runtime/stdlib/pp.rb +0 -6
- data/runtime/stdlib/racc/parser.rb +0 -159
- data/runtime/stdlib/rbconfig.rb +0 -0
- data/runtime/stdlib/si.rb +0 -17
- data/runtime/stdlib/strscan.rb +0 -53
- data/runtime/stdlib/uri.rb +0 -111
- data/runtime/stdlib/uri/common.rb +0 -1014
- data/runtime/stdlib/uri/ftp.rb +0 -261
- data/runtime/stdlib/uri/generic.rb +0 -1599
- data/runtime/stdlib/uri/http.rb +0 -106
- data/runtime/stdlib/uri/https.rb +0 -22
- data/runtime/stdlib/uri/ldap.rb +0 -260
- data/runtime/stdlib/uri/ldaps.rb +0 -20
- data/runtime/stdlib/uri/mailto.rb +0 -280
- data/spec/builder/output_path_spec.rb +0 -50
@@ -0,0 +1,37 @@
|
|
1
|
+
require File.expand_path('../../spec_helper', __FILE__)
|
2
|
+
|
3
|
+
describe "Masgn" do
|
4
|
+
describe "with a single lhs splat" do
|
5
|
+
it "returns a s(:masgn)" do
|
6
|
+
opal_parse('*a = 1, 2').first.should == :masgn
|
7
|
+
opal_parse('* = 1, 2').first.should == :masgn
|
8
|
+
end
|
9
|
+
|
10
|
+
it "wraps splat inside a s(:array)" do
|
11
|
+
opal_parse('*a = 1, 2')[1].should == [:array, [:splat, [:lasgn, :a]]]
|
12
|
+
opal_parse('* = 1, 2')[1].should == [:array, [:splat]]
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
describe "with more than 1 lhs item" do
|
17
|
+
it "returns a s(:masgn) " do
|
18
|
+
opal_parse('a, b = 1, 2').first.should == :masgn
|
19
|
+
end
|
20
|
+
|
21
|
+
it "collects all lhs args into an s(:array)" do
|
22
|
+
opal_parse('a, b = 1, 2')[1].should == [:array, [:lasgn, :a], [:lasgn, :b]]
|
23
|
+
opal_parse('@a, @b = 1, 2')[1].should == [:array, [:iasgn, :@a], [:iasgn, :@b]]
|
24
|
+
end
|
25
|
+
|
26
|
+
it "supports splat parts" do
|
27
|
+
opal_parse('a, *b = 1, 2')[1].should == [:array, [:lasgn, :a], [:splat, [:lasgn, :b]]]
|
28
|
+
opal_parse('@a, * = 1, 2')[1].should == [:array, [:iasgn, :@a], [:splat]]
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe "with a single rhs argument" do
|
33
|
+
it "should wrap rhs in an s(:to_ary)" do
|
34
|
+
opal_parse('a, b = 1')[2].should == [:to_ary, [:lit, 1]]
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.16
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,30 +9,8 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-01-
|
13
|
-
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: racc
|
16
|
-
requirement: &2154343380 !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :development
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: *2154343380
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: therubyracer
|
27
|
-
requirement: &2154342960 !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
|
-
requirements:
|
30
|
-
- - ! '>='
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '0'
|
33
|
-
type: :development
|
34
|
-
prerelease: false
|
35
|
-
version_requirements: *2154342960
|
12
|
+
date: 2012-01-15 00:00:00.000000000Z
|
13
|
+
dependencies: []
|
36
14
|
description: Ruby runtime and core library for javascript.
|
37
15
|
email: adam@adambeynon.com
|
38
16
|
executables:
|
@@ -46,11 +24,178 @@ files:
|
|
46
24
|
- README.md
|
47
25
|
- Rakefile
|
48
26
|
- bin/opal
|
49
|
-
-
|
50
|
-
-
|
27
|
+
- core/alpha.rb
|
28
|
+
- core/array.rb
|
29
|
+
- core/basic_object.rb
|
30
|
+
- core/boolean.rb
|
31
|
+
- core/class.rb
|
32
|
+
- core/comparable.rb
|
33
|
+
- core/debug.js
|
34
|
+
- core/debug.rb
|
35
|
+
- core/dir.rb
|
36
|
+
- core/enumerable.rb
|
37
|
+
- core/enumerator.rb
|
38
|
+
- core/error.rb
|
39
|
+
- core/file.rb
|
40
|
+
- core/gemlib.rb
|
41
|
+
- core/hash.rb
|
42
|
+
- core/io.rb
|
43
|
+
- core/kernel.rb
|
44
|
+
- core/load_order
|
45
|
+
- core/match_data.rb
|
46
|
+
- core/module.rb
|
47
|
+
- core/nil_class.rb
|
48
|
+
- core/numeric.rb
|
49
|
+
- core/object.rb
|
50
|
+
- core/proc.rb
|
51
|
+
- core/range.rb
|
52
|
+
- core/rational.rb
|
53
|
+
- core/regexp.rb
|
54
|
+
- core/runtime.js
|
55
|
+
- core/string.rb
|
56
|
+
- core/struct.rb
|
57
|
+
- core/time.rb
|
58
|
+
- core/top_self.rb
|
59
|
+
- core_spec/README.md
|
60
|
+
- core_spec/core/array/allocate_spec.rb
|
61
|
+
- core_spec/core/array/append_spec.rb
|
62
|
+
- core_spec/core/array/assoc_spec.rb
|
63
|
+
- core_spec/core/array/at_spec.rb
|
64
|
+
- core_spec/core/array/clear_spec.rb
|
65
|
+
- core_spec/core/array/collect_spec.rb
|
66
|
+
- core_spec/core/array/compact_spec.rb
|
67
|
+
- core_spec/core/array/concat_spec.rb
|
68
|
+
- core_spec/core/array/constructor_spec.rb
|
69
|
+
- core_spec/core/array/count_spec.rb
|
70
|
+
- core_spec/core/array/delete_at_spec.rb
|
71
|
+
- core_spec/core/array/delete_if_spec.rb
|
72
|
+
- core_spec/core/array/delete_spec.rb
|
73
|
+
- core_spec/core/array/each_index_spec.rb
|
74
|
+
- core_spec/core/array/each_spec.rb
|
75
|
+
- core_spec/core/array/element_reference_spec.rb
|
76
|
+
- core_spec/core/array/element_set_spec.rb
|
77
|
+
- core_spec/core/array/empty_spec.rb
|
78
|
+
- core_spec/core/array/eql_spec.rb
|
79
|
+
- core_spec/core/array/equal_value_spec.rb
|
80
|
+
- core_spec/core/array/fetch_spec.rb
|
81
|
+
- core_spec/core/array/first_spec.rb
|
82
|
+
- core_spec/core/array/fixtures/classes.rb
|
83
|
+
- core_spec/core/array/flatten_spec.rb
|
84
|
+
- core_spec/core/array/include_spec.rb
|
85
|
+
- core_spec/core/array/insert_spec.rb
|
86
|
+
- core_spec/core/array/last_spec.rb
|
87
|
+
- core_spec/core/array/length_spec.rb
|
88
|
+
- core_spec/core/array/map_spec.rb
|
89
|
+
- core_spec/core/array/plus_spec.rb
|
90
|
+
- core_spec/core/array/pop_spec.rb
|
91
|
+
- core_spec/core/array/push_spec.rb
|
92
|
+
- core_spec/core/array/rassoc_spec.rb
|
93
|
+
- core_spec/core/array/reject_spec.rb
|
94
|
+
- core_spec/core/array/replace_spec.rb
|
95
|
+
- core_spec/core/array/reverse_each_spec.rb
|
96
|
+
- core_spec/core/array/reverse_spec.rb
|
97
|
+
- core_spec/core/array/shared/collect.rb
|
98
|
+
- core_spec/core/array/shared/eql.rb
|
99
|
+
- core_spec/core/array/shared/length.rb
|
100
|
+
- core_spec/core/array/shared/replace.rb
|
101
|
+
- core_spec/core/class/new_spec.rb
|
102
|
+
- core_spec/core/enumerable/all_spec.rb
|
103
|
+
- core_spec/core/enumerable/any_spec.rb
|
104
|
+
- core_spec/core/enumerable/collect_spec.rb
|
105
|
+
- core_spec/core/enumerable/count_spec.rb
|
106
|
+
- core_spec/core/enumerable/detect_spec.rb
|
107
|
+
- core_spec/core/enumerable/find_spec.rb
|
108
|
+
- core_spec/core/enumerable/first_spec.rb
|
109
|
+
- core_spec/core/enumerable/fixtures/classes.rb
|
110
|
+
- core_spec/core/enumerable/shared/collect.rb
|
111
|
+
- core_spec/core/enumerable/shared/entries.rb
|
112
|
+
- core_spec/core/enumerable/shared/find.rb
|
113
|
+
- core_spec/core/enumerable/shared/take.rb
|
114
|
+
- core_spec/core/enumerable/to_a_spec.rb
|
115
|
+
- core_spec/core/false/and_spec.rb
|
116
|
+
- core_spec/core/false/inspect_spec.rb
|
117
|
+
- core_spec/core/false/or_spec.rb
|
118
|
+
- core_spec/core/false/to_s_spec.rb
|
119
|
+
- core_spec/core/false/xor_spec.rb
|
120
|
+
- core_spec/core/hash/allocate_spec.rb
|
121
|
+
- core_spec/core/hash/assoc_spec.rb
|
122
|
+
- core_spec/core/hash/clear_spec.rb
|
123
|
+
- core_spec/core/hash/clone_spec.rb
|
124
|
+
- core_spec/core/hash/default_spec.rb
|
125
|
+
- core_spec/core/hash/delete_if_spec.rb
|
126
|
+
- core_spec/core/hash/element_reference_spec.rb
|
127
|
+
- core_spec/core/hash/element_set_spec.rb
|
128
|
+
- core_spec/core/hash/new_spec.rb
|
129
|
+
- core_spec/core/matchdata/to_a_spec.rb
|
130
|
+
- core_spec/core/nil/and_spec.rb
|
131
|
+
- core_spec/core/nil/inspect_spec.rb
|
132
|
+
- core_spec/core/nil/nil_spec.rb
|
133
|
+
- core_spec/core/nil/or_spec.rb
|
134
|
+
- core_spec/core/nil/to_a_spec.rb
|
135
|
+
- core_spec/core/nil/to_f_spec.rb
|
136
|
+
- core_spec/core/nil/to_i_spec.rb
|
137
|
+
- core_spec/core/nil/to_s_spec.rb
|
138
|
+
- core_spec/core/nil/xor_spec.rb
|
139
|
+
- core_spec/core/numeric/equal_value_spec.rb
|
140
|
+
- core_spec/core/object/is_a_spec.rb
|
141
|
+
- core_spec/core/object/shared/kind_of.rb
|
142
|
+
- core_spec/core/regexp/match_spec.rb
|
143
|
+
- core_spec/core/regexp/shared/match.rb
|
144
|
+
- core_spec/core/symbol/to_proc_spec.rb
|
145
|
+
- core_spec/core/true/and_spec.rb
|
146
|
+
- core_spec/core/true/inspect_spec.rb
|
147
|
+
- core_spec/core/true/or_spec.rb
|
148
|
+
- core_spec/core/true/to_s_spec.rb
|
149
|
+
- core_spec/core/true/xor_spec.rb
|
150
|
+
- core_spec/language/alias_spec.rb
|
151
|
+
- core_spec/language/and_spec.rb
|
152
|
+
- core_spec/language/array_spec.rb
|
153
|
+
- core_spec/language/block_spec.rb
|
154
|
+
- core_spec/language/break_spec.rb
|
155
|
+
- core_spec/language/case_spec.rb
|
156
|
+
- core_spec/language/defined_spec.rb
|
157
|
+
- core_spec/language/ensure_spec.rb
|
158
|
+
- core_spec/language/fixtures/block.rb
|
159
|
+
- core_spec/language/fixtures/break.rb
|
160
|
+
- core_spec/language/fixtures/defined.rb
|
161
|
+
- core_spec/language/fixtures/ensure.rb
|
162
|
+
- core_spec/language/fixtures/next.rb
|
163
|
+
- core_spec/language/fixtures/send.rb
|
164
|
+
- core_spec/language/fixtures/super.rb
|
165
|
+
- core_spec/language/hash_spec.rb
|
166
|
+
- core_spec/language/if_spec.rb
|
167
|
+
- core_spec/language/loop_spec.rb
|
168
|
+
- core_spec/language/next_spec.rb
|
169
|
+
- core_spec/language/or_spec.rb
|
170
|
+
- core_spec/language/predefined_spec.rb
|
171
|
+
- core_spec/language/regexp/interpolation_spec.rb
|
172
|
+
- core_spec/language/regexp_spec.rb
|
173
|
+
- core_spec/language/send_spec.rb
|
174
|
+
- core_spec/language/string_spec.rb
|
175
|
+
- core_spec/language/super_spec.rb
|
176
|
+
- core_spec/language/symbol_spec.rb
|
177
|
+
- core_spec/language/undef_spec.rb
|
178
|
+
- core_spec/language/unless_spec.rb
|
179
|
+
- core_spec/language/until_spec.rb
|
180
|
+
- core_spec/language/variables_spec.rb
|
181
|
+
- core_spec/language/versions/hash_1.9.rb
|
182
|
+
- core_spec/language/while_spec.rb
|
183
|
+
- core_spec/opal/opal/defined_spec.rb
|
184
|
+
- core_spec/opal/opal/function_spec.rb
|
185
|
+
- core_spec/opal/opal/native_spec.rb
|
186
|
+
- core_spec/opal/opal/null_spec.rb
|
187
|
+
- core_spec/opal/opal/number_spec.rb
|
188
|
+
- core_spec/opal/opal/object_spec.rb
|
189
|
+
- core_spec/opal/opal/string_spec.rb
|
190
|
+
- core_spec/opal/opal/typeof_spec.rb
|
191
|
+
- core_spec/opal/opal/undefined_spec.rb
|
192
|
+
- core_spec/opal/true/case_compare_spec.rb
|
193
|
+
- core_spec/opal/true/class_spec.rb
|
194
|
+
- core_spec/release_runner.html
|
195
|
+
- core_spec/runner.html
|
196
|
+
- core_spec/spec_helper.rb
|
51
197
|
- lib/opal.rb
|
52
198
|
- lib/opal/builder.rb
|
53
|
-
- lib/opal/command.rb
|
54
199
|
- lib/opal/context.rb
|
55
200
|
- lib/opal/dependency_builder.rb
|
56
201
|
- lib/opal/environment.rb
|
@@ -62,201 +207,6 @@ files:
|
|
62
207
|
- lib/opal/parser/sexp.rb
|
63
208
|
- lib/opal/version.rb
|
64
209
|
- opal.gemspec
|
65
|
-
- runtime/README.md
|
66
|
-
- runtime/corelib/alpha.rb
|
67
|
-
- runtime/corelib/array.rb
|
68
|
-
- runtime/corelib/basic_object.rb
|
69
|
-
- runtime/corelib/boolean.rb
|
70
|
-
- runtime/corelib/class.rb
|
71
|
-
- runtime/corelib/comparable.rb
|
72
|
-
- runtime/corelib/complex.rb
|
73
|
-
- runtime/corelib/dir.rb
|
74
|
-
- runtime/corelib/enumerable.rb
|
75
|
-
- runtime/corelib/enumerator.rb
|
76
|
-
- runtime/corelib/error.rb
|
77
|
-
- runtime/corelib/file.rb
|
78
|
-
- runtime/corelib/hash.rb
|
79
|
-
- runtime/corelib/io.rb
|
80
|
-
- runtime/corelib/kernel.rb
|
81
|
-
- runtime/corelib/load_order
|
82
|
-
- runtime/corelib/match_data.rb
|
83
|
-
- runtime/corelib/module.rb
|
84
|
-
- runtime/corelib/native.rb
|
85
|
-
- runtime/corelib/nil_class.rb
|
86
|
-
- runtime/corelib/numeric.rb
|
87
|
-
- runtime/corelib/object.rb
|
88
|
-
- runtime/corelib/proc.rb
|
89
|
-
- runtime/corelib/range.rb
|
90
|
-
- runtime/corelib/rational.rb
|
91
|
-
- runtime/corelib/regexp.rb
|
92
|
-
- runtime/corelib/string.rb
|
93
|
-
- runtime/corelib/struct.rb
|
94
|
-
- runtime/corelib/time.rb
|
95
|
-
- runtime/corelib/top_self.rb
|
96
|
-
- runtime/gemlib/alpha.rb
|
97
|
-
- runtime/gemlib/kernel.rb
|
98
|
-
- runtime/gemlib/load_order
|
99
|
-
- runtime/kernel/class.js
|
100
|
-
- runtime/kernel/debug.js
|
101
|
-
- runtime/kernel/init.js
|
102
|
-
- runtime/kernel/load_order
|
103
|
-
- runtime/kernel/loader.js
|
104
|
-
- runtime/kernel/runtime.js
|
105
|
-
- runtime/spec/README.md
|
106
|
-
- runtime/spec/core/array/allocate_spec.rb
|
107
|
-
- runtime/spec/core/array/append_spec.rb
|
108
|
-
- runtime/spec/core/array/assoc_spec.rb
|
109
|
-
- runtime/spec/core/array/at_spec.rb
|
110
|
-
- runtime/spec/core/array/clear_spec.rb
|
111
|
-
- runtime/spec/core/array/collect_spec.rb
|
112
|
-
- runtime/spec/core/array/compact_spec.rb
|
113
|
-
- runtime/spec/core/array/concat_spec.rb
|
114
|
-
- runtime/spec/core/array/constructor_spec.rb
|
115
|
-
- runtime/spec/core/array/count_spec.rb
|
116
|
-
- runtime/spec/core/array/delete_at_spec.rb
|
117
|
-
- runtime/spec/core/array/delete_if_spec.rb
|
118
|
-
- runtime/spec/core/array/delete_spec.rb
|
119
|
-
- runtime/spec/core/array/each_index_spec.rb
|
120
|
-
- runtime/spec/core/array/each_spec.rb
|
121
|
-
- runtime/spec/core/array/element_reference_spec.rb
|
122
|
-
- runtime/spec/core/array/element_set_spec.rb
|
123
|
-
- runtime/spec/core/array/empty_spec.rb
|
124
|
-
- runtime/spec/core/array/eql_spec.rb
|
125
|
-
- runtime/spec/core/array/equal_value_spec.rb
|
126
|
-
- runtime/spec/core/array/fetch_spec.rb
|
127
|
-
- runtime/spec/core/array/first_spec.rb
|
128
|
-
- runtime/spec/core/array/fixtures/classes.rb
|
129
|
-
- runtime/spec/core/array/flatten_spec.rb
|
130
|
-
- runtime/spec/core/array/include_spec.rb
|
131
|
-
- runtime/spec/core/array/insert_spec.rb
|
132
|
-
- runtime/spec/core/array/last_spec.rb
|
133
|
-
- runtime/spec/core/array/length_spec.rb
|
134
|
-
- runtime/spec/core/array/map_spec.rb
|
135
|
-
- runtime/spec/core/array/plus_spec.rb
|
136
|
-
- runtime/spec/core/array/pop_spec.rb
|
137
|
-
- runtime/spec/core/array/push_spec.rb
|
138
|
-
- runtime/spec/core/array/rassoc_spec.rb
|
139
|
-
- runtime/spec/core/array/reject_spec.rb
|
140
|
-
- runtime/spec/core/array/replace_spec.rb
|
141
|
-
- runtime/spec/core/array/reverse_each_spec.rb
|
142
|
-
- runtime/spec/core/array/reverse_spec.rb
|
143
|
-
- runtime/spec/core/array/shared/collect.rb
|
144
|
-
- runtime/spec/core/array/shared/eql.rb
|
145
|
-
- runtime/spec/core/array/shared/length.rb
|
146
|
-
- runtime/spec/core/array/shared/replace.rb
|
147
|
-
- runtime/spec/core/class/new_spec.rb
|
148
|
-
- runtime/spec/core/enumerable/all_spec.rb
|
149
|
-
- runtime/spec/core/enumerable/any_spec.rb
|
150
|
-
- runtime/spec/core/enumerable/collect_spec.rb
|
151
|
-
- runtime/spec/core/enumerable/count_spec.rb
|
152
|
-
- runtime/spec/core/enumerable/detect_spec.rb
|
153
|
-
- runtime/spec/core/enumerable/find_spec.rb
|
154
|
-
- runtime/spec/core/enumerable/fixtures/classes.rb
|
155
|
-
- runtime/spec/core/enumerable/shared/collect.rb
|
156
|
-
- runtime/spec/core/enumerable/shared/entries.rb
|
157
|
-
- runtime/spec/core/enumerable/shared/find.rb
|
158
|
-
- runtime/spec/core/enumerable/to_a_spec.rb
|
159
|
-
- runtime/spec/core/false/and_spec.rb
|
160
|
-
- runtime/spec/core/false/inspect_spec.rb
|
161
|
-
- runtime/spec/core/false/or_spec.rb
|
162
|
-
- runtime/spec/core/false/to_s_spec.rb
|
163
|
-
- runtime/spec/core/false/xor_spec.rb
|
164
|
-
- runtime/spec/core/hash/allocate_spec.rb
|
165
|
-
- runtime/spec/core/hash/assoc_spec.rb
|
166
|
-
- runtime/spec/core/hash/clear_spec.rb
|
167
|
-
- runtime/spec/core/hash/clone_spec.rb
|
168
|
-
- runtime/spec/core/hash/default_spec.rb
|
169
|
-
- runtime/spec/core/hash/delete_if_spec.rb
|
170
|
-
- runtime/spec/core/hash/element_reference_spec.rb
|
171
|
-
- runtime/spec/core/hash/element_set_spec.rb
|
172
|
-
- runtime/spec/core/hash/new_spec.rb
|
173
|
-
- runtime/spec/core/matchdata/to_a_spec.rb
|
174
|
-
- runtime/spec/core/nil/and_spec.rb
|
175
|
-
- runtime/spec/core/nil/inspect_spec.rb
|
176
|
-
- runtime/spec/core/nil/nil_spec.rb
|
177
|
-
- runtime/spec/core/nil/or_spec.rb
|
178
|
-
- runtime/spec/core/nil/to_a_spec.rb
|
179
|
-
- runtime/spec/core/nil/to_f_spec.rb
|
180
|
-
- runtime/spec/core/nil/to_i_spec.rb
|
181
|
-
- runtime/spec/core/nil/to_s_spec.rb
|
182
|
-
- runtime/spec/core/nil/xor_spec.rb
|
183
|
-
- runtime/spec/core/numeric/equal_value_spec.rb
|
184
|
-
- runtime/spec/core/object/is_a_spec.rb
|
185
|
-
- runtime/spec/core/object/shared/kind_of.rb
|
186
|
-
- runtime/spec/core/regexp/match_spec.rb
|
187
|
-
- runtime/spec/core/regexp/shared/match.rb
|
188
|
-
- runtime/spec/core/symbol/to_proc_spec.rb
|
189
|
-
- runtime/spec/core/true/and_spec.rb
|
190
|
-
- runtime/spec/core/true/inspect_spec.rb
|
191
|
-
- runtime/spec/core/true/or_spec.rb
|
192
|
-
- runtime/spec/core/true/to_s_spec.rb
|
193
|
-
- runtime/spec/core/true/xor_spec.rb
|
194
|
-
- runtime/spec/language/alias_spec.rb
|
195
|
-
- runtime/spec/language/and_spec.rb
|
196
|
-
- runtime/spec/language/array_spec.rb
|
197
|
-
- runtime/spec/language/block_spec.rb
|
198
|
-
- runtime/spec/language/break_spec.rb
|
199
|
-
- runtime/spec/language/case_spec.rb
|
200
|
-
- runtime/spec/language/defined_spec.rb
|
201
|
-
- runtime/spec/language/ensure_spec.rb
|
202
|
-
- runtime/spec/language/fixtures/block.rb
|
203
|
-
- runtime/spec/language/fixtures/break.rb
|
204
|
-
- runtime/spec/language/fixtures/defined.rb
|
205
|
-
- runtime/spec/language/fixtures/ensure.rb
|
206
|
-
- runtime/spec/language/fixtures/next.rb
|
207
|
-
- runtime/spec/language/fixtures/send.rb
|
208
|
-
- runtime/spec/language/fixtures/super.rb
|
209
|
-
- runtime/spec/language/hash_spec.rb
|
210
|
-
- runtime/spec/language/if_spec.rb
|
211
|
-
- runtime/spec/language/loop_spec.rb
|
212
|
-
- runtime/spec/language/next_spec.rb
|
213
|
-
- runtime/spec/language/or_spec.rb
|
214
|
-
- runtime/spec/language/predefined_spec.rb
|
215
|
-
- runtime/spec/language/regexp/interpolation_spec.rb
|
216
|
-
- runtime/spec/language/regexp_spec.rb
|
217
|
-
- runtime/spec/language/send_spec.rb
|
218
|
-
- runtime/spec/language/string_spec.rb
|
219
|
-
- runtime/spec/language/super_spec.rb
|
220
|
-
- runtime/spec/language/symbol_spec.rb
|
221
|
-
- runtime/spec/language/undef_spec.rb
|
222
|
-
- runtime/spec/language/unless_spec.rb
|
223
|
-
- runtime/spec/language/until_spec.rb
|
224
|
-
- runtime/spec/language/variables_spec.rb
|
225
|
-
- runtime/spec/language/versions/hash_1.9.rb
|
226
|
-
- runtime/spec/language/while_spec.rb
|
227
|
-
- runtime/spec/library/stringscanner/scan_spec.rb
|
228
|
-
- runtime/spec/opal/forwardable/def_instance_delegator_spec.rb
|
229
|
-
- runtime/spec/opal/opal/defined_spec.rb
|
230
|
-
- runtime/spec/opal/opal/function_spec.rb
|
231
|
-
- runtime/spec/opal/opal/native_spec.rb
|
232
|
-
- runtime/spec/opal/opal/null_spec.rb
|
233
|
-
- runtime/spec/opal/opal/number_spec.rb
|
234
|
-
- runtime/spec/opal/opal/object_spec.rb
|
235
|
-
- runtime/spec/opal/opal/string_spec.rb
|
236
|
-
- runtime/spec/opal/opal/typeof_spec.rb
|
237
|
-
- runtime/spec/opal/opal/undefined_spec.rb
|
238
|
-
- runtime/spec/opal/true/case_compare_spec.rb
|
239
|
-
- runtime/spec/opal/true/class_spec.rb
|
240
|
-
- runtime/spec/spec_helper.rb
|
241
|
-
- runtime/stdlib/base64.rb
|
242
|
-
- runtime/stdlib/date.rb
|
243
|
-
- runtime/stdlib/dev.rb
|
244
|
-
- runtime/stdlib/forwardable.rb
|
245
|
-
- runtime/stdlib/optparse.rb
|
246
|
-
- runtime/stdlib/pp.rb
|
247
|
-
- runtime/stdlib/racc/parser.rb
|
248
|
-
- runtime/stdlib/rbconfig.rb
|
249
|
-
- runtime/stdlib/si.rb
|
250
|
-
- runtime/stdlib/strscan.rb
|
251
|
-
- runtime/stdlib/uri.rb
|
252
|
-
- runtime/stdlib/uri/common.rb
|
253
|
-
- runtime/stdlib/uri/ftp.rb
|
254
|
-
- runtime/stdlib/uri/generic.rb
|
255
|
-
- runtime/stdlib/uri/http.rb
|
256
|
-
- runtime/stdlib/uri/https.rb
|
257
|
-
- runtime/stdlib/uri/ldap.rb
|
258
|
-
- runtime/stdlib/uri/ldaps.rb
|
259
|
-
- runtime/stdlib/uri/mailto.rb
|
260
210
|
- spec/builder/build_source_spec.rb
|
261
211
|
- spec/builder/fixtures/build_source/adam.rb
|
262
212
|
- spec/builder/fixtures/build_source/bar/a.rb
|
@@ -268,7 +218,6 @@ files:
|
|
268
218
|
- spec/builder/fixtures/build_source/foo/b.rb
|
269
219
|
- spec/builder/fixtures/build_source/foo/x.js
|
270
220
|
- spec/builder/fixtures/build_source/foo/y.js
|
271
|
-
- spec/builder/output_path_spec.rb
|
272
221
|
- spec/grammar/alias_spec.rb
|
273
222
|
- spec/grammar/and_spec.rb
|
274
223
|
- spec/grammar/array_spec.rb
|
@@ -292,6 +241,7 @@ files:
|
|
292
241
|
- spec/grammar/lasgn_spec.rb
|
293
242
|
- spec/grammar/line_spec.rb
|
294
243
|
- spec/grammar/lvar_spec.rb
|
244
|
+
- spec/grammar/masgn_spec.rb
|
295
245
|
- spec/grammar/module_spec.rb
|
296
246
|
- spec/grammar/nil_spec.rb
|
297
247
|
- spec/grammar/not_spec.rb
|
@@ -312,7 +262,7 @@ files:
|
|
312
262
|
- spec/spec_helper.rb
|
313
263
|
- opal.js
|
314
264
|
- opal.debug.js
|
315
|
-
homepage: http://
|
265
|
+
homepage: http://opalrb.org
|
316
266
|
licenses: []
|
317
267
|
post_install_message:
|
318
268
|
rdoc_options: []
|
@@ -332,7 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
332
282
|
version: '0'
|
333
283
|
requirements: []
|
334
284
|
rubyforge_project:
|
335
|
-
rubygems_version: 1.8.
|
285
|
+
rubygems_version: 1.8.11
|
336
286
|
signing_key:
|
337
287
|
specification_version: 3
|
338
288
|
summary: Ruby runtime and core library for javascript
|
@@ -348,7 +298,6 @@ test_files:
|
|
348
298
|
- spec/builder/fixtures/build_source/foo/b.rb
|
349
299
|
- spec/builder/fixtures/build_source/foo/x.js
|
350
300
|
- spec/builder/fixtures/build_source/foo/y.js
|
351
|
-
- spec/builder/output_path_spec.rb
|
352
301
|
- spec/grammar/alias_spec.rb
|
353
302
|
- spec/grammar/and_spec.rb
|
354
303
|
- spec/grammar/array_spec.rb
|
@@ -372,6 +321,7 @@ test_files:
|
|
372
321
|
- spec/grammar/lasgn_spec.rb
|
373
322
|
- spec/grammar/line_spec.rb
|
374
323
|
- spec/grammar/lvar_spec.rb
|
324
|
+
- spec/grammar/masgn_spec.rb
|
375
325
|
- spec/grammar/module_spec.rb
|
376
326
|
- spec/grammar/nil_spec.rb
|
377
327
|
- spec/grammar/not_spec.rb
|