opal 0.3.41 → 0.3.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (285) hide show
  1. data/.gitignore +2 -0
  2. data/.travis.yml +3 -0
  3. data/CHANGELOG.md +14 -1
  4. data/Gemfile +2 -5
  5. data/Rakefile +41 -3
  6. data/bin/opal +33 -0
  7. data/lib/opal.rb +2 -12
  8. data/lib/opal/core_ext.rb +5 -0
  9. data/lib/opal/grammar.rb +2207 -2138
  10. data/lib/opal/grammar.y +21 -0
  11. data/lib/opal/grammar_helpers.rb +360 -0
  12. data/lib/opal/lexer.rb +55 -401
  13. data/lib/opal/lexer_scope.rb +28 -0
  14. data/lib/opal/parser.rb +155 -171
  15. data/lib/opal/target_scope.rb +257 -0
  16. data/lib/opal/version.rb +1 -1
  17. data/opal.gemspec +6 -2
  18. data/opal/opal-parser.js.erb +3 -2
  19. data/opal/opal.rb +20 -18
  20. data/opal/opal/array.rb +21 -12
  21. data/opal/opal/basic_object.rb +2 -1
  22. data/opal/opal/boolean.rb +3 -0
  23. data/opal/opal/browser_loader.js +57 -0
  24. data/opal/opal/class.rb +51 -13
  25. data/opal/opal/date.rb +1 -20
  26. data/opal/opal/enumerable.rb +66 -33
  27. data/opal/opal/error.rb +2 -0
  28. data/opal/opal/hash.rb +1 -1
  29. data/opal/opal/kernel.rb +14 -3
  30. data/opal/opal/nil_class.rb +4 -0
  31. data/opal/opal/proc.rb +9 -1
  32. data/opal/opal/racc.rb +2 -2
  33. data/opal/opal/regexp.rb +1 -1
  34. data/opal/opal/runtime.js +14 -4
  35. data/opal/opal/string.rb +21 -4
  36. data/opal/opal/time.rb +27 -0
  37. data/spec/core/array/allocate_spec.rb +7 -1
  38. data/spec/core/array/append_spec.rb +18 -3
  39. data/spec/core/array/array_spec.rb +7 -0
  40. data/spec/core/array/assoc_spec.rb +23 -8
  41. data/spec/core/array/at_spec.rb +23 -3
  42. data/spec/core/array/choice_spec.rb +20 -0
  43. data/spec/core/array/clear_spec.rb +45 -4
  44. data/spec/core/array/combination_spec.rb +55 -0
  45. data/spec/core/array/compact_spec.rb +72 -1
  46. data/spec/core/array/constructor_spec.rb +13 -2
  47. data/spec/core/array/count_spec.rb +15 -7
  48. data/spec/core/array/delete_at_spec.rb +44 -1
  49. data/spec/core/array/delete_if_spec.rb +52 -2
  50. data/spec/core/array/delete_spec.rb +83 -2
  51. data/spec/core/array/drop_spec.rb +24 -16
  52. data/spec/core/array/drop_while_spec.rb +17 -0
  53. data/spec/core/array/each_index_spec.rb +11 -1
  54. data/spec/core/array/each_spec.rb +20 -2
  55. data/spec/core/array/empty_spec.rb +4 -1
  56. data/spec/core/array/eql_spec.rb +14 -0
  57. data/spec/core/array/fetch_spec.rb +31 -2
  58. data/spec/core/array/find_index_spec.rb +8 -0
  59. data/spec/core/array/first_spec.rb +45 -8
  60. data/spec/core/array/fixtures/classes.rb +538 -0
  61. data/spec/core/array/flatten_spec.rb +200 -7
  62. data/spec/core/array/frozen_spec.rb +32 -0
  63. data/spec/core/array/include_spec.rb +16 -1
  64. data/spec/core/array/index_spec.rb +5 -25
  65. data/spec/core/array/insert_spec.rb +37 -3
  66. data/spec/core/array/inspect_spec.rb +6 -12
  67. data/spec/core/array/intersection_spec.rb +55 -4
  68. data/spec/core/array/join_spec.rb +29 -4
  69. data/spec/core/array/keep_if_spec.rb +13 -6
  70. data/spec/core/array/last_spec.rb +35 -1
  71. data/spec/core/array/length_spec.rb +7 -4
  72. data/spec/core/array/map_spec.rb +9 -47
  73. data/spec/core/array/minus_spec.rb +68 -4
  74. data/spec/core/array/multiply_spec.rb +138 -6
  75. data/spec/core/array/new_spec.rb +92 -3
  76. data/spec/core/array/ntimes_spec.rb +26 -0
  77. data/spec/core/array/plus_spec.rb +48 -2
  78. data/spec/core/array/pop_spec.rb +159 -39
  79. data/spec/core/array/push_spec.rb +29 -1
  80. data/spec/core/array/rassoc_spec.rb +31 -2
  81. data/spec/core/array/reject_spec.rb +89 -2
  82. data/spec/core/array/replace_spec.rb +7 -29
  83. data/spec/core/array/reverse_each_spec.rb +25 -1
  84. data/spec/core/array/reverse_spec.rb +53 -1
  85. data/spec/core/array/rindex_spec.rb +55 -5
  86. data/spec/core/array/select_spec.rb +35 -8
  87. data/spec/core/array/shared/collect.rb +0 -0
  88. data/spec/core/array/shared/enumeratorize.rb +12 -0
  89. data/spec/core/array/shared/eql.rb +95 -0
  90. data/spec/core/array/shared/index.rb +37 -0
  91. data/spec/core/array/shared/inspect.rb +3 -0
  92. data/spec/core/array/shared/join.rb +7 -0
  93. data/spec/core/array/shared/keep_if.rb +0 -0
  94. data/spec/core/array/shared/length.rb +0 -0
  95. data/spec/core/array/shared/replace.rb +0 -0
  96. data/spec/core/array/shared/slice.rb +0 -0
  97. data/spec/core/array/shift_spec.rb +132 -23
  98. data/spec/core/array/shuffle_spec.rb +82 -6
  99. data/spec/core/array/size_spec.rb +7 -4
  100. data/spec/core/array/slice_spec.rb +132 -1
  101. data/spec/core/array/sort_spec.rb +263 -14
  102. data/spec/core/array/take_spec.rb +24 -16
  103. data/spec/core/array/take_while_spec.rb +14 -10
  104. data/spec/core/array/to_a_spec.rb +18 -1
  105. data/spec/core/array/to_ary_spec.rb +15 -1
  106. data/spec/core/array/try_convert_spec.rb +39 -2
  107. data/spec/core/array/uniq_spec.rb +148 -3
  108. data/spec/core/array/unshift_spec.rb +36 -1
  109. data/spec/core/array/zip_spec.rb +36 -1
  110. data/spec/core/class/new_spec.rb +8 -6
  111. data/spec/core/enumerable/all_spec.rb +37 -9
  112. data/spec/core/enumerable/any_spec.rb +45 -7
  113. data/spec/core/enumerable/collect_spec.rb +4 -1
  114. data/spec/core/enumerable/count_spec.rb +4 -1
  115. data/spec/core/enumerable/detect_spec.rb +2 -2
  116. data/spec/core/enumerable/drop_spec.rb +4 -1
  117. data/spec/core/enumerable/drop_while_spec.rb +4 -1
  118. data/spec/core/enumerable/each_slice_spec.rb +2 -1
  119. data/spec/core/enumerable/each_with_index_spec.rb +4 -1
  120. data/spec/core/enumerable/each_with_object_spec.rb +4 -1
  121. data/spec/core/enumerable/entries_spec.rb +4 -1
  122. data/spec/core/enumerable/find_all_spec.rb +4 -1
  123. data/spec/core/enumerable/find_index_spec.rb +4 -1
  124. data/spec/core/enumerable/find_spec.rb +5 -2
  125. data/spec/core/enumerable/first_spec.rb +4 -1
  126. data/spec/core/enumerable/fixtures/classes.rb +198 -2
  127. data/spec/core/enumerable/grep_spec.rb +4 -1
  128. data/spec/core/enumerable/take_spec.rb +4 -1
  129. data/spec/core/enumerable/to_a_spec.rb +4 -1
  130. data/spec/core/false/and_spec.rb +11 -0
  131. data/spec/core/false/inspect_spec.rb +7 -0
  132. data/spec/core/false/or_spec.rb +11 -0
  133. data/spec/core/false/to_s_spec.rb +7 -0
  134. data/spec/core/false/xor_spec.rb +11 -0
  135. data/spec/core/kernel/rand_spec.rb +5 -5
  136. data/spec/core/module/const_get_spec.rb +4 -4
  137. data/spec/core/module/fixtures/classes.rb +434 -0
  138. data/spec/core/module/method_defined_spec.rb +49 -0
  139. data/spec/core/module/module_function_spec.rb +28 -0
  140. data/spec/core/nil/and_spec.rb +3 -1
  141. data/spec/core/nil/dup_spec.rb +7 -0
  142. data/spec/core/nil/inspect_spec.rb +3 -1
  143. data/spec/core/nil/nil_spec.rb +3 -1
  144. data/spec/core/nil/or_spec.rb +4 -2
  145. data/spec/core/nil/to_a_spec.rb +3 -1
  146. data/spec/core/nil/to_f_spec.rb +3 -1
  147. data/spec/core/nil/to_i_spec.rb +3 -1
  148. data/spec/core/nil/to_s_spec.rb +3 -1
  149. data/spec/core/nil/xor_spec.rb +4 -2
  150. data/spec/core/string/element_reference_spec.rb +14 -1
  151. data/spec/core/string/fixtures/classes.rb +0 -0
  152. data/spec/core/true/and_spec.rb +11 -0
  153. data/spec/core/true/inspect_spec.rb +7 -0
  154. data/spec/core/true/or_spec.rb +11 -0
  155. data/spec/core/true/to_s_spec.rb +7 -0
  156. data/spec/core/true/xor_spec.rb +11 -0
  157. data/spec/{core → core_ext}/array/element_reference_spec.rb +0 -0
  158. data/spec/{core → core_ext}/array/equal_value_spec.rb +0 -0
  159. data/spec/{core → core_ext}/array/fill_spec.rb +0 -0
  160. data/spec/{core → core_ext}/array/reduce_spec.rb +0 -0
  161. data/spec/core_ext/basic_object/send_spec.rb +3 -3
  162. data/spec/{core → core_ext}/boolean/singleton_class_spec.rb +0 -0
  163. data/spec/{core → core_ext}/boolean/to_json_spec.rb +0 -0
  164. data/spec/core_ext/class/_inherited_spec.rb +3 -3
  165. data/spec/core_ext/class/proc_methods_spec.rb +2 -2
  166. data/spec/core_ext/class/singleton_methods_spec.rb +8 -8
  167. data/spec/core_ext/method_missing_spec.rb +3 -3
  168. data/spec/core_ext/native/method_missing_spec.rb +3 -2
  169. data/spec/core_ext/native/to_native_spec.rb +3 -2
  170. data/spec/{core → core_ext}/nil/to_json_spec.rb +0 -0
  171. data/spec/date.rb +0 -0
  172. data/spec/fileutils.rb +0 -0
  173. data/spec/filters/ancestors.rb +4 -0
  174. data/spec/filters/array_delete.rb +3 -0
  175. data/spec/filters/array_fetch.rb +3 -0
  176. data/spec/filters/array_first.rb +3 -0
  177. data/spec/filters/array_flatten.rb +14 -0
  178. data/spec/filters/array_intersection.rb +5 -0
  179. data/spec/filters/array_join.rb +6 -0
  180. data/spec/filters/array_subclasses.rb +4 -0
  181. data/spec/filters/block_args.rb +3 -0
  182. data/spec/filters/coerce_integer.rb +9 -0
  183. data/spec/filters/frozen.rb +4 -0
  184. data/spec/filters/mocks.rb +3 -0
  185. data/spec/filters/should_receive.rb +4 -0
  186. data/spec/filters/tainted.rb +7 -0
  187. data/spec/fixtures/class.rb +124 -0
  188. data/spec/fixtures/class_variables.rb +0 -0
  189. data/spec/fixtures/constants.rb +0 -0
  190. data/spec/grammar/alias_spec.rb +1 -1
  191. data/spec/grammar/def_spec.rb +1 -0
  192. data/spec/grammar/lvar_spec.rb +1 -2
  193. data/spec/grammar/nth_ref_spec.rb +13 -0
  194. data/spec/grammar/sclass_spec.rb +6 -7
  195. data/spec/grammar/str_spec.rb +4 -4
  196. data/spec/grammar/string_spec.rb +8 -0
  197. data/spec/grammar/xstr_spec.rb +4 -4
  198. data/spec/iconv.rb +0 -0
  199. data/spec/language/alias_spec.rb +140 -3
  200. data/spec/language/and_spec.rb +14 -7
  201. data/spec/language/array_spec.rb +57 -5
  202. data/spec/language/block_spec.rb +466 -49
  203. data/spec/language/break_spec.rb +294 -44
  204. data/spec/language/case_spec.rb +151 -3
  205. data/spec/language/class_spec.rb +196 -0
  206. data/spec/language/class_variable_spec.rb +56 -0
  207. data/spec/language/def_spec.rb +507 -4
  208. data/spec/language/defined_spec.rb +19 -7
  209. data/spec/language/ensure_spec.rb +26 -39
  210. data/spec/language/execution_spec.rb +15 -0
  211. data/spec/language/fixtures/array.rb +11 -0
  212. data/spec/language/fixtures/block.rb +57 -0
  213. data/spec/language/fixtures/break.rb +240 -0
  214. data/spec/language/fixtures/ensure.rb +72 -0
  215. data/spec/language/fixtures/literal_lambda.rb +7 -0
  216. data/spec/language/fixtures/metaclass.rb +33 -0
  217. data/spec/language/fixtures/module.rb +24 -0
  218. data/spec/language/fixtures/next.rb +78 -12
  219. data/spec/language/fixtures/return.rb +118 -0
  220. data/spec/language/fixtures/send.rb +110 -0
  221. data/spec/language/fixtures/send_1.9.rb +22 -0
  222. data/spec/language/fixtures/super.rb +308 -0
  223. data/spec/language/fixtures/variables.rb +58 -0
  224. data/spec/language/fixtures/yield.rb +5 -0
  225. data/spec/language/for_spec.rb +192 -0
  226. data/spec/language/hash_spec.rb +29 -5
  227. data/spec/language/if_spec.rb +90 -9
  228. data/spec/language/literal_lambda_spec.rb +1 -47
  229. data/spec/language/loop_spec.rb +39 -2
  230. data/spec/language/metaclass_spec.rb +151 -5
  231. data/spec/language/module_spec.rb +56 -0
  232. data/spec/language/next_spec.rb +370 -12
  233. data/spec/language/not_spec.rb +55 -0
  234. data/spec/language/numbers_spec.rb +56 -0
  235. data/spec/language/or_spec.rb +31 -3
  236. data/spec/language/order_spec.rb +79 -0
  237. data/spec/language/precedence_spec.rb +483 -0
  238. data/spec/language/proc_spec.rb +249 -21
  239. data/spec/language/redo_spec.rb +67 -0
  240. data/spec/language/rescue_spec.rb +121 -0
  241. data/spec/language/retry_spec.rb +56 -0
  242. data/spec/language/return_spec.rb +281 -0
  243. data/spec/language/send_spec.rb +141 -48
  244. data/spec/language/singleton_class_spec.rb +1 -1
  245. data/spec/language/string_spec.rb +11 -0
  246. data/spec/language/super_spec.rb +213 -133
  247. data/spec/language/symbol_spec.rb +2 -1
  248. data/spec/language/undef_spec.rb +3 -1
  249. data/spec/language/unless_spec.rb +6 -2
  250. data/spec/language/until_spec.rb +102 -3
  251. data/spec/language/variables_spec.rb +1212 -16
  252. data/spec/language/versions/array_1.9.rb +39 -0
  253. data/spec/language/versions/case_1.9.rb +20 -0
  254. data/spec/language/versions/hash_1.9.rb +18 -0
  255. data/spec/language/versions/literal_lambda_1.9.rb +143 -0
  256. data/spec/language/versions/not_1.9.rb +22 -0
  257. data/spec/language/versions/send_1.9.rb +241 -0
  258. data/spec/language/versions/symbol_1.9.rb +15 -0
  259. data/spec/language/versions/variables_1.9.rb +8 -0
  260. data/spec/language/while_spec.rb +70 -5
  261. data/spec/language/yield_spec.rb +32 -6
  262. data/spec/mspec/guards/block_device.rb +0 -0
  263. data/spec/mspec/guards/endian.rb +0 -0
  264. data/spec/mspec/helpers/environment.rb +0 -0
  265. data/spec/mspec/helpers/language_version.rb +0 -0
  266. data/spec/mspec/helpers/tmp.rb +0 -0
  267. data/spec/ospec/filter.rb +32 -0
  268. data/spec/ospec/main.rb.erb +18 -0
  269. data/spec/ospec/phantom.rb +97 -0
  270. data/spec/ospec/runner.rb +95 -0
  271. data/spec/ospec/sprockets.js +40 -0
  272. data/spec/pp.rb +3 -0
  273. data/spec/rbconfig.rb +5 -0
  274. data/spec/spec_helper.rb +53 -26
  275. data/spec/yaml.rb +0 -0
  276. metadata +275 -31
  277. data/config.ru +0 -8
  278. data/lib/opal/processor.rb +0 -47
  279. data/lib/opal/scope.rb +0 -236
  280. data/lib/opal/server.rb +0 -94
  281. data/spec/core/boolean/and_spec.rb +0 -17
  282. data/spec/core/boolean/inspect_spec.rb +0 -9
  283. data/spec/core/boolean/or_spec.rb +0 -17
  284. data/spec/core/boolean/to_s_spec.rb +0 -9
  285. data/spec/core/boolean/xor_spec.rb +0 -17
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Test runner for phantomjs
3
+ */
4
+ var args = phantom.args;
5
+ var page = require('webpage').create();
6
+
7
+ page.onConsoleMessage = function(msg) {
8
+ console.log(msg);
9
+ };
10
+
11
+ page.onInitialized = function() {
12
+ page.evaluate(function () {
13
+ window.OPAL_SPEC_PHANTOM = true;
14
+ });
15
+ };
16
+
17
+ page.open(args[0], function(status) {
18
+ if (status !== 'success') {
19
+ console.error("Cannot load: " + args[0]);
20
+ phantom.exit(1);
21
+ } else {
22
+ var timeout = parseInt(args[1] || 60000, 10);
23
+ var start = Date.now();
24
+ var interval = setInterval(function() {
25
+ if (Date.now() > start + timeout) {
26
+ console.error("Specs timed out");
27
+ phantom.exit(124);
28
+ } else {
29
+ var code = page.evaluate(function() {
30
+ return window.OPAL_SPEC_CODE;
31
+ });
32
+
33
+ if (code === 0 || code === 1) {
34
+ clearInterval(interval);
35
+ phantom.exit(code);
36
+ }
37
+ }
38
+ }, 500);
39
+ }
40
+ });
data/spec/pp.rb ADDED
@@ -0,0 +1,3 @@
1
+ module Kernel
2
+ def pretty_inspect; inspect; end
3
+ end
data/spec/rbconfig.rb ADDED
@@ -0,0 +1,5 @@
1
+ RUBY_NAME = 'opal'
2
+ RUBY_EXE = 'opal'
3
+
4
+ RUBY_VERSION = '1.9.3'
5
+
data/spec/spec_helper.rb CHANGED
@@ -1,32 +1,59 @@
1
- require 'opal'
2
- require 'opal-parser'
3
- require 'opal-spec'
1
+ unless ENV['MSPEC_RUNNER']
2
+ begin
3
+ require "pp"
4
+ require 'mspec/version'
5
+ require 'mspec/helpers'
6
+ require 'mspec/guards'
7
+ require 'mspec/runner/shared'
8
+ require 'mspec/matchers/be_ancestor_of'
9
+ require 'mspec/matchers/output'
10
+ require 'mspec/matchers/output_to_fd'
11
+ require 'mspec/matchers/complain'
12
+ require 'mspec/matchers/equal_element'
13
+ require 'mspec/matchers/equal_utf16'
14
+ require 'mspec/matchers/match_yaml'
15
+ require 'mspec/matchers/have_class_variable'
16
+ require 'mspec/matchers/have_constant'
17
+ require 'mspec/matchers/have_instance_method'
18
+ require 'mspec/matchers/have_instance_variable'
19
+ require 'mspec/matchers/have_method'
20
+ require 'mspec/matchers/have_private_instance_method'
21
+ require 'mspec/matchers/have_protected_instance_method'
22
+ require 'mspec/matchers/have_public_instance_method'
4
23
 
5
- # stdlib
6
- require 'opal/date'
7
- require 'opal/enumerator'
24
+ # Code to setup HOME directory correctly on Windows
25
+ # This duplicates Ruby 1.9 semantics for defining HOME
26
+ platform_is :windows do
27
+ if ENV['HOME']
28
+ ENV['HOME'] = ENV['HOME'].tr '\\', '/'
29
+ elsif ENV['HOMEDIR'] && ENV['HOMEDRIVE']
30
+ ENV['HOME'] = File.join(ENV['HOMEDRIVE'], ENV['HOMEDIR'])
31
+ elsif ENV['HOMEDIR']
32
+ ENV['HOME'] = ENV['HOMEDIR']
33
+ elsif ENV['HOMEDRIVE']
34
+ ENV['HOME'] = ENV['HOMEDRIVE']
35
+ elsif ENV['USERPROFILE']
36
+ ENV['HOME'] = ENV['USERPROFILE']
37
+ else
38
+ puts "No suitable HOME environment found. This means that all of"
39
+ puts "HOME, HOMEDIR, HOMEDRIVE, and USERPROFILE are not set"
40
+ exit 1
41
+ end
42
+ end
8
43
 
9
- module Kernel
10
- def opal_eval(str)
11
- code = Opal::Parser.new.parse str
12
- `eval(code)`
13
- end
14
-
15
- def opal_parse(str, file='(string)')
16
- Opal::Grammar.new.parse str, file
17
- end
18
-
19
- def opal_eval_compiled(javascript)
20
- `eval(javascript)`
44
+ TOLERANCE = 0.00003 unless Object.const_defined?(:TOLERANCE)
45
+ rescue LoadError
46
+ puts "Please install the MSpec gem to run the specs."
47
+ exit 1
21
48
  end
49
+ end
22
50
 
23
- # Used for splitting specific ruby version tests. For now we allow all test
24
- # groups to run (as opal isnt really a specific ruby version as such?)
25
- def ruby_version_is(version, &block)
26
- block.call
27
- end
51
+ CODE_LOADING_DIR = File.expand_path "../fixtures/code", __FILE__
28
52
 
29
- def enumerator_class
30
- Enumerator
31
- end
53
+ minimum_version = "1.5.17"
54
+ unless MSpec::VERSION >= minimum_version
55
+ puts "Please install MSpec version >= #{minimum_version} to run the specs"
56
+ exit 1
32
57
  end
58
+
59
+ $VERBOSE = nil unless ENV['OUTPUT_WARNINGS']
data/spec/yaml.rb ADDED
File without changes
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.41
4
+ version: 0.3.42
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,10 +9,10 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-26 00:00:00.000000000 Z
12
+ date: 2013-03-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: sprockets
15
+ name: rake
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
@@ -27,6 +27,54 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: racc
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: opal-sprockets
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: mspec
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - '='
68
+ - !ruby/object:Gem::Version
69
+ version: 1.5.18
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - '='
76
+ - !ruby/object:Gem::Version
77
+ version: 1.5.18
30
78
  description: Ruby runtime and core library for javascript.
31
79
  email: adam.beynon@gmail.com
32
80
  executables: []
@@ -41,15 +89,16 @@ files:
41
89
  - LICENSE
42
90
  - README.md
43
91
  - Rakefile
44
- - config.ru
92
+ - bin/opal
45
93
  - lib/opal.rb
94
+ - lib/opal/core_ext.rb
46
95
  - lib/opal/grammar.rb
47
96
  - lib/opal/grammar.y
97
+ - lib/opal/grammar_helpers.rb
48
98
  - lib/opal/lexer.rb
99
+ - lib/opal/lexer_scope.rb
49
100
  - lib/opal/parser.rb
50
- - lib/opal/processor.rb
51
- - lib/opal/scope.rb
52
- - lib/opal/server.rb
101
+ - lib/opal/target_scope.rb
53
102
  - lib/opal/version.rb
54
103
  - opal.gemspec
55
104
  - opal/opal-parser.js.erb
@@ -57,6 +106,7 @@ files:
57
106
  - opal/opal/array.rb
58
107
  - opal/opal/basic_object.rb
59
108
  - opal/opal/boolean.rb
109
+ - opal/opal/browser_loader.js
60
110
  - opal/opal/class.rb
61
111
  - opal/opal/comparable.rb
62
112
  - opal/opal/date.rb
@@ -80,11 +130,14 @@ files:
80
130
  - opal/opal/time.rb
81
131
  - spec/core/array/allocate_spec.rb
82
132
  - spec/core/array/append_spec.rb
133
+ - spec/core/array/array_spec.rb
83
134
  - spec/core/array/assoc_spec.rb
84
135
  - spec/core/array/at_spec.rb
136
+ - spec/core/array/choice_spec.rb
85
137
  - spec/core/array/clear_spec.rb
86
138
  - spec/core/array/clone_spec.rb
87
139
  - spec/core/array/collect_spec.rb
140
+ - spec/core/array/combination_spec.rb
88
141
  - spec/core/array/compact_spec.rb
89
142
  - spec/core/array/comparison_spec.rb
90
143
  - spec/core/array/concat_spec.rb
@@ -94,16 +147,18 @@ files:
94
147
  - spec/core/array/delete_if_spec.rb
95
148
  - spec/core/array/delete_spec.rb
96
149
  - spec/core/array/drop_spec.rb
150
+ - spec/core/array/drop_while_spec.rb
97
151
  - spec/core/array/dup_spec.rb
98
152
  - spec/core/array/each_index_spec.rb
99
153
  - spec/core/array/each_spec.rb
100
- - spec/core/array/element_reference_spec.rb
101
154
  - spec/core/array/empty_spec.rb
102
- - spec/core/array/equal_value_spec.rb
155
+ - spec/core/array/eql_spec.rb
103
156
  - spec/core/array/fetch_spec.rb
104
- - spec/core/array/fill_spec.rb
157
+ - spec/core/array/find_index_spec.rb
105
158
  - spec/core/array/first_spec.rb
159
+ - spec/core/array/fixtures/classes.rb
106
160
  - spec/core/array/flatten_spec.rb
161
+ - spec/core/array/frozen_spec.rb
107
162
  - spec/core/array/include_spec.rb
108
163
  - spec/core/array/index_spec.rb
109
164
  - spec/core/array/insert_spec.rb
@@ -117,17 +172,27 @@ files:
117
172
  - spec/core/array/minus_spec.rb
118
173
  - spec/core/array/multiply_spec.rb
119
174
  - spec/core/array/new_spec.rb
175
+ - spec/core/array/ntimes_spec.rb
120
176
  - spec/core/array/plus_spec.rb
121
177
  - spec/core/array/pop_spec.rb
122
178
  - spec/core/array/push_spec.rb
123
179
  - spec/core/array/rassoc_spec.rb
124
- - spec/core/array/reduce_spec.rb
125
180
  - spec/core/array/reject_spec.rb
126
181
  - spec/core/array/replace_spec.rb
127
182
  - spec/core/array/reverse_each_spec.rb
128
183
  - spec/core/array/reverse_spec.rb
129
184
  - spec/core/array/rindex_spec.rb
130
185
  - spec/core/array/select_spec.rb
186
+ - spec/core/array/shared/collect.rb
187
+ - spec/core/array/shared/enumeratorize.rb
188
+ - spec/core/array/shared/eql.rb
189
+ - spec/core/array/shared/index.rb
190
+ - spec/core/array/shared/inspect.rb
191
+ - spec/core/array/shared/join.rb
192
+ - spec/core/array/shared/keep_if.rb
193
+ - spec/core/array/shared/length.rb
194
+ - spec/core/array/shared/replace.rb
195
+ - spec/core/array/shared/slice.rb
131
196
  - spec/core/array/shift_spec.rb
132
197
  - spec/core/array/shuffle_spec.rb
133
198
  - spec/core/array/size_spec.rb
@@ -141,13 +206,6 @@ files:
141
206
  - spec/core/array/uniq_spec.rb
142
207
  - spec/core/array/unshift_spec.rb
143
208
  - spec/core/array/zip_spec.rb
144
- - spec/core/boolean/and_spec.rb
145
- - spec/core/boolean/inspect_spec.rb
146
- - spec/core/boolean/or_spec.rb
147
- - spec/core/boolean/singleton_class_spec.rb
148
- - spec/core/boolean/to_json_spec.rb
149
- - spec/core/boolean/to_s_spec.rb
150
- - spec/core/boolean/xor_spec.rb
151
209
  - spec/core/class/bridge_class_spec.rb
152
210
  - spec/core/class/extend_spec.rb
153
211
  - spec/core/class/fixtures/classes.rb
@@ -179,6 +237,11 @@ files:
179
237
  - spec/core/enumerator/new_spec.rb
180
238
  - spec/core/enumerator/next_spec.rb
181
239
  - spec/core/enumerator/rewind_spec.rb
240
+ - spec/core/false/and_spec.rb
241
+ - spec/core/false/inspect_spec.rb
242
+ - spec/core/false/or_spec.rb
243
+ - spec/core/false/to_s_spec.rb
244
+ - spec/core/false/xor_spec.rb
182
245
  - spec/core/hash/allocate_spec.rb
183
246
  - spec/core/hash/assoc_spec.rb
184
247
  - spec/core/hash/clear_spec.rb
@@ -259,8 +322,12 @@ files:
259
322
  - spec/core/module/append_features_spec.rb
260
323
  - spec/core/module/const_get_spec.rb
261
324
  - spec/core/module/const_set_spec.rb
325
+ - spec/core/module/fixtures/classes.rb
326
+ - spec/core/module/method_defined_spec.rb
327
+ - spec/core/module/module_function_spec.rb
262
328
  - spec/core/module/undef_method_spec.rb
263
329
  - spec/core/nil/and_spec.rb
330
+ - spec/core/nil/dup_spec.rb
264
331
  - spec/core/nil/inspect_spec.rb
265
332
  - spec/core/nil/nil_spec.rb
266
333
  - spec/core/nil/or_spec.rb
@@ -268,7 +335,6 @@ files:
268
335
  - spec/core/nil/to_f_spec.rb
269
336
  - spec/core/nil/to_h_spec.rb
270
337
  - spec/core/nil/to_i_spec.rb
271
- - spec/core/nil/to_json_spec.rb
272
338
  - spec/core/nil/to_s_spec.rb
273
339
  - spec/core/nil/xor_spec.rb
274
340
  - spec/core/numeric/abs_spec.rb
@@ -334,6 +400,7 @@ files:
334
400
  - spec/core/string/element_reference_spec.rb
335
401
  - spec/core/string/empty_spec.rb
336
402
  - spec/core/string/end_with_spec.rb
403
+ - spec/core/string/fixtures/classes.rb
337
404
  - spec/core/string/format_spec.rb
338
405
  - spec/core/string/gsub_spec.rb
339
406
  - spec/core/string/include_spec.rb
@@ -374,8 +441,19 @@ files:
374
441
  - spec/core/time/month_spec.rb
375
442
  - spec/core/time/now_spec.rb
376
443
  - spec/core/time/saturday_spec.rb
444
+ - spec/core/true/and_spec.rb
445
+ - spec/core/true/inspect_spec.rb
446
+ - spec/core/true/or_spec.rb
447
+ - spec/core/true/to_s_spec.rb
448
+ - spec/core/true/xor_spec.rb
449
+ - spec/core_ext/array/element_reference_spec.rb
450
+ - spec/core_ext/array/equal_value_spec.rb
451
+ - spec/core_ext/array/fill_spec.rb
452
+ - spec/core_ext/array/reduce_spec.rb
377
453
  - spec/core_ext/array/to_json_spec.rb
378
454
  - spec/core_ext/basic_object/send_spec.rb
455
+ - spec/core_ext/boolean/singleton_class_spec.rb
456
+ - spec/core_ext/boolean/to_json_spec.rb
379
457
  - spec/core_ext/class/_inherited_spec.rb
380
458
  - spec/core_ext/class/proc_methods_spec.rb
381
459
  - spec/core_ext/class/singleton_methods_spec.rb
@@ -385,6 +463,26 @@ files:
385
463
  - spec/core_ext/native/initialize_spec.rb
386
464
  - spec/core_ext/native/method_missing_spec.rb
387
465
  - spec/core_ext/native/to_native_spec.rb
466
+ - spec/core_ext/nil/to_json_spec.rb
467
+ - spec/date.rb
468
+ - spec/fileutils.rb
469
+ - spec/filters/ancestors.rb
470
+ - spec/filters/array_delete.rb
471
+ - spec/filters/array_fetch.rb
472
+ - spec/filters/array_first.rb
473
+ - spec/filters/array_flatten.rb
474
+ - spec/filters/array_intersection.rb
475
+ - spec/filters/array_join.rb
476
+ - spec/filters/array_subclasses.rb
477
+ - spec/filters/block_args.rb
478
+ - spec/filters/coerce_integer.rb
479
+ - spec/filters/frozen.rb
480
+ - spec/filters/mocks.rb
481
+ - spec/filters/should_receive.rb
482
+ - spec/filters/tainted.rb
483
+ - spec/fixtures/class.rb
484
+ - spec/fixtures/class_variables.rb
485
+ - spec/fixtures/constants.rb
388
486
  - spec/grammar/alias_spec.rb
389
487
  - spec/grammar/and_spec.rb
390
488
  - spec/grammar/array_spec.rb
@@ -413,6 +511,7 @@ files:
413
511
  - spec/grammar/module_spec.rb
414
512
  - spec/grammar/nil_spec.rb
415
513
  - spec/grammar/not_spec.rb
514
+ - spec/grammar/nth_ref_spec.rb
416
515
  - spec/grammar/op_asgn1_spec.rb
417
516
  - spec/grammar/op_asgn2_spec.rb
418
517
  - spec/grammar/or_spec.rb
@@ -421,6 +520,7 @@ files:
421
520
  - spec/grammar/sclass_spec.rb
422
521
  - spec/grammar/self_spec.rb
423
522
  - spec/grammar/str_spec.rb
523
+ - spec/grammar/string_spec.rb
424
524
  - spec/grammar/strscan/check_spec.rb
425
525
  - spec/grammar/strscan/scan_spec.rb
426
526
  - spec/grammar/super_spec.rb
@@ -430,27 +530,53 @@ files:
430
530
  - spec/grammar/while_spec.rb
431
531
  - spec/grammar/xstr_spec.rb
432
532
  - spec/grammar/yield_spec.rb
533
+ - spec/iconv.rb
433
534
  - spec/language/alias_spec.rb
434
535
  - spec/language/and_spec.rb
435
536
  - spec/language/array_spec.rb
436
537
  - spec/language/block_spec.rb
437
538
  - spec/language/break_spec.rb
438
539
  - spec/language/case_spec.rb
540
+ - spec/language/class_spec.rb
541
+ - spec/language/class_variable_spec.rb
439
542
  - spec/language/def_spec.rb
440
543
  - spec/language/defined_spec.rb
441
544
  - spec/language/ensure_spec.rb
545
+ - spec/language/execution_spec.rb
546
+ - spec/language/fixtures/array.rb
547
+ - spec/language/fixtures/block.rb
548
+ - spec/language/fixtures/break.rb
549
+ - spec/language/fixtures/ensure.rb
550
+ - spec/language/fixtures/literal_lambda.rb
551
+ - spec/language/fixtures/metaclass.rb
552
+ - spec/language/fixtures/module.rb
442
553
  - spec/language/fixtures/next.rb
554
+ - spec/language/fixtures/return.rb
555
+ - spec/language/fixtures/send.rb
556
+ - spec/language/fixtures/send_1.9.rb
557
+ - spec/language/fixtures/super.rb
558
+ - spec/language/fixtures/variables.rb
443
559
  - spec/language/fixtures/yield.rb
560
+ - spec/language/for_spec.rb
444
561
  - spec/language/hash_spec.rb
445
562
  - spec/language/if_spec.rb
446
563
  - spec/language/literal_lambda_spec.rb
447
564
  - spec/language/loop_spec.rb
448
565
  - spec/language/metaclass_spec.rb
566
+ - spec/language/module_spec.rb
449
567
  - spec/language/next_spec.rb
568
+ - spec/language/not_spec.rb
569
+ - spec/language/numbers_spec.rb
450
570
  - spec/language/or_spec.rb
571
+ - spec/language/order_spec.rb
572
+ - spec/language/precedence_spec.rb
451
573
  - spec/language/predefined_spec.rb
452
574
  - spec/language/proc_spec.rb
575
+ - spec/language/redo_spec.rb
453
576
  - spec/language/regexp_spec.rb
577
+ - spec/language/rescue_spec.rb
578
+ - spec/language/retry_spec.rb
579
+ - spec/language/return_spec.rb
454
580
  - spec/language/send_spec.rb
455
581
  - spec/language/singleton_class_spec.rb
456
582
  - spec/language/string_spec.rb
@@ -460,12 +586,33 @@ files:
460
586
  - spec/language/unless_spec.rb
461
587
  - spec/language/until_spec.rb
462
588
  - spec/language/variables_spec.rb
589
+ - spec/language/versions/array_1.9.rb
590
+ - spec/language/versions/case_1.9.rb
591
+ - spec/language/versions/hash_1.9.rb
592
+ - spec/language/versions/literal_lambda_1.9.rb
593
+ - spec/language/versions/not_1.9.rb
594
+ - spec/language/versions/send_1.9.rb
595
+ - spec/language/versions/symbol_1.9.rb
596
+ - spec/language/versions/variables_1.9.rb
463
597
  - spec/language/while_spec.rb
464
598
  - spec/language/yield_spec.rb
465
599
  - spec/library/date/new_spec.rb
466
600
  - spec/library/date/to_s_spec.rb
467
601
  - spec/library/date/today_spec.rb
602
+ - spec/mspec/guards/block_device.rb
603
+ - spec/mspec/guards/endian.rb
604
+ - spec/mspec/helpers/environment.rb
605
+ - spec/mspec/helpers/language_version.rb
606
+ - spec/mspec/helpers/tmp.rb
607
+ - spec/ospec/filter.rb
608
+ - spec/ospec/main.rb.erb
609
+ - spec/ospec/phantom.rb
610
+ - spec/ospec/runner.rb
611
+ - spec/ospec/sprockets.js
612
+ - spec/pp.rb
613
+ - spec/rbconfig.rb
468
614
  - spec/spec_helper.rb
615
+ - spec/yaml.rb
469
616
  homepage: http://opalrb.org
470
617
  licenses: []
471
618
  post_install_message:
@@ -493,11 +640,14 @@ summary: Ruby runtime and core library for javascript
493
640
  test_files:
494
641
  - spec/core/array/allocate_spec.rb
495
642
  - spec/core/array/append_spec.rb
643
+ - spec/core/array/array_spec.rb
496
644
  - spec/core/array/assoc_spec.rb
497
645
  - spec/core/array/at_spec.rb
646
+ - spec/core/array/choice_spec.rb
498
647
  - spec/core/array/clear_spec.rb
499
648
  - spec/core/array/clone_spec.rb
500
649
  - spec/core/array/collect_spec.rb
650
+ - spec/core/array/combination_spec.rb
501
651
  - spec/core/array/compact_spec.rb
502
652
  - spec/core/array/comparison_spec.rb
503
653
  - spec/core/array/concat_spec.rb
@@ -507,16 +657,18 @@ test_files:
507
657
  - spec/core/array/delete_if_spec.rb
508
658
  - spec/core/array/delete_spec.rb
509
659
  - spec/core/array/drop_spec.rb
660
+ - spec/core/array/drop_while_spec.rb
510
661
  - spec/core/array/dup_spec.rb
511
662
  - spec/core/array/each_index_spec.rb
512
663
  - spec/core/array/each_spec.rb
513
- - spec/core/array/element_reference_spec.rb
514
664
  - spec/core/array/empty_spec.rb
515
- - spec/core/array/equal_value_spec.rb
665
+ - spec/core/array/eql_spec.rb
516
666
  - spec/core/array/fetch_spec.rb
517
- - spec/core/array/fill_spec.rb
667
+ - spec/core/array/find_index_spec.rb
518
668
  - spec/core/array/first_spec.rb
669
+ - spec/core/array/fixtures/classes.rb
519
670
  - spec/core/array/flatten_spec.rb
671
+ - spec/core/array/frozen_spec.rb
520
672
  - spec/core/array/include_spec.rb
521
673
  - spec/core/array/index_spec.rb
522
674
  - spec/core/array/insert_spec.rb
@@ -530,17 +682,27 @@ test_files:
530
682
  - spec/core/array/minus_spec.rb
531
683
  - spec/core/array/multiply_spec.rb
532
684
  - spec/core/array/new_spec.rb
685
+ - spec/core/array/ntimes_spec.rb
533
686
  - spec/core/array/plus_spec.rb
534
687
  - spec/core/array/pop_spec.rb
535
688
  - spec/core/array/push_spec.rb
536
689
  - spec/core/array/rassoc_spec.rb
537
- - spec/core/array/reduce_spec.rb
538
690
  - spec/core/array/reject_spec.rb
539
691
  - spec/core/array/replace_spec.rb
540
692
  - spec/core/array/reverse_each_spec.rb
541
693
  - spec/core/array/reverse_spec.rb
542
694
  - spec/core/array/rindex_spec.rb
543
695
  - spec/core/array/select_spec.rb
696
+ - spec/core/array/shared/collect.rb
697
+ - spec/core/array/shared/enumeratorize.rb
698
+ - spec/core/array/shared/eql.rb
699
+ - spec/core/array/shared/index.rb
700
+ - spec/core/array/shared/inspect.rb
701
+ - spec/core/array/shared/join.rb
702
+ - spec/core/array/shared/keep_if.rb
703
+ - spec/core/array/shared/length.rb
704
+ - spec/core/array/shared/replace.rb
705
+ - spec/core/array/shared/slice.rb
544
706
  - spec/core/array/shift_spec.rb
545
707
  - spec/core/array/shuffle_spec.rb
546
708
  - spec/core/array/size_spec.rb
@@ -554,13 +716,6 @@ test_files:
554
716
  - spec/core/array/uniq_spec.rb
555
717
  - spec/core/array/unshift_spec.rb
556
718
  - spec/core/array/zip_spec.rb
557
- - spec/core/boolean/and_spec.rb
558
- - spec/core/boolean/inspect_spec.rb
559
- - spec/core/boolean/or_spec.rb
560
- - spec/core/boolean/singleton_class_spec.rb
561
- - spec/core/boolean/to_json_spec.rb
562
- - spec/core/boolean/to_s_spec.rb
563
- - spec/core/boolean/xor_spec.rb
564
719
  - spec/core/class/bridge_class_spec.rb
565
720
  - spec/core/class/extend_spec.rb
566
721
  - spec/core/class/fixtures/classes.rb
@@ -592,6 +747,11 @@ test_files:
592
747
  - spec/core/enumerator/new_spec.rb
593
748
  - spec/core/enumerator/next_spec.rb
594
749
  - spec/core/enumerator/rewind_spec.rb
750
+ - spec/core/false/and_spec.rb
751
+ - spec/core/false/inspect_spec.rb
752
+ - spec/core/false/or_spec.rb
753
+ - spec/core/false/to_s_spec.rb
754
+ - spec/core/false/xor_spec.rb
595
755
  - spec/core/hash/allocate_spec.rb
596
756
  - spec/core/hash/assoc_spec.rb
597
757
  - spec/core/hash/clear_spec.rb
@@ -672,8 +832,12 @@ test_files:
672
832
  - spec/core/module/append_features_spec.rb
673
833
  - spec/core/module/const_get_spec.rb
674
834
  - spec/core/module/const_set_spec.rb
835
+ - spec/core/module/fixtures/classes.rb
836
+ - spec/core/module/method_defined_spec.rb
837
+ - spec/core/module/module_function_spec.rb
675
838
  - spec/core/module/undef_method_spec.rb
676
839
  - spec/core/nil/and_spec.rb
840
+ - spec/core/nil/dup_spec.rb
677
841
  - spec/core/nil/inspect_spec.rb
678
842
  - spec/core/nil/nil_spec.rb
679
843
  - spec/core/nil/or_spec.rb
@@ -681,7 +845,6 @@ test_files:
681
845
  - spec/core/nil/to_f_spec.rb
682
846
  - spec/core/nil/to_h_spec.rb
683
847
  - spec/core/nil/to_i_spec.rb
684
- - spec/core/nil/to_json_spec.rb
685
848
  - spec/core/nil/to_s_spec.rb
686
849
  - spec/core/nil/xor_spec.rb
687
850
  - spec/core/numeric/abs_spec.rb
@@ -747,6 +910,7 @@ test_files:
747
910
  - spec/core/string/element_reference_spec.rb
748
911
  - spec/core/string/empty_spec.rb
749
912
  - spec/core/string/end_with_spec.rb
913
+ - spec/core/string/fixtures/classes.rb
750
914
  - spec/core/string/format_spec.rb
751
915
  - spec/core/string/gsub_spec.rb
752
916
  - spec/core/string/include_spec.rb
@@ -787,8 +951,19 @@ test_files:
787
951
  - spec/core/time/month_spec.rb
788
952
  - spec/core/time/now_spec.rb
789
953
  - spec/core/time/saturday_spec.rb
954
+ - spec/core/true/and_spec.rb
955
+ - spec/core/true/inspect_spec.rb
956
+ - spec/core/true/or_spec.rb
957
+ - spec/core/true/to_s_spec.rb
958
+ - spec/core/true/xor_spec.rb
959
+ - spec/core_ext/array/element_reference_spec.rb
960
+ - spec/core_ext/array/equal_value_spec.rb
961
+ - spec/core_ext/array/fill_spec.rb
962
+ - spec/core_ext/array/reduce_spec.rb
790
963
  - spec/core_ext/array/to_json_spec.rb
791
964
  - spec/core_ext/basic_object/send_spec.rb
965
+ - spec/core_ext/boolean/singleton_class_spec.rb
966
+ - spec/core_ext/boolean/to_json_spec.rb
792
967
  - spec/core_ext/class/_inherited_spec.rb
793
968
  - spec/core_ext/class/proc_methods_spec.rb
794
969
  - spec/core_ext/class/singleton_methods_spec.rb
@@ -798,6 +973,26 @@ test_files:
798
973
  - spec/core_ext/native/initialize_spec.rb
799
974
  - spec/core_ext/native/method_missing_spec.rb
800
975
  - spec/core_ext/native/to_native_spec.rb
976
+ - spec/core_ext/nil/to_json_spec.rb
977
+ - spec/date.rb
978
+ - spec/fileutils.rb
979
+ - spec/filters/ancestors.rb
980
+ - spec/filters/array_delete.rb
981
+ - spec/filters/array_fetch.rb
982
+ - spec/filters/array_first.rb
983
+ - spec/filters/array_flatten.rb
984
+ - spec/filters/array_intersection.rb
985
+ - spec/filters/array_join.rb
986
+ - spec/filters/array_subclasses.rb
987
+ - spec/filters/block_args.rb
988
+ - spec/filters/coerce_integer.rb
989
+ - spec/filters/frozen.rb
990
+ - spec/filters/mocks.rb
991
+ - spec/filters/should_receive.rb
992
+ - spec/filters/tainted.rb
993
+ - spec/fixtures/class.rb
994
+ - spec/fixtures/class_variables.rb
995
+ - spec/fixtures/constants.rb
801
996
  - spec/grammar/alias_spec.rb
802
997
  - spec/grammar/and_spec.rb
803
998
  - spec/grammar/array_spec.rb
@@ -826,6 +1021,7 @@ test_files:
826
1021
  - spec/grammar/module_spec.rb
827
1022
  - spec/grammar/nil_spec.rb
828
1023
  - spec/grammar/not_spec.rb
1024
+ - spec/grammar/nth_ref_spec.rb
829
1025
  - spec/grammar/op_asgn1_spec.rb
830
1026
  - spec/grammar/op_asgn2_spec.rb
831
1027
  - spec/grammar/or_spec.rb
@@ -834,6 +1030,7 @@ test_files:
834
1030
  - spec/grammar/sclass_spec.rb
835
1031
  - spec/grammar/self_spec.rb
836
1032
  - spec/grammar/str_spec.rb
1033
+ - spec/grammar/string_spec.rb
837
1034
  - spec/grammar/strscan/check_spec.rb
838
1035
  - spec/grammar/strscan/scan_spec.rb
839
1036
  - spec/grammar/super_spec.rb
@@ -843,27 +1040,53 @@ test_files:
843
1040
  - spec/grammar/while_spec.rb
844
1041
  - spec/grammar/xstr_spec.rb
845
1042
  - spec/grammar/yield_spec.rb
1043
+ - spec/iconv.rb
846
1044
  - spec/language/alias_spec.rb
847
1045
  - spec/language/and_spec.rb
848
1046
  - spec/language/array_spec.rb
849
1047
  - spec/language/block_spec.rb
850
1048
  - spec/language/break_spec.rb
851
1049
  - spec/language/case_spec.rb
1050
+ - spec/language/class_spec.rb
1051
+ - spec/language/class_variable_spec.rb
852
1052
  - spec/language/def_spec.rb
853
1053
  - spec/language/defined_spec.rb
854
1054
  - spec/language/ensure_spec.rb
1055
+ - spec/language/execution_spec.rb
1056
+ - spec/language/fixtures/array.rb
1057
+ - spec/language/fixtures/block.rb
1058
+ - spec/language/fixtures/break.rb
1059
+ - spec/language/fixtures/ensure.rb
1060
+ - spec/language/fixtures/literal_lambda.rb
1061
+ - spec/language/fixtures/metaclass.rb
1062
+ - spec/language/fixtures/module.rb
855
1063
  - spec/language/fixtures/next.rb
1064
+ - spec/language/fixtures/return.rb
1065
+ - spec/language/fixtures/send.rb
1066
+ - spec/language/fixtures/send_1.9.rb
1067
+ - spec/language/fixtures/super.rb
1068
+ - spec/language/fixtures/variables.rb
856
1069
  - spec/language/fixtures/yield.rb
1070
+ - spec/language/for_spec.rb
857
1071
  - spec/language/hash_spec.rb
858
1072
  - spec/language/if_spec.rb
859
1073
  - spec/language/literal_lambda_spec.rb
860
1074
  - spec/language/loop_spec.rb
861
1075
  - spec/language/metaclass_spec.rb
1076
+ - spec/language/module_spec.rb
862
1077
  - spec/language/next_spec.rb
1078
+ - spec/language/not_spec.rb
1079
+ - spec/language/numbers_spec.rb
863
1080
  - spec/language/or_spec.rb
1081
+ - spec/language/order_spec.rb
1082
+ - spec/language/precedence_spec.rb
864
1083
  - spec/language/predefined_spec.rb
865
1084
  - spec/language/proc_spec.rb
1085
+ - spec/language/redo_spec.rb
866
1086
  - spec/language/regexp_spec.rb
1087
+ - spec/language/rescue_spec.rb
1088
+ - spec/language/retry_spec.rb
1089
+ - spec/language/return_spec.rb
867
1090
  - spec/language/send_spec.rb
868
1091
  - spec/language/singleton_class_spec.rb
869
1092
  - spec/language/string_spec.rb
@@ -873,9 +1096,30 @@ test_files:
873
1096
  - spec/language/unless_spec.rb
874
1097
  - spec/language/until_spec.rb
875
1098
  - spec/language/variables_spec.rb
1099
+ - spec/language/versions/array_1.9.rb
1100
+ - spec/language/versions/case_1.9.rb
1101
+ - spec/language/versions/hash_1.9.rb
1102
+ - spec/language/versions/literal_lambda_1.9.rb
1103
+ - spec/language/versions/not_1.9.rb
1104
+ - spec/language/versions/send_1.9.rb
1105
+ - spec/language/versions/symbol_1.9.rb
1106
+ - spec/language/versions/variables_1.9.rb
876
1107
  - spec/language/while_spec.rb
877
1108
  - spec/language/yield_spec.rb
878
1109
  - spec/library/date/new_spec.rb
879
1110
  - spec/library/date/to_s_spec.rb
880
1111
  - spec/library/date/today_spec.rb
1112
+ - spec/mspec/guards/block_device.rb
1113
+ - spec/mspec/guards/endian.rb
1114
+ - spec/mspec/helpers/environment.rb
1115
+ - spec/mspec/helpers/language_version.rb
1116
+ - spec/mspec/helpers/tmp.rb
1117
+ - spec/ospec/filter.rb
1118
+ - spec/ospec/main.rb.erb
1119
+ - spec/ospec/phantom.rb
1120
+ - spec/ospec/runner.rb
1121
+ - spec/ospec/sprockets.js
1122
+ - spec/pp.rb
1123
+ - spec/rbconfig.rb
881
1124
  - spec/spec_helper.rb
1125
+ - spec/yaml.rb