opal 0.3.31 → 0.3.32
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/LICENSE +1 -1
- data/README.md +1 -1
- data/core/array.rb +24 -2
- data/core/basic_object.rb +49 -0
- data/core/boolean.rb +2 -2
- data/core/class.rb +2 -2
- data/core/enumerable.rb +27 -51
- data/core/hash.rb +159 -101
- data/core/json.rb +2 -1
- data/core/kernel.rb +9 -41
- data/core/load_order +1 -0
- data/core/numeric.rb +2 -2
- data/core/proc.rb +2 -2
- data/core/range.rb +2 -2
- data/core/runtime.js +9 -5
- data/core/string.rb +5 -5
- data/lib/opal.rb +2 -2
- data/lib/opal/parser.rb +59 -40
- data/lib/opal/scope.rb +4 -3
- data/lib/opal/version.rb +1 -1
- data/spec/core/array/sort_spec.rb +22 -0
- data/spec/core/runtime/class_hierarchy_spec.rb +3 -1
- metadata +6 -3
@@ -1,11 +1,13 @@
|
|
1
1
|
describe "Class Hierarchy" do
|
2
2
|
it "should have the right superclasses" do
|
3
|
-
|
3
|
+
BasicObject.superclass.should == nil
|
4
|
+
Object.superclass.should == BasicObject
|
4
5
|
Module.superclass.should == Object
|
5
6
|
Class.superclass.should == Object
|
6
7
|
end
|
7
8
|
|
8
9
|
it "should have the right classes" do
|
10
|
+
BasicObject.class.should == Class
|
9
11
|
Object.class.should == Class
|
10
12
|
Class.class.should == Class
|
11
13
|
Module.class.should == Class
|
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.32
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-17 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description: Ruby runtime and core library for javascript.
|
15
15
|
email: adam.beynon@gmail.com
|
@@ -28,6 +28,7 @@ files:
|
|
28
28
|
- bin/opal
|
29
29
|
- core/alpha.rb
|
30
30
|
- core/array.rb
|
31
|
+
- core/basic_object.rb
|
31
32
|
- core/boolean.rb
|
32
33
|
- core/class.rb
|
33
34
|
- core/comparable.rb
|
@@ -114,6 +115,7 @@ files:
|
|
114
115
|
- spec/core/array/shift_spec.rb
|
115
116
|
- spec/core/array/size_spec.rb
|
116
117
|
- spec/core/array/slice_spec.rb
|
118
|
+
- spec/core/array/sort_spec.rb
|
117
119
|
- spec/core/array/take_spec.rb
|
118
120
|
- spec/core/array/take_while_spec.rb
|
119
121
|
- spec/core/array/to_a_spec.rb
|
@@ -447,7 +449,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
447
449
|
version: '0'
|
448
450
|
requirements: []
|
449
451
|
rubyforge_project:
|
450
|
-
rubygems_version: 1.8.
|
452
|
+
rubygems_version: 1.8.11
|
451
453
|
signing_key:
|
452
454
|
specification_version: 3
|
453
455
|
summary: Ruby runtime and core library for javascript
|
@@ -504,6 +506,7 @@ test_files:
|
|
504
506
|
- spec/core/array/shift_spec.rb
|
505
507
|
- spec/core/array/size_spec.rb
|
506
508
|
- spec/core/array/slice_spec.rb
|
509
|
+
- spec/core/array/sort_spec.rb
|
507
510
|
- spec/core/array/take_spec.rb
|
508
511
|
- spec/core/array/take_while_spec.rb
|
509
512
|
- spec/core/array/to_a_spec.rb
|