-
Hi,
I tried to escape from a method with `return`, but it fails when it is inside a block.
``` ruby
def f
(1..3).each do |i|
return i
end
return 0
end
p f
```
Expected: prints `1`
Actu…
yhara updated
11 years ago
-
Working on getting the rails tests to pass, and found this:
```
5) Failure:
RenderStreaming::StreamingTest#test_rendering_with_template_exception_logs_the_exception [/home/steveklabnik/src/rails/ac…
-
Because lib-topaz is written in Ruby, it picks up things like monkey patching where MRI would not.
This program monkey patches `Array#empty?` and then calls `Array#first`:
```
class Array
def emp…
-
I'm in the latest master. It's very easy to reproduce:
```
$ bin/topaz -e "Module.new.dup"
Segmentation fault: 11
```
There's not a specific rubyspec for it but I guess [Object#dup's](https://github…
-
We stumbled upon a weird issue when requiring [axiom](https://github.com/dkubb/axiom) crashes under jruby 1.9. Here's backtrace:
```
NoMethodError: undefined method `object_id' for #
dee…
-
When dealing with paths with glob characters there are discrepancies between MRI and JRuby:
``` irb
>> RUBY_ENGINE
=> "ruby"
>> Dir["apps\\{1\\}/*"]
=> ["apps{1}/test[1]"]
```
``` irb
>> RUBY_ENGINE…
-
The `ruby` executable provides the `-F` option for specifying the field separator for use with -a. For example, this command:
```
echo "foo:bar:baz" | ruby -F: -nae 'puts $F[0];'
```
Will output "fo…
-
```
$ cat t.rb
=begin
puts :comment
=end
puts :code
$ bin/topaz t.rb
t.rb: line 1 (SyntaxError)
$ ruby t.rb
code
```
A real world example can be found in [RubySpec](https://github.com/rubyspec/rubys…
-
I'm having trouble getting my dev environment bootstrapped.
Following [the README](https://github.com/jruby/jruby/blob/master/docs/README.test.md), I've been trying out the test suite. `ant test` see…
-
Hi guys,
Great job on JRuby, we're making the switch and it's super fast in 1.8 mode anyway.
Here's a bug we've hit in our test suite though:
``` ruby
irb
irb(main):001:0> Time.at(0)
# => Wed Dec 3…