opal 0.3.22 → 0.3.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. data/.travis.yml +1 -1
  2. data/Gemfile +1 -9
  3. data/README.md +46 -5
  4. data/Rakefile +4 -94
  5. data/core/array.rb +13 -46
  6. data/core/basic_object.rb +2 -12
  7. data/core/boolean.rb +1 -1
  8. data/core/browser.js +27 -1
  9. data/core/class.rb +1 -7
  10. data/core/enumerable.rb +3 -15
  11. data/core/error.rb +2 -4
  12. data/core/hash.rb +9 -18
  13. data/core/json.rb +5 -0
  14. data/core/kernel.rb +2 -21
  15. data/core/load_order +5 -7
  16. data/core/nil_class.rb +4 -0
  17. data/core/numeric.rb +0 -6
  18. data/core/object.rb +1 -5
  19. data/core/proc.rb +0 -4
  20. data/core/range.rb +10 -17
  21. data/core/regexp.rb +2 -6
  22. data/core/runtime.js +2 -26
  23. data/core/string.rb +28 -26
  24. data/core/struct.rb +0 -4
  25. data/core/{erb.rb → templates.rb} +6 -4
  26. data/core/time.rb +7 -19
  27. data/core/top_self.rb +2 -2
  28. data/lib/opal.rb +13 -2
  29. data/lib/opal/builder.rb +3 -3
  30. data/lib/opal/erb_parser.rb +3 -2
  31. data/lib/opal/parser.rb +10 -2
  32. data/lib/opal/rake_task.rb +10 -2
  33. data/lib/opal/scope.rb +6 -1
  34. data/lib/opal/version.rb +1 -1
  35. data/opal.gemspec +1 -3
  36. data/spec/core/array/constructor_spec.rb +0 -8
  37. data/spec/core/enumerable/drop_while_spec.rb +0 -4
  38. data/spec/core/enumerable/find_index_spec.rb +0 -4
  39. data/spec/core/enumerable/select_spec.rb +13 -0
  40. data/spec/core/kernel/respond_to_spec.rb +4 -0
  41. data/spec/core/string/empty_spec.rb +0 -1
  42. data/spec/core/string/include_spec.rb +0 -6
  43. data/spec/core/string/swapcase_spec.rb +0 -5
  44. data/spec/core/string/to_s_spec.rb +0 -7
  45. data/spec/core/string/to_str_spec.rb +0 -7
  46. data/spec/lib/erb_parser/simple.erb +1 -0
  47. data/spec/{grammar → lib/grammar}/alias_spec.rb +0 -0
  48. data/spec/{grammar → lib/grammar}/and_spec.rb +0 -0
  49. data/spec/{grammar → lib/grammar}/array_spec.rb +0 -0
  50. data/spec/{grammar → lib/grammar}/attrasgn_spec.rb +0 -0
  51. data/spec/{grammar → lib/grammar}/begin_spec.rb +0 -0
  52. data/spec/{grammar → lib/grammar}/block_spec.rb +0 -0
  53. data/spec/{grammar → lib/grammar}/break_spec.rb +0 -0
  54. data/spec/{grammar → lib/grammar}/call_spec.rb +0 -0
  55. data/spec/{grammar → lib/grammar}/class_spec.rb +0 -0
  56. data/spec/{grammar → lib/grammar}/const_spec.rb +0 -0
  57. data/spec/{grammar → lib/grammar}/cvar_spec.rb +0 -0
  58. data/spec/{grammar → lib/grammar}/def_spec.rb +0 -0
  59. data/spec/{grammar → lib/grammar}/false_spec.rb +0 -0
  60. data/spec/{grammar → lib/grammar}/file_spec.rb +0 -0
  61. data/spec/{grammar → lib/grammar}/gvar_spec.rb +0 -0
  62. data/spec/{grammar → lib/grammar}/hash_spec.rb +0 -0
  63. data/spec/{grammar → lib/grammar}/iasgn_spec.rb +0 -0
  64. data/spec/{grammar → lib/grammar}/if_spec.rb +0 -0
  65. data/spec/{grammar → lib/grammar}/iter_spec.rb +0 -0
  66. data/spec/{grammar → lib/grammar}/ivar_spec.rb +0 -0
  67. data/spec/{grammar → lib/grammar}/lambda_spec.rb +0 -0
  68. data/spec/{grammar → lib/grammar}/lasgn_spec.rb +0 -0
  69. data/spec/{grammar → lib/grammar}/line_spec.rb +0 -0
  70. data/spec/{grammar → lib/grammar}/lvar_spec.rb +0 -0
  71. data/spec/{grammar → lib/grammar}/masgn_spec.rb +0 -0
  72. data/spec/{grammar → lib/grammar}/module_spec.rb +0 -0
  73. data/spec/{grammar → lib/grammar}/nil_spec.rb +0 -0
  74. data/spec/{grammar → lib/grammar}/not_spec.rb +0 -0
  75. data/spec/{grammar → lib/grammar}/op_asgn1_spec.rb +0 -0
  76. data/spec/{grammar → lib/grammar}/op_asgn2_spec.rb +0 -0
  77. data/spec/{grammar → lib/grammar}/or_spec.rb +0 -0
  78. data/spec/{grammar → lib/grammar}/return_spec.rb +0 -0
  79. data/spec/{grammar → lib/grammar}/sclass_spec.rb +0 -0
  80. data/spec/{grammar → lib/grammar}/self_spec.rb +0 -0
  81. data/spec/{grammar → lib/grammar}/str_spec.rb +0 -0
  82. data/spec/{grammar → lib/grammar}/super_spec.rb +0 -0
  83. data/spec/{grammar → lib/grammar}/true_spec.rb +0 -0
  84. data/spec/{grammar → lib/grammar}/undef_spec.rb +0 -0
  85. data/spec/{grammar → lib/grammar}/unless_spec.rb +0 -0
  86. data/spec/{grammar → lib/grammar}/while_spec.rb +0 -0
  87. data/spec/{grammar → lib/grammar}/xstr_spec.rb +0 -0
  88. data/spec/{grammar → lib/grammar}/yield_spec.rb +0 -0
  89. data/spec/{parser → lib/parser}/simple_spec.rb +1 -1
  90. data/spec/opal/erb/erb_spec.rb +10 -2
  91. data/spec/opal/string/demodulize_spec.rb +10 -0
  92. data/spec/opal/string/underscore_spec.rb +17 -0
  93. data/spec/spec_helper.rb +1 -1
  94. data/vendor/opal_spec_runner.js +43 -0
  95. metadata +99 -114
  96. data/.rspec +0 -2
  97. data/docs/index.md +0 -616
  98. data/docs/post.html +0 -3
  99. data/docs/pre.html +0 -35
  100. data/docs/try.html +0 -52
  101. data/spec/core/string/fixtures/classes.rb +0 -3
  102. data/spec/opal/array/subclassing_spec.rb +0 -32
  103. data/spec/opal/exception/subclassing_spec.rb +0 -17
  104. data/spec/opal/string/subclassing_spec.rb +0 -26
data/lib/opal/scope.rb CHANGED
@@ -88,6 +88,10 @@ module Opal
88
88
  def proto
89
89
  "#{ @name }_prototype"
90
90
  end
91
+
92
+ def should_donate?
93
+ @type == :module or @name.to_s == 'Object'
94
+ end
91
95
 
92
96
  ##
93
97
  # Vars to use inside each scope
@@ -115,7 +119,8 @@ module Opal
115
119
  def to_donate_methods
116
120
  out = ""
117
121
 
118
- unless @methods.empty?
122
+ if should_donate? and !@methods.empty?
123
+ # unless @methods.empty?
119
124
  out += "%s;#{@name}._donate([%s]);" %
120
125
  [@parser.parser_indent, @methods.map(&:inspect).join(', ')]
121
126
  end
data/lib/opal/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Opal
2
- VERSION = "0.3.22"
2
+ VERSION = '0.3.25'
3
3
  end
data/opal.gemspec CHANGED
@@ -13,7 +13,5 @@ Gem::Specification.new do |s|
13
13
  s.files = `git ls-files`.split("\n")
14
14
  s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
15
15
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
- s.require_paths = ['lib']
17
-
18
- s.add_development_dependency 'rspec', '~> 2.10'
16
+ s.require_paths = ['lib']
19
17
  end
@@ -11,10 +11,6 @@ describe "Array.[]" do
11
11
  it "returns a new array populated with the given elements" do
12
12
  obj = Object.new
13
13
  Array.[](5, true, nil, 'a', "Ruby", obj).should == [5, true, nil, "a", "Ruby", obj]
14
-
15
- a = ArraySpecs::MyArray.[](5, true, nil, 'a', "Ruby", obj)
16
- a.should be_kind_of(ArraySpecs::MyArray)
17
- a.inspect.should == [5, true, nil, "a", "Ruby", obj].inspect
18
14
  end
19
15
  end
20
16
 
@@ -22,9 +18,5 @@ describe "Array[]" do
22
18
  it "is a synonym for .[]" do
23
19
  obj = Object.new
24
20
  Array[5, true, nil, 'a', "Ruby", obj].should == [5, true, nil, "a", "Ruby", obj]
25
-
26
- a = ArraySpecs::MyArray[5, true, nil, 'a', "Ruby", obj]
27
- a.should be_kind_of(ArraySpecs::MyArray)
28
- a.inspect.should == [5, true, nil, "a", "Ruby", obj].inspect
29
21
  end
30
22
  end
@@ -3,10 +3,6 @@ describe "Enumerable#drop_while" do
3
3
  @enum = EnumerableSpecs::Numerous.new(3, 2, 1, :go)
4
4
  end
5
5
 
6
- it "returns an Enumerator if no block given" do
7
- @enum.drop_while.should be_kind_of(Enumerator)
8
- end
9
-
10
6
  it "returns no/all elements for {true/false} block" do
11
7
  @enum.drop_while {true}.should == []
12
8
  @enum.drop_while {false}.should == @enum.to_a
@@ -38,8 +38,4 @@ describe "Enumerable#find_index" do
38
38
  it "ignores the block if an argument is given" do
39
39
  @numerous.find_index(-1) {|e| true }.should == nil
40
40
  end
41
-
42
- it "returns an Enumerator if no block given" do
43
- @numerous.find_index.should be_kind_of(Enumerator)
44
- end
45
41
  end
@@ -0,0 +1,13 @@
1
+ describe "Enumerable#select" do
2
+ before :each do
3
+ ScratchPad.record []
4
+ @elements = [1, 2, 3, 4, 5, 6, 7, 8, 9]
5
+ @numerous = EnumerableSpecs::Numerous.new(*@elements)
6
+ end
7
+
8
+ it "returns all elements for which the block is not false" do
9
+ @numerous.select {|i| i % 3 == 0 }.should == [3, 6, 9]
10
+ @numerous.select {|i| true }.should == @elements
11
+ @numerous.select {|i| false }.should == []
12
+ end
13
+ end
@@ -21,4 +21,8 @@ describe "Kernel#respond_to?" do
21
21
  before :each do
22
22
  @a = RespondToSpecs.new
23
23
  end
24
+
25
+ it "indicates if an object responds to a message" do
26
+ @a.respond_to?(:undefed_method).should be_false
27
+ end
24
28
  end
@@ -3,6 +3,5 @@ describe "String#empty?" do
3
3
  "hello".empty?.should == false
4
4
  " ".empty?.should == false
5
5
  "".empty?.should == true
6
- StringSpecs::MyString.new("").empty?.should == true
7
6
  end
8
7
  end
@@ -3,10 +3,4 @@ describe "String#include?" do
3
3
  "hello".include?("lo").should == true
4
4
  "hello".include?("ol").should == false
5
5
  end
6
-
7
- it "ignores subclass differences" do
8
- "hello".include?(StringSpecs::MyString.new("lo")).should == true
9
- StringSpecs::MyString.new("hello").include?("lo").should == true
10
- StringSpecs::MyString.new("hello").include?(StringSpecs::MyString.new("lo")).should == true
11
- end
12
6
  end
@@ -10,9 +10,4 @@ describe "String#swapcase" do
10
10
  "ärger".swapcase.should == "äRGER"
11
11
  "BÄR".swapcase.should == "bÄr"
12
12
  end
13
-
14
- it "returns subclass instances when called on a subclass" do
15
- StringSpecs::MyString.new("").swapcase.should be_kind_of(StringSpecs::MyString)
16
- StringSpecs::MyString.new("hello").swapcase.should be_kind_of(StringSpecs::MyString)
17
- end
18
13
  end
@@ -3,11 +3,4 @@ describe "String#to_s" do
3
3
  a = "a string"
4
4
  a.should equal(a.to_s)
5
5
  end
6
-
7
- it "returns a new instance of String when called on a subclass" do
8
- a = StringSpecs::MyString.new("a string")
9
- s = a.to_s
10
- s.should == "a string"
11
- s.should be_kind_of(String)
12
- end
13
6
  end
@@ -3,11 +3,4 @@ describe "String#to_str" do
3
3
  a = "a string"
4
4
  a.should equal(a.to_str)
5
5
  end
6
-
7
- it "returns a new instance of String when called on a subclass" do
8
- a = StringSpecs::MyString.new("a string")
9
- s = a.to_str
10
- s.should == "a string"
11
- s.should be_kind_of(String)
12
- end
13
6
  end
@@ -0,0 +1 @@
1
+ Hello world
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -19,7 +19,7 @@ describe "Opal::Parser" do
19
19
  it "should parse constant lookups" do
20
20
  opal_eval("Object").should == Object
21
21
  opal_eval("Array").should == Array
22
- opal_eval("Spec::ExampleGroup").should == Spec::ExampleGroup
22
+ opal_eval("OpalSpec::ExampleGroup").should == OpalSpec::ExampleGroup
23
23
  end
24
24
 
25
25
  it "should parse class and module definitions" do
@@ -1,7 +1,10 @@
1
- describe "ERB" do
1
+ describe 'ERB' do
2
2
  before do
3
3
  opal_eval(Opal::ERBParser.new.compile("<div><%= @some_data %></div>", "simple_test"))
4
4
  @simple = ERB['simple_test']
5
+
6
+ opal_eval(Opal::ERBParser.new.compile('<div class="foo">hello <%= "there " + @name %></div>', "quoted_test"))
7
+ @quoted = ERB['quoted_test']
5
8
  end
6
9
 
7
10
  it "should create an instance for each template by its basename" do
@@ -10,6 +13,11 @@ describe "ERB" do
10
13
 
11
14
  it "should execute the body and return the result as a string, with #result" do
12
15
  @some_data = "hello"
13
- @simple.result(self).should == "<div>hello</div>"
16
+ @simple.render(self).should == "<div>hello</div>"
17
+ end
18
+
19
+ it "should accept quotes in strings" do
20
+ @name = "adam"
21
+ @quoted.render(self).should == "<div class=\"foo\">hello there adam</div>"
14
22
  end
15
23
  end
@@ -0,0 +1,10 @@
1
+ describe "String#demodulize" do
2
+ it "removes any preceding module name from the string" do
3
+ "Foo::Bar".demodulize.should == "Bar"
4
+ "Foo::Bar::Baz".demodulize.should == "Baz"
5
+ end
6
+
7
+ it "has no affect on strings with no module seperator" do
8
+ "SomeClassName".demodulize.should == "SomeClassName"
9
+ end
10
+ end
@@ -0,0 +1,17 @@
1
+ describe "String#underscore" do
2
+ it "replaces '-' in dasherized strings with underscores" do
3
+ "well-hello-there".underscore.should == "well_hello_there"
4
+ end
5
+
6
+ it "converts single all-upcase strings into lowercase" do
7
+ "OMG".underscore.should == "omg"
8
+ end
9
+
10
+ it "splits word bounderies and seperates using underscore" do
11
+ "AdamBeynon".underscore.should == "adam_beynon"
12
+ end
13
+
14
+ it "does not split when 2 or more capitalized letters together" do
15
+ "HTMLParser".underscore.should == "html_parser"
16
+ end
17
+ end
data/spec/spec_helper.rb CHANGED
@@ -11,4 +11,4 @@ module Kernel
11
11
  end
12
12
  end
13
13
 
14
- Spec::Runner.autorun
14
+ OpalSpec::Runner.autorun
@@ -0,0 +1,43 @@
1
+ var args = phantom.args;
2
+
3
+ if (args.length !== 1) {
4
+ console.log("Usage: " + phantom.scriptName + " <URL>");
5
+ phantom.exit(1);
6
+ }
7
+
8
+ var page = require('webpage').create();
9
+
10
+ page.onConsoleMessage = function(msg) {
11
+ console.log(msg);
12
+ };
13
+
14
+ page.onInitialized = function() {
15
+ page.evaluate(function () {
16
+ window.OPAL_SPEC_PHANTOM = true;
17
+ });
18
+ };
19
+
20
+ page.open(args[0], function(status) {
21
+ if (status !== 'success') {
22
+ console.error("Cannot load: " + args[0]);
23
+ phantom.exit(1);
24
+ } else {
25
+ var timeout = parseInt(args[1] || 60000, 10);
26
+ var start = Date.now();
27
+ var interval = setInterval(function() {
28
+ if (Date.now() > start + timeout) {
29
+ console.error("Specs timed out");
30
+ phantom.exit(124);
31
+ } else {
32
+ var code = page.evaluate(function() {
33
+ return window.OPAL_SPEC_CODE;
34
+ });
35
+
36
+ if (code === 0 || code === 1) {
37
+ clearInterval(interval);
38
+ phantom.exit(code);
39
+ }
40
+ }
41
+ }, 500);
42
+ }
43
+ });
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.22
4
+ version: 0.3.25
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,19 +9,8 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-22 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: rspec
16
- requirement: &70264679995160 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: '2.10'
22
- type: :development
23
- prerelease: false
24
- version_requirements: *70264679995160
12
+ date: 2012-09-17 00:00:00.000000000 Z
13
+ dependencies: []
25
14
  description: Ruby runtime and core library for javascript.
26
15
  email: adam@adambeynon.com
27
16
  executables:
@@ -30,7 +19,6 @@ extensions: []
30
19
  extra_rdoc_files: []
31
20
  files:
32
21
  - .gitignore
33
- - .rspec
34
22
  - .travis.yml
35
23
  - Gemfile
36
24
  - LICENSE
@@ -47,7 +35,6 @@ files:
47
35
  - core/comparable.rb
48
36
  - core/enumerable.rb
49
37
  - core/enumerator.rb
50
- - core/erb.rb
51
38
  - core/error.rb
52
39
  - core/hash.rb
53
40
  - core/json.rb
@@ -65,12 +52,9 @@ files:
65
52
  - core/string.rb
66
53
  - core/strscan.rb
67
54
  - core/struct.rb
55
+ - core/templates.rb
68
56
  - core/time.rb
69
57
  - core/top_self.rb
70
- - docs/index.md
71
- - docs/post.html
72
- - docs/pre.html
73
- - docs/try.html
74
58
  - lib/opal.rb
75
59
  - lib/opal/builder.rb
76
60
  - lib/opal/erb_parser.rb
@@ -140,6 +124,7 @@ files:
140
124
  - spec/core/enumerable/first_spec.rb
141
125
  - spec/core/enumerable/fixtures/classes.rb
142
126
  - spec/core/enumerable/grep_spec.rb
127
+ - spec/core/enumerable/select_spec.rb
143
128
  - spec/core/enumerable/take_spec.rb
144
129
  - spec/core/enumerable/to_a_spec.rb
145
130
  - spec/core/false/and_spec.rb
@@ -222,7 +207,6 @@ files:
222
207
  - spec/core/string/element_reference_spec.rb
223
208
  - spec/core/string/empty_spec.rb
224
209
  - spec/core/string/end_with_spec.rb
225
- - spec/core/string/fixtures/classes.rb
226
210
  - spec/core/string/gsub_spec.rb
227
211
  - spec/core/string/include_spec.rb
228
212
  - spec/core/string/intern_spec.rb
@@ -265,48 +249,6 @@ files:
265
249
  - spec/core/true/or_spec.rb
266
250
  - spec/core/true/to_s_spec.rb
267
251
  - spec/core/true/xor_spec.rb
268
- - spec/grammar/alias_spec.rb
269
- - spec/grammar/and_spec.rb
270
- - spec/grammar/array_spec.rb
271
- - spec/grammar/attrasgn_spec.rb
272
- - spec/grammar/begin_spec.rb
273
- - spec/grammar/block_spec.rb
274
- - spec/grammar/break_spec.rb
275
- - spec/grammar/call_spec.rb
276
- - spec/grammar/class_spec.rb
277
- - spec/grammar/const_spec.rb
278
- - spec/grammar/cvar_spec.rb
279
- - spec/grammar/def_spec.rb
280
- - spec/grammar/false_spec.rb
281
- - spec/grammar/file_spec.rb
282
- - spec/grammar/gvar_spec.rb
283
- - spec/grammar/hash_spec.rb
284
- - spec/grammar/iasgn_spec.rb
285
- - spec/grammar/if_spec.rb
286
- - spec/grammar/iter_spec.rb
287
- - spec/grammar/ivar_spec.rb
288
- - spec/grammar/lambda_spec.rb
289
- - spec/grammar/lasgn_spec.rb
290
- - spec/grammar/line_spec.rb
291
- - spec/grammar/lvar_spec.rb
292
- - spec/grammar/masgn_spec.rb
293
- - spec/grammar/module_spec.rb
294
- - spec/grammar/nil_spec.rb
295
- - spec/grammar/not_spec.rb
296
- - spec/grammar/op_asgn1_spec.rb
297
- - spec/grammar/op_asgn2_spec.rb
298
- - spec/grammar/or_spec.rb
299
- - spec/grammar/return_spec.rb
300
- - spec/grammar/sclass_spec.rb
301
- - spec/grammar/self_spec.rb
302
- - spec/grammar/str_spec.rb
303
- - spec/grammar/super_spec.rb
304
- - spec/grammar/true_spec.rb
305
- - spec/grammar/undef_spec.rb
306
- - spec/grammar/unless_spec.rb
307
- - spec/grammar/while_spec.rb
308
- - spec/grammar/xstr_spec.rb
309
- - spec/grammar/yield_spec.rb
310
252
  - spec/index.html
311
253
  - spec/language/alias_spec.rb
312
254
  - spec/language/and_spec.rb
@@ -337,13 +279,55 @@ files:
337
279
  - spec/language/variables_spec.rb
338
280
  - spec/language/while_spec.rb
339
281
  - spec/language/yield_spec.rb
340
- - spec/opal/array/subclassing_spec.rb
282
+ - spec/lib/erb_parser/simple.erb
283
+ - spec/lib/grammar/alias_spec.rb
284
+ - spec/lib/grammar/and_spec.rb
285
+ - spec/lib/grammar/array_spec.rb
286
+ - spec/lib/grammar/attrasgn_spec.rb
287
+ - spec/lib/grammar/begin_spec.rb
288
+ - spec/lib/grammar/block_spec.rb
289
+ - spec/lib/grammar/break_spec.rb
290
+ - spec/lib/grammar/call_spec.rb
291
+ - spec/lib/grammar/class_spec.rb
292
+ - spec/lib/grammar/const_spec.rb
293
+ - spec/lib/grammar/cvar_spec.rb
294
+ - spec/lib/grammar/def_spec.rb
295
+ - spec/lib/grammar/false_spec.rb
296
+ - spec/lib/grammar/file_spec.rb
297
+ - spec/lib/grammar/gvar_spec.rb
298
+ - spec/lib/grammar/hash_spec.rb
299
+ - spec/lib/grammar/iasgn_spec.rb
300
+ - spec/lib/grammar/if_spec.rb
301
+ - spec/lib/grammar/iter_spec.rb
302
+ - spec/lib/grammar/ivar_spec.rb
303
+ - spec/lib/grammar/lambda_spec.rb
304
+ - spec/lib/grammar/lasgn_spec.rb
305
+ - spec/lib/grammar/line_spec.rb
306
+ - spec/lib/grammar/lvar_spec.rb
307
+ - spec/lib/grammar/masgn_spec.rb
308
+ - spec/lib/grammar/module_spec.rb
309
+ - spec/lib/grammar/nil_spec.rb
310
+ - spec/lib/grammar/not_spec.rb
311
+ - spec/lib/grammar/op_asgn1_spec.rb
312
+ - spec/lib/grammar/op_asgn2_spec.rb
313
+ - spec/lib/grammar/or_spec.rb
314
+ - spec/lib/grammar/return_spec.rb
315
+ - spec/lib/grammar/sclass_spec.rb
316
+ - spec/lib/grammar/self_spec.rb
317
+ - spec/lib/grammar/str_spec.rb
318
+ - spec/lib/grammar/super_spec.rb
319
+ - spec/lib/grammar/true_spec.rb
320
+ - spec/lib/grammar/undef_spec.rb
321
+ - spec/lib/grammar/unless_spec.rb
322
+ - spec/lib/grammar/while_spec.rb
323
+ - spec/lib/grammar/xstr_spec.rb
324
+ - spec/lib/grammar/yield_spec.rb
325
+ - spec/lib/parser/simple_spec.rb
341
326
  - spec/opal/array/to_json_spec.rb
342
327
  - spec/opal/boolean/singleton_class_spec.rb
343
328
  - spec/opal/boolean/to_json_spec.rb
344
329
  - spec/opal/class/bridge_class_spec.rb
345
330
  - spec/opal/erb/erb_spec.rb
346
- - spec/opal/exception/subclassing_spec.rb
347
331
  - spec/opal/hash/to_json_spec.rb
348
332
  - spec/opal/hash/to_native_spec.rb
349
333
  - spec/opal/json/parse_spec.rb
@@ -356,12 +340,13 @@ files:
356
340
  - spec/opal/runtime/defined_spec.rb
357
341
  - spec/opal/runtime/method_missing_spec.rb
358
342
  - spec/opal/runtime/super_spec.rb
359
- - spec/opal/string/subclassing_spec.rb
343
+ - spec/opal/string/demodulize_spec.rb
360
344
  - spec/opal/string/to_json_spec.rb
345
+ - spec/opal/string/underscore_spec.rb
361
346
  - spec/opal/strscan/check_spec.rb
362
347
  - spec/opal/strscan/scan_spec.rb
363
- - spec/parser/simple_spec.rb
364
348
  - spec/spec_helper.rb
349
+ - vendor/opal_spec_runner.js
365
350
  homepage: http://opalrb.org
366
351
  licenses: []
367
352
  post_install_message:
@@ -445,6 +430,7 @@ test_files:
445
430
  - spec/core/enumerable/first_spec.rb
446
431
  - spec/core/enumerable/fixtures/classes.rb
447
432
  - spec/core/enumerable/grep_spec.rb
433
+ - spec/core/enumerable/select_spec.rb
448
434
  - spec/core/enumerable/take_spec.rb
449
435
  - spec/core/enumerable/to_a_spec.rb
450
436
  - spec/core/false/and_spec.rb
@@ -527,7 +513,6 @@ test_files:
527
513
  - spec/core/string/element_reference_spec.rb
528
514
  - spec/core/string/empty_spec.rb
529
515
  - spec/core/string/end_with_spec.rb
530
- - spec/core/string/fixtures/classes.rb
531
516
  - spec/core/string/gsub_spec.rb
532
517
  - spec/core/string/include_spec.rb
533
518
  - spec/core/string/intern_spec.rb
@@ -570,48 +555,6 @@ test_files:
570
555
  - spec/core/true/or_spec.rb
571
556
  - spec/core/true/to_s_spec.rb
572
557
  - spec/core/true/xor_spec.rb
573
- - spec/grammar/alias_spec.rb
574
- - spec/grammar/and_spec.rb
575
- - spec/grammar/array_spec.rb
576
- - spec/grammar/attrasgn_spec.rb
577
- - spec/grammar/begin_spec.rb
578
- - spec/grammar/block_spec.rb
579
- - spec/grammar/break_spec.rb
580
- - spec/grammar/call_spec.rb
581
- - spec/grammar/class_spec.rb
582
- - spec/grammar/const_spec.rb
583
- - spec/grammar/cvar_spec.rb
584
- - spec/grammar/def_spec.rb
585
- - spec/grammar/false_spec.rb
586
- - spec/grammar/file_spec.rb
587
- - spec/grammar/gvar_spec.rb
588
- - spec/grammar/hash_spec.rb
589
- - spec/grammar/iasgn_spec.rb
590
- - spec/grammar/if_spec.rb
591
- - spec/grammar/iter_spec.rb
592
- - spec/grammar/ivar_spec.rb
593
- - spec/grammar/lambda_spec.rb
594
- - spec/grammar/lasgn_spec.rb
595
- - spec/grammar/line_spec.rb
596
- - spec/grammar/lvar_spec.rb
597
- - spec/grammar/masgn_spec.rb
598
- - spec/grammar/module_spec.rb
599
- - spec/grammar/nil_spec.rb
600
- - spec/grammar/not_spec.rb
601
- - spec/grammar/op_asgn1_spec.rb
602
- - spec/grammar/op_asgn2_spec.rb
603
- - spec/grammar/or_spec.rb
604
- - spec/grammar/return_spec.rb
605
- - spec/grammar/sclass_spec.rb
606
- - spec/grammar/self_spec.rb
607
- - spec/grammar/str_spec.rb
608
- - spec/grammar/super_spec.rb
609
- - spec/grammar/true_spec.rb
610
- - spec/grammar/undef_spec.rb
611
- - spec/grammar/unless_spec.rb
612
- - spec/grammar/while_spec.rb
613
- - spec/grammar/xstr_spec.rb
614
- - spec/grammar/yield_spec.rb
615
558
  - spec/index.html
616
559
  - spec/language/alias_spec.rb
617
560
  - spec/language/and_spec.rb
@@ -642,13 +585,55 @@ test_files:
642
585
  - spec/language/variables_spec.rb
643
586
  - spec/language/while_spec.rb
644
587
  - spec/language/yield_spec.rb
645
- - spec/opal/array/subclassing_spec.rb
588
+ - spec/lib/erb_parser/simple.erb
589
+ - spec/lib/grammar/alias_spec.rb
590
+ - spec/lib/grammar/and_spec.rb
591
+ - spec/lib/grammar/array_spec.rb
592
+ - spec/lib/grammar/attrasgn_spec.rb
593
+ - spec/lib/grammar/begin_spec.rb
594
+ - spec/lib/grammar/block_spec.rb
595
+ - spec/lib/grammar/break_spec.rb
596
+ - spec/lib/grammar/call_spec.rb
597
+ - spec/lib/grammar/class_spec.rb
598
+ - spec/lib/grammar/const_spec.rb
599
+ - spec/lib/grammar/cvar_spec.rb
600
+ - spec/lib/grammar/def_spec.rb
601
+ - spec/lib/grammar/false_spec.rb
602
+ - spec/lib/grammar/file_spec.rb
603
+ - spec/lib/grammar/gvar_spec.rb
604
+ - spec/lib/grammar/hash_spec.rb
605
+ - spec/lib/grammar/iasgn_spec.rb
606
+ - spec/lib/grammar/if_spec.rb
607
+ - spec/lib/grammar/iter_spec.rb
608
+ - spec/lib/grammar/ivar_spec.rb
609
+ - spec/lib/grammar/lambda_spec.rb
610
+ - spec/lib/grammar/lasgn_spec.rb
611
+ - spec/lib/grammar/line_spec.rb
612
+ - spec/lib/grammar/lvar_spec.rb
613
+ - spec/lib/grammar/masgn_spec.rb
614
+ - spec/lib/grammar/module_spec.rb
615
+ - spec/lib/grammar/nil_spec.rb
616
+ - spec/lib/grammar/not_spec.rb
617
+ - spec/lib/grammar/op_asgn1_spec.rb
618
+ - spec/lib/grammar/op_asgn2_spec.rb
619
+ - spec/lib/grammar/or_spec.rb
620
+ - spec/lib/grammar/return_spec.rb
621
+ - spec/lib/grammar/sclass_spec.rb
622
+ - spec/lib/grammar/self_spec.rb
623
+ - spec/lib/grammar/str_spec.rb
624
+ - spec/lib/grammar/super_spec.rb
625
+ - spec/lib/grammar/true_spec.rb
626
+ - spec/lib/grammar/undef_spec.rb
627
+ - spec/lib/grammar/unless_spec.rb
628
+ - spec/lib/grammar/while_spec.rb
629
+ - spec/lib/grammar/xstr_spec.rb
630
+ - spec/lib/grammar/yield_spec.rb
631
+ - spec/lib/parser/simple_spec.rb
646
632
  - spec/opal/array/to_json_spec.rb
647
633
  - spec/opal/boolean/singleton_class_spec.rb
648
634
  - spec/opal/boolean/to_json_spec.rb
649
635
  - spec/opal/class/bridge_class_spec.rb
650
636
  - spec/opal/erb/erb_spec.rb
651
- - spec/opal/exception/subclassing_spec.rb
652
637
  - spec/opal/hash/to_json_spec.rb
653
638
  - spec/opal/hash/to_native_spec.rb
654
639
  - spec/opal/json/parse_spec.rb
@@ -661,9 +646,9 @@ test_files:
661
646
  - spec/opal/runtime/defined_spec.rb
662
647
  - spec/opal/runtime/method_missing_spec.rb
663
648
  - spec/opal/runtime/super_spec.rb
664
- - spec/opal/string/subclassing_spec.rb
649
+ - spec/opal/string/demodulize_spec.rb
665
650
  - spec/opal/string/to_json_spec.rb
651
+ - spec/opal/string/underscore_spec.rb
666
652
  - spec/opal/strscan/check_spec.rb
667
653
  - spec/opal/strscan/scan_spec.rb
668
- - spec/parser/simple_spec.rb
669
654
  - spec/spec_helper.rb