opal 0.3.43 → 0.3.44

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. data/CHANGELOG.md +19 -0
  2. data/README.md +1 -0
  3. data/Rakefile +29 -19
  4. data/examples/native/Gemfile +3 -0
  5. data/examples/native/README.md +17 -0
  6. data/examples/native/app/app.rb +38 -0
  7. data/examples/native/config.ru +8 -0
  8. data/examples/native/index.html.erb +12 -0
  9. data/lib/opal/lexer.rb +5 -1
  10. data/lib/opal/parser.rb +36 -10
  11. data/lib/opal/processor.rb +10 -9
  12. data/lib/opal/server.rb +17 -7
  13. data/lib/opal/target_scope.rb +2 -2
  14. data/lib/opal/version.rb +1 -1
  15. data/opal/opal-browser/script_loader.rb +8 -13
  16. data/opal/opal.rb +23 -5
  17. data/opal/opal/array.rb +128 -14
  18. data/opal/opal/boolean.rb +1 -1
  19. data/opal/opal/class.rb +92 -18
  20. data/opal/opal/enumerable.rb +90 -0
  21. data/opal/opal/error.rb +1 -1
  22. data/opal/opal/hash.rb +2 -2
  23. data/opal/opal/kernel.rb +3 -3
  24. data/opal/opal/numeric.rb +1 -1
  25. data/opal/opal/proc.rb +1 -1
  26. data/opal/opal/regexp.rb +31 -31
  27. data/opal/opal/runtime.js +181 -69
  28. data/opal/opal/string.rb +561 -40
  29. data/opal/opal/time.rb +1 -1
  30. data/opal/rbconfig.rb +17 -3
  31. data/opal/strscan.rb +41 -5
  32. data/spec/opal/class/new_spec.rb +27 -0
  33. data/spec/opal/native_spec.rb +127 -0
  34. data/spec/ospec/runner.rb +0 -2
  35. data/spec/parser/strscan/get_byte_spec.rb +29 -0
  36. data/spec/parser/strscan/skip_spec.rb +40 -0
  37. data/spec/rubyspec/core/array/each_spec.rb +1 -1
  38. data/spec/rubyspec/core/array/intersection_spec.rb +5 -0
  39. data/spec/rubyspec/core/array/max_spec.rb +32 -0
  40. data/spec/rubyspec/core/array/min_spec.rb +32 -0
  41. data/spec/rubyspec/core/array/minus_spec.rb +7 -5
  42. data/spec/rubyspec/core/array/multiply_spec.rb +1 -1
  43. data/spec/rubyspec/core/array/plus_spec.rb +1 -1
  44. data/spec/rubyspec/core/array/pop_spec.rb +1 -1
  45. data/spec/rubyspec/core/array/push_spec.rb +1 -1
  46. data/spec/rubyspec/core/array/rassoc_spec.rb +1 -1
  47. data/spec/rubyspec/core/array/reject_spec.rb +2 -2
  48. data/spec/rubyspec/core/array/reverse_each_spec.rb +2 -2
  49. data/spec/rubyspec/core/array/rindex_spec.rb +2 -2
  50. data/spec/rubyspec/core/array/select_spec.rb +1 -1
  51. data/spec/rubyspec/core/array/shift_spec.rb +1 -1
  52. data/spec/rubyspec/core/array/slice_spec.rb +1 -1
  53. data/spec/rubyspec/core/array/sort_spec.rb +15 -15
  54. data/spec/rubyspec/core/array/to_a_spec.rb +1 -1
  55. data/spec/rubyspec/core/array/to_ary_spec.rb +1 -1
  56. data/spec/rubyspec/core/array/uniq_spec.rb +1 -1
  57. data/spec/rubyspec/core/array/unshift_spec.rb +1 -1
  58. data/spec/rubyspec/core/array/zip_spec.rb +1 -1
  59. data/spec/rubyspec/core/enumerable/select_spec.rb +4 -1
  60. data/spec/rubyspec/core/module/const_defined_spec.rb +86 -0
  61. data/spec/rubyspec/core/module/const_get_spec.rb +55 -3
  62. data/spec/rubyspec/core/module/const_set_spec.rb +2 -2
  63. data/spec/rubyspec/core/module/constants_spec.rb +49 -0
  64. data/spec/rubyspec/core/regexp/match_spec.rb +66 -1
  65. data/spec/rubyspec/core/string/center_spec.rb +71 -0
  66. data/spec/rubyspec/core/string/chomp_spec.rb +6 -1
  67. data/spec/rubyspec/core/string/clone_spec.rb +8 -0
  68. data/spec/rubyspec/core/string/dup_spec.rb +8 -0
  69. data/spec/rubyspec/core/string/end_with_spec.rb +5 -1
  70. data/spec/rubyspec/core/string/gsub_spec.rb +15 -1
  71. data/spec/rubyspec/core/string/lines_spec.rb +9 -0
  72. data/spec/rubyspec/core/string/ljust_spec.rb +17 -0
  73. data/spec/rubyspec/core/string/match_spec.rb +25 -3
  74. data/spec/rubyspec/core/string/rindex_spec.rb +50 -0
  75. data/spec/rubyspec/core/string/rjust_spec.rb +17 -0
  76. data/spec/rubyspec/core/string/scan_spec.rb +66 -0
  77. data/spec/rubyspec/core/string/sub_spec.rb +17 -1
  78. data/spec/rubyspec/core/string/tr_s_spec.rb +31 -0
  79. data/spec/rubyspec/core/string/tr_spec.rb +31 -0
  80. data/spec/rubyspec/fixtures/constants.rb +6 -0
  81. data/spec/rubyspec/language/class_spec.rb +4 -8
  82. data/spec/rubyspec/language/numbers_spec.rb +10 -4
  83. data/spec/rubyspec/language/predefined_spec.rb +69 -2
  84. data/spec/rubyspec/library/rbconfig/config_spec.rb +47 -0
  85. data/spec/rubyspec/spec_helper.rb +6 -0
  86. metadata +46 -25
  87. data/opal/opal-eventable.rb +0 -26
  88. data/opal/opal/native.rb +0 -115
  89. data/spec/opal/eventable_spec.rb +0 -75
  90. data/spec/opal/native/element_reference_spec.rb +0 -40
  91. data/spec/opal/native/equal_spec.rb +0 -17
  92. data/spec/opal/native/fixtures/classes.rb +0 -27
  93. data/spec/opal/native/global_spec.rb +0 -12
  94. data/spec/opal/native/initialize_spec.rb +0 -8
  95. data/spec/opal/native/method_missing_spec.rb +0 -53
  96. data/spec/opal/native/to_native_spec.rb +0 -8
  97. data/spec/rubyspec/core/string/demodulize_spec.rb +0 -10
  98. data/spec/rubyspec/core/string/underscore_spec.rb +0 -17
@@ -12,6 +12,10 @@ describe "String#sub with pattern, replacement" do
12
12
  "Hello".sub(/h/i, "j").should == "jello"
13
13
  "hello".sub(/H/i, "j").should == "jello"
14
14
  end
15
+
16
+ it "converts and supports back references in replacement string" do
17
+ "javascript".sub(/(j).*(s).*/, '.\\1\\2').should == '.js'
18
+ end
15
19
  end
16
20
 
17
21
  describe "String#sub with pattern and block" do
@@ -19,4 +23,16 @@ describe "String#sub with pattern and block" do
19
23
  "hi".sub(/./) { |s| s + ' ' }.should == "h i"
20
24
  "hi!".sub(/(.)(.)/) { |*a| a.inspect }.should == '["hi"]!'
21
25
  end
22
- end
26
+
27
+ it "should set the global match variable $~ inside block" do
28
+ match_datas = []
29
+ "hello".sub(/(.)./) { match_datas << $~; $~[1].succ }.should == "illo"
30
+ match_datas.length.should == 1
31
+ match_datas[0].length.should == 2
32
+ match_datas[0].should == ["he", "h"]
33
+ end
34
+
35
+ it "should set the global match variable $& inside block" do
36
+ "hello".sub(/./) { "#{$&} " }.should == "h ello"
37
+ end
38
+ end
@@ -0,0 +1,31 @@
1
+ describe "String#tr_s" do
2
+ it "replaces occurrences of character with substitute, dropping repeating substitutes" do
3
+ # identity checks (no substitution)
4
+ 'abc'.tr_s('', 'a').should == 'abc'
5
+ 'aabbcc'.tr_s('', 'a').should == 'aabbcc'
6
+
7
+ # single char substitutions
8
+ 'a'.tr_s('a', 'b').should == 'b'
9
+ 'aa'.tr_s('a', 'b').should == 'b'
10
+ 'bbabcbb'.tr_s('b', 'z').should == 'zazcz'
11
+ 'hello'.tr_s('l', 'r').should == 'hero'
12
+
13
+ # multiple char substitutions
14
+ 'aabbcc'.tr_s('abc', 'abc').should == 'abc'
15
+ 'hello'.tr_s('el', '*').should == 'h*o'
16
+ 'hello'.tr_s('el', 'hx').should == 'hhxo'
17
+
18
+ # inverted substitutions
19
+ 'hello'.tr_s('^aeiou', '*').should == '*e*o'
20
+
21
+ # range substitutions
22
+ 'abc'.tr_s('a-c', '*').should == '*'
23
+ 'hello'.tr_s('e-lo', 'rb').should == 'brb'
24
+ 'hello'.tr_s('a-y', 'b-z').should == 'ifmp'
25
+
26
+ # truncation
27
+ 'abcd'.tr_s('a', '').should == 'bcd'
28
+ 'abcd'.tr_s('abc', '').should == 'd'
29
+ 'abcd'.tr_s('b-d', '').should == 'a'
30
+ end
31
+ end
@@ -0,0 +1,31 @@
1
+ describe "String#tr" do
2
+ it "replaces occurances of character with substitute" do
3
+ # identity checks (no substitution)
4
+ 'abc'.tr('', 'z').should == 'abc'
5
+ 'abc'.tr('a', 'a').should == 'abc'
6
+ 'abc'.tr('a', 'az').should == 'abc'
7
+
8
+ # single char substitutions
9
+ 'a'.tr('a', 'b').should == 'b'
10
+ 'aa'.tr('a', 'b').should == 'bb'
11
+ 'abc'.tr('b', 'z').should == 'azc'
12
+ 'hello'.tr('e', 'ip').should == 'hillo'
13
+
14
+ # multiple char substitutions
15
+ 'hello'.tr('el', 'ip').should == 'hippo'
16
+ 'hello'.tr('aeiou', '*').should == 'h*ll*'
17
+
18
+ # inverted substitutions
19
+ 'hello'.tr('^aeiou', '*').should == '*e**o'
20
+
21
+ # range substitutions
22
+ 'abc'.tr('a-c', '*').should == '***'
23
+ 'hello'.tr('e-lo', 'ab').should == 'babbb'
24
+ 'hello'.tr('a-y', 'b-z').should == 'ifmmp'
25
+
26
+ # truncation
27
+ 'abcd'.tr('a', '').should == 'bcd'
28
+ 'abcd'.tr('abc', '').should == 'd'
29
+ 'abcd'.tr('b-d', '').should == 'a'
30
+ end
31
+ end
@@ -1,3 +1,9 @@
1
+ CS_GLOBAL = "global"
2
+ CS_NIL = nil
3
+ CS_ZERO = 0
4
+ CS_BLANK = ""
5
+ CS_FALSE = false
6
+
1
7
  module ConstantSpecs
2
8
  class ClassA
3
9
  CS_CONST10 = :const10_10
@@ -120,16 +120,12 @@ describe "A class definition" do
120
120
  end
121
121
 
122
122
  describe "An outer class definition" do
123
- ruby_version_is ""..."1.9" do
124
- it "contains the inner classes" do
125
- ClassSpecs::Container.constants.should include('A', 'B')
126
- end
123
+ it "contains the inner classes" do
124
+ ClassSpecs::Container.constants.should include('A', 'B')
127
125
  end
128
126
 
129
- ruby_version_is "1.9" do
130
- it "contains the inner classes" do
131
- ClassSpecs::Container.constants.should include(:A, :B)
132
- end
127
+ it "contains the inner classes" do
128
+ ClassSpecs::Container.constants.should include(:A, :B)
133
129
  end
134
130
  end
135
131
 
@@ -24,16 +24,22 @@ describe "Ruby numbers in various ways" do
24
24
  1.2e-3.should == 0.0012
25
25
  end
26
26
 
27
- pending "the hexdecimal notation" do
27
+ it "the hexdecimal notation" do
28
28
  0xffff.should == 65535
29
29
  end
30
30
 
31
- pending "the binary notation" do
32
- # 0b01011.should == 11
31
+ it "the binary notation" do
32
+ 0b01011.should == 11
33
+ 0101.should == 5
34
+ 001010.should == 10
35
+ 0b1010.should == 10
36
+ 0b10_10.should == 10
33
37
  end
34
38
 
35
- pending "octal representation" do
39
+ it "octal representation" do
36
40
  0377.should == 255
41
+ 0o377.should == 255
42
+ 0o3_77.should == 255
37
43
  end
38
44
 
39
45
  ruby_version_is '' ... '1.9' do
@@ -1,4 +1,4 @@
1
- describe "Predefined global $~" do
1
+ describe "predefined global $~" do
2
2
  it "is set to contain the MatchData object of the last match if successful" do
3
3
  md = /foo/.match 'foo'
4
4
  $~.should be_kind_of(MatchData)
@@ -16,4 +16,71 @@ describe "Predefined global $~" do
16
16
  /foo/ =~ 'bar'
17
17
  $~.nil?.should == true
18
18
  end
19
- end
19
+ end
20
+
21
+ describe "predefined global $:" do
22
+ it "is initialized to an array of strings" do
23
+ $:.is_a?(Array).should == true
24
+ end
25
+ end
26
+
27
+ describe "predefined standard objects" do
28
+ it "includes ARGF" do
29
+ Object.const_defined?(:ARGF).should == true
30
+ end
31
+
32
+ it "includes ARGV" do
33
+ Object.const_defined?(:ARGV).should == true
34
+ ARGV.respond_to?(:[]).should == true
35
+ end
36
+
37
+ # already checked in spec_helper
38
+ #it "includes a hash-like object ENV" do
39
+ # Object.const_defined?(:ENV).should == true
40
+ # ENV.respond_to?(:[]).should == true
41
+ #end
42
+ end
43
+
44
+ describe "The predefined global constants" do
45
+ it "includes TRUE" do
46
+ Object.const_defined?(:TRUE).should == true
47
+ TRUE.should be_true
48
+ end
49
+
50
+ it "includes FALSE" do
51
+ # TODO enable once https://github.com/opal/opal/pull/253 is merged
52
+ #Object.const_defined?(:FALSE).should == true
53
+ FALSE.should be_false
54
+ end
55
+
56
+ it "includes NIL" do
57
+ Object.const_defined?(:NIL).should == true
58
+ NIL.should be_nil
59
+ end
60
+
61
+ it "includes STDIN" do
62
+ Object.const_defined?(:STDIN).should == true
63
+ end
64
+
65
+ it "includes STDOUT" do
66
+ Object.const_defined?(:STDOUT).should == true
67
+ end
68
+
69
+ it "includes STDERR" do
70
+ Object.const_defined?(:STDERR).should == true
71
+ end
72
+
73
+ it "includes RUBY_VERSION" do
74
+ Object.const_defined?(:RUBY_VERSION).should == true
75
+ RUBY_VERSION.should == "1.9.3"
76
+ end
77
+
78
+ it "includes RUBY_RELEASE_DATE" do
79
+ Object.const_defined?(:RUBY_RELEASE_DATE).should == true
80
+ end
81
+
82
+ it "includes RUBY_PLATFORM" do
83
+ Object.const_defined?(:RUBY_PLATFORM).should == true
84
+ RUBY_PLATFORM.should == "opal"
85
+ end
86
+ end
@@ -0,0 +1,47 @@
1
+ require 'rbconfig'
2
+
3
+ describe 'RbConfig' do
4
+ it 'should define a module RbConfig' do
5
+ Object.const_defined?(:RbConfig).should == true
6
+ RbConfig.class.should be_kind_of(Module)
7
+ end
8
+
9
+ it 'should define a hash-like constant CONFIG' do
10
+ RbConfig.const_defined?(:CONFIG).should == true
11
+ RbConfig::CONFIG.respond_to?(:[]).should == true
12
+ end
13
+ end
14
+
15
+ describe 'RbConfig::CONFIG' do
16
+ it 'should contain the key ruby_version set to the RUBY_VERSION' do
17
+ RbConfig::CONFIG['ruby_version'].should == RUBY_VERSION
18
+ end
19
+
20
+ it 'should contain the key MAJOR set to the first position in RUBY_VERSION' do
21
+ RbConfig::CONFIG['MAJOR'].should == RUBY_VERSION.split('.')[0]
22
+ end
23
+
24
+ it 'should contain the key MAJOR set to the second position in RUBY_VERSION' do
25
+ RbConfig::CONFIG['MINOR'].should == RUBY_VERSION.split('.')[1]
26
+ end
27
+
28
+ it 'should contain the key TEENY set to the first position in RUBY_VERSION' do
29
+ RbConfig::CONFIG['TEENY'].should == RUBY_VERSION.split('.')[2]
30
+ end
31
+
32
+ it 'should contain the key TEENY set to the first position in RUBY_VERSION' do
33
+ RbConfig::CONFIG['TEENY'].should == RUBY_VERSION.split('.')[2]
34
+ end
35
+
36
+ it 'should contain the key RUBY equal to the RUBY_ENGINE' do
37
+ RbConfig::CONFIG['RUBY'].should == RUBY_ENGINE
38
+ end
39
+
40
+ it 'should contain the key RUBY_INSTALL_NAME equal to the RUBY_ENGINE' do
41
+ RbConfig::CONFIG['RUBY_INSTALL_NAME'].should == RUBY_ENGINE
42
+ end
43
+
44
+ it 'should contain the key RUBY_SO_NAME equal to the RUBY_ENGINE' do
45
+ RbConfig::CONFIG['RUBY_SO_NAME'].should == RUBY_ENGINE
46
+ end
47
+ end
@@ -1,3 +1,9 @@
1
+ # need this spec here since bootstrap requires use of ENV predefined object
2
+ describe "includes a hash-like object ENV" do
3
+ Object.const_defined?(:ENV).should == true
4
+ ENV.respond_to?(:[]).should == true
5
+ end
6
+
1
7
  unless ENV['MSPEC_RUNNER']
2
8
  begin
3
9
  require "pp"
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.43
4
+ version: 0.3.44
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: 2013-05-02 00:00:00.000000000 Z
12
+ date: 2013-05-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -91,6 +91,11 @@ files:
91
91
  - Rakefile
92
92
  - bin/opal
93
93
  - config.ru
94
+ - examples/native/Gemfile
95
+ - examples/native/README.md
96
+ - examples/native/app/app.rb
97
+ - examples/native/config.ru
98
+ - examples/native/index.html.erb
94
99
  - examples/rack/Gemfile
95
100
  - examples/rack/README.md
96
101
  - examples/rack/app/app.rb
@@ -122,7 +127,6 @@ files:
122
127
  - opal/observer.rb
123
128
  - opal/opal-browser/local_storage.rb
124
129
  - opal/opal-browser/script_loader.rb
125
- - opal/opal-eventable.rb
126
130
  - opal/opal-parser.js.erb
127
131
  - opal/opal-template.rb
128
132
  - opal/opal.rb
@@ -137,7 +141,6 @@ files:
137
141
  - opal/opal/hash.rb
138
142
  - opal/opal/json.rb
139
143
  - opal/opal/kernel.rb
140
- - opal/opal/native.rb
141
144
  - opal/opal/nil_class.rb
142
145
  - opal/opal/numeric.rb
143
146
  - opal/opal/proc.rb
@@ -166,19 +169,13 @@ files:
166
169
  - spec/opal/boolean/to_json_spec.rb
167
170
  - spec/opal/browser/local_storage_spec.rb
168
171
  - spec/opal/class/_inherited_spec.rb
172
+ - spec/opal/class/new_spec.rb
169
173
  - spec/opal/class/proc_methods_spec.rb
170
174
  - spec/opal/class/singleton_methods_spec.rb
171
175
  - spec/opal/constants_spec.rb
172
176
  - spec/opal/erb/erb_spec.rb
173
- - spec/opal/eventable_spec.rb
174
177
  - spec/opal/method_missing_spec.rb
175
- - spec/opal/native/element_reference_spec.rb
176
- - spec/opal/native/equal_spec.rb
177
- - spec/opal/native/fixtures/classes.rb
178
- - spec/opal/native/global_spec.rb
179
- - spec/opal/native/initialize_spec.rb
180
- - spec/opal/native/method_missing_spec.rb
181
- - spec/opal/native/to_native_spec.rb
178
+ - spec/opal/native_spec.rb
182
179
  - spec/opal/nil/to_json_spec.rb
183
180
  - spec/opal/runtime/eval_spec.rb
184
181
  - spec/opal/runtime/send_spec.rb
@@ -224,7 +221,9 @@ files:
224
221
  - spec/parser/str_spec.rb
225
222
  - spec/parser/string_spec.rb
226
223
  - spec/parser/strscan/check_spec.rb
224
+ - spec/parser/strscan/get_byte_spec.rb
227
225
  - spec/parser/strscan/scan_spec.rb
226
+ - spec/parser/strscan/skip_spec.rb
228
227
  - spec/parser/super_spec.rb
229
228
  - spec/parser/true_spec.rb
230
229
  - spec/parser/undef_spec.rb
@@ -273,6 +272,8 @@ files:
273
272
  - spec/rubyspec/core/array/last_spec.rb
274
273
  - spec/rubyspec/core/array/length_spec.rb
275
274
  - spec/rubyspec/core/array/map_spec.rb
275
+ - spec/rubyspec/core/array/max_spec.rb
276
+ - spec/rubyspec/core/array/min_spec.rb
276
277
  - spec/rubyspec/core/array/minus_spec.rb
277
278
  - spec/rubyspec/core/array/multiply_spec.rb
278
279
  - spec/rubyspec/core/array/new_spec.rb
@@ -424,9 +425,11 @@ files:
424
425
  - spec/rubyspec/core/module/alias_method_spec.rb
425
426
  - spec/rubyspec/core/module/ancestors_spec.rb
426
427
  - spec/rubyspec/core/module/append_features_spec.rb
428
+ - spec/rubyspec/core/module/const_defined_spec.rb
427
429
  - spec/rubyspec/core/module/const_get_spec.rb
428
430
  - spec/rubyspec/core/module/const_missing_spec.rb
429
431
  - spec/rubyspec/core/module/const_set_spec.rb
432
+ - spec/rubyspec/core/module/constants_spec.rb
430
433
  - spec/rubyspec/core/module/fixtures/classes.rb
431
434
  - spec/rubyspec/core/module/method_defined_spec.rb
432
435
  - spec/rubyspec/core/module/module_function_spec.rb
@@ -496,12 +499,14 @@ files:
496
499
  - spec/rubyspec/core/runtime/super_spec.rb
497
500
  - spec/rubyspec/core/string/capitalize_spec.rb
498
501
  - spec/rubyspec/core/string/casecmp_spec.rb
502
+ - spec/rubyspec/core/string/center_spec.rb
499
503
  - spec/rubyspec/core/string/chomp_spec.rb
500
504
  - spec/rubyspec/core/string/chop_spec.rb
501
505
  - spec/rubyspec/core/string/chr_spec.rb
506
+ - spec/rubyspec/core/string/clone_spec.rb
502
507
  - spec/rubyspec/core/string/comparison_spec.rb
503
- - spec/rubyspec/core/string/demodulize_spec.rb
504
508
  - spec/rubyspec/core/string/downcase_spec.rb
509
+ - spec/rubyspec/core/string/dup_spec.rb
505
510
  - spec/rubyspec/core/string/element_reference_spec.rb
506
511
  - spec/rubyspec/core/string/empty_spec.rb
507
512
  - spec/rubyspec/core/string/end_with_spec.rb
@@ -511,13 +516,18 @@ files:
511
516
  - spec/rubyspec/core/string/include_spec.rb
512
517
  - spec/rubyspec/core/string/intern_spec.rb
513
518
  - spec/rubyspec/core/string/length_spec.rb
519
+ - spec/rubyspec/core/string/lines_spec.rb
520
+ - spec/rubyspec/core/string/ljust_spec.rb
514
521
  - spec/rubyspec/core/string/lstrip_spec.rb
515
522
  - spec/rubyspec/core/string/match_spec.rb
516
523
  - spec/rubyspec/core/string/next_spec.rb
517
524
  - spec/rubyspec/core/string/ord_spec.rb
518
525
  - spec/rubyspec/core/string/partition_spec.rb
519
526
  - spec/rubyspec/core/string/reverse_spec.rb
527
+ - spec/rubyspec/core/string/rindex_spec.rb
528
+ - spec/rubyspec/core/string/rjust_spec.rb
520
529
  - spec/rubyspec/core/string/rstrip_spec.rb
530
+ - spec/rubyspec/core/string/scan_spec.rb
521
531
  - spec/rubyspec/core/string/size_spec.rb
522
532
  - spec/rubyspec/core/string/slice_spec.rb
523
533
  - spec/rubyspec/core/string/split_spec.rb
@@ -534,7 +544,8 @@ files:
534
544
  - spec/rubyspec/core/string/to_s_spec.rb
535
545
  - spec/rubyspec/core/string/to_str_spec.rb
536
546
  - spec/rubyspec/core/string/to_sym_spec.rb
537
- - spec/rubyspec/core/string/underscore_spec.rb
547
+ - spec/rubyspec/core/string/tr_s_spec.rb
548
+ - spec/rubyspec/core/string/tr_spec.rb
538
549
  - spec/rubyspec/core/string/upcase_spec.rb
539
550
  - spec/rubyspec/core/symbol/to_proc_spec.rb
540
551
  - spec/rubyspec/core/time/at_spec.rb
@@ -653,6 +664,7 @@ files:
653
664
  - spec/rubyspec/library/observer/delete_observers_spec.rb
654
665
  - spec/rubyspec/library/observer/fixtures/classes.rb
655
666
  - spec/rubyspec/library/observer/notify_observers_spec.rb
667
+ - spec/rubyspec/library/rbconfig/config_spec.rb
656
668
  - spec/rubyspec/spec_helper.rb
657
669
  - spec/simple_erb_template.opalerb
658
670
  - spec/spec_helper.rb
@@ -678,7 +690,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
678
690
  version: '0'
679
691
  requirements: []
680
692
  rubyforge_project:
681
- rubygems_version: 1.8.24
693
+ rubygems_version: 1.8.23
682
694
  signing_key:
683
695
  specification_version: 3
684
696
  summary: Ruby runtime and core library for javascript
@@ -698,19 +710,13 @@ test_files:
698
710
  - spec/opal/boolean/to_json_spec.rb
699
711
  - spec/opal/browser/local_storage_spec.rb
700
712
  - spec/opal/class/_inherited_spec.rb
713
+ - spec/opal/class/new_spec.rb
701
714
  - spec/opal/class/proc_methods_spec.rb
702
715
  - spec/opal/class/singleton_methods_spec.rb
703
716
  - spec/opal/constants_spec.rb
704
717
  - spec/opal/erb/erb_spec.rb
705
- - spec/opal/eventable_spec.rb
706
718
  - spec/opal/method_missing_spec.rb
707
- - spec/opal/native/element_reference_spec.rb
708
- - spec/opal/native/equal_spec.rb
709
- - spec/opal/native/fixtures/classes.rb
710
- - spec/opal/native/global_spec.rb
711
- - spec/opal/native/initialize_spec.rb
712
- - spec/opal/native/method_missing_spec.rb
713
- - spec/opal/native/to_native_spec.rb
719
+ - spec/opal/native_spec.rb
714
720
  - spec/opal/nil/to_json_spec.rb
715
721
  - spec/opal/runtime/eval_spec.rb
716
722
  - spec/opal/runtime/send_spec.rb
@@ -756,7 +762,9 @@ test_files:
756
762
  - spec/parser/str_spec.rb
757
763
  - spec/parser/string_spec.rb
758
764
  - spec/parser/strscan/check_spec.rb
765
+ - spec/parser/strscan/get_byte_spec.rb
759
766
  - spec/parser/strscan/scan_spec.rb
767
+ - spec/parser/strscan/skip_spec.rb
760
768
  - spec/parser/super_spec.rb
761
769
  - spec/parser/true_spec.rb
762
770
  - spec/parser/undef_spec.rb
@@ -805,6 +813,8 @@ test_files:
805
813
  - spec/rubyspec/core/array/last_spec.rb
806
814
  - spec/rubyspec/core/array/length_spec.rb
807
815
  - spec/rubyspec/core/array/map_spec.rb
816
+ - spec/rubyspec/core/array/max_spec.rb
817
+ - spec/rubyspec/core/array/min_spec.rb
808
818
  - spec/rubyspec/core/array/minus_spec.rb
809
819
  - spec/rubyspec/core/array/multiply_spec.rb
810
820
  - spec/rubyspec/core/array/new_spec.rb
@@ -956,9 +966,11 @@ test_files:
956
966
  - spec/rubyspec/core/module/alias_method_spec.rb
957
967
  - spec/rubyspec/core/module/ancestors_spec.rb
958
968
  - spec/rubyspec/core/module/append_features_spec.rb
969
+ - spec/rubyspec/core/module/const_defined_spec.rb
959
970
  - spec/rubyspec/core/module/const_get_spec.rb
960
971
  - spec/rubyspec/core/module/const_missing_spec.rb
961
972
  - spec/rubyspec/core/module/const_set_spec.rb
973
+ - spec/rubyspec/core/module/constants_spec.rb
962
974
  - spec/rubyspec/core/module/fixtures/classes.rb
963
975
  - spec/rubyspec/core/module/method_defined_spec.rb
964
976
  - spec/rubyspec/core/module/module_function_spec.rb
@@ -1028,12 +1040,14 @@ test_files:
1028
1040
  - spec/rubyspec/core/runtime/super_spec.rb
1029
1041
  - spec/rubyspec/core/string/capitalize_spec.rb
1030
1042
  - spec/rubyspec/core/string/casecmp_spec.rb
1043
+ - spec/rubyspec/core/string/center_spec.rb
1031
1044
  - spec/rubyspec/core/string/chomp_spec.rb
1032
1045
  - spec/rubyspec/core/string/chop_spec.rb
1033
1046
  - spec/rubyspec/core/string/chr_spec.rb
1047
+ - spec/rubyspec/core/string/clone_spec.rb
1034
1048
  - spec/rubyspec/core/string/comparison_spec.rb
1035
- - spec/rubyspec/core/string/demodulize_spec.rb
1036
1049
  - spec/rubyspec/core/string/downcase_spec.rb
1050
+ - spec/rubyspec/core/string/dup_spec.rb
1037
1051
  - spec/rubyspec/core/string/element_reference_spec.rb
1038
1052
  - spec/rubyspec/core/string/empty_spec.rb
1039
1053
  - spec/rubyspec/core/string/end_with_spec.rb
@@ -1043,13 +1057,18 @@ test_files:
1043
1057
  - spec/rubyspec/core/string/include_spec.rb
1044
1058
  - spec/rubyspec/core/string/intern_spec.rb
1045
1059
  - spec/rubyspec/core/string/length_spec.rb
1060
+ - spec/rubyspec/core/string/lines_spec.rb
1061
+ - spec/rubyspec/core/string/ljust_spec.rb
1046
1062
  - spec/rubyspec/core/string/lstrip_spec.rb
1047
1063
  - spec/rubyspec/core/string/match_spec.rb
1048
1064
  - spec/rubyspec/core/string/next_spec.rb
1049
1065
  - spec/rubyspec/core/string/ord_spec.rb
1050
1066
  - spec/rubyspec/core/string/partition_spec.rb
1051
1067
  - spec/rubyspec/core/string/reverse_spec.rb
1068
+ - spec/rubyspec/core/string/rindex_spec.rb
1069
+ - spec/rubyspec/core/string/rjust_spec.rb
1052
1070
  - spec/rubyspec/core/string/rstrip_spec.rb
1071
+ - spec/rubyspec/core/string/scan_spec.rb
1053
1072
  - spec/rubyspec/core/string/size_spec.rb
1054
1073
  - spec/rubyspec/core/string/slice_spec.rb
1055
1074
  - spec/rubyspec/core/string/split_spec.rb
@@ -1066,7 +1085,8 @@ test_files:
1066
1085
  - spec/rubyspec/core/string/to_s_spec.rb
1067
1086
  - spec/rubyspec/core/string/to_str_spec.rb
1068
1087
  - spec/rubyspec/core/string/to_sym_spec.rb
1069
- - spec/rubyspec/core/string/underscore_spec.rb
1088
+ - spec/rubyspec/core/string/tr_s_spec.rb
1089
+ - spec/rubyspec/core/string/tr_spec.rb
1070
1090
  - spec/rubyspec/core/string/upcase_spec.rb
1071
1091
  - spec/rubyspec/core/symbol/to_proc_spec.rb
1072
1092
  - spec/rubyspec/core/time/at_spec.rb
@@ -1185,6 +1205,7 @@ test_files:
1185
1205
  - spec/rubyspec/library/observer/delete_observers_spec.rb
1186
1206
  - spec/rubyspec/library/observer/fixtures/classes.rb
1187
1207
  - spec/rubyspec/library/observer/notify_observers_spec.rb
1208
+ - spec/rubyspec/library/rbconfig/config_spec.rb
1188
1209
  - spec/rubyspec/spec_helper.rb
1189
1210
  - spec/simple_erb_template.opalerb
1190
1211
  - spec/spec_helper.rb