-
**Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?**
- [X] Yes!
**What is the complete output of `gem install` or `bundle ins…
-
test code
`puts 1.0 / 7`
MRI
`0.14285714285714285`
TruffleRuby
`0.142857142857143`
this may prevent truffle ruby being a drop in replacement for MRI in some situation
-
Since Ruby 2.4, `sprintf('%.2f')` returns a different accuracy.
MRI (2.5.3)
```ruby
sprintf('%.2f', '1.025')
# => "1.02"
```
TruffleRuby (1.0.0-rc10)
```ruby
sprintf('%.2f', '1.025')
…
deepj updated
2 years ago
-
The following code has different behavior in TruffleRuby 22.1.0 and CRuby 3.1.2.
```Ruby
a = [1,2,3]
h = {}
until a.empty?
p a
h[a.shift] ||= false
end
p h
```
See outputs below:
```Rub…
-
Github Actions has been support Ubuntu 22.04 platform (as public beta) and we can try it.
(Ref. https://github.com/actions/virtual-environments/issues/5490)
However, seems that setup-ruby acti…
-
```ruby
puts RUBY_DESCRIPTION
p sprintf('%c', 0xf).bytes
p sprintf('%c', 0xff).bytes
p sprintf('%c', 0xffff).bytes
p sprintf('%c', 0xfffffff).bytes
```
```
ruby 2.7.3p183 (2021-04-05 revisio…
-
In old Ruby times this was an issue with the standard Date library. But it was fixed in Ruby 2.4
MRI (2.5.3)
```ruby
datetime = DateTime.strptime('2018-12-07 11:00:29 -06:00', '%Y-%m-%d %H:%M:%…
deepj updated
2 years ago
-
When the concurrent-ruby is installed from master on JRuby it will not work because the java extensions are not compiled. Possible solutions:
1. write extconf.rb which is able to compile java extens…
-
Comments like https://github.com/sporkmonger/addressable/blob/a079a52ba5a5cb43cadd5edaa684ee6874dafaa8/spec/addressable/idna_spec.rb#L3 (and in other files) might be intended as magic comments for Rub…
-
I'm using:
```ruby
def foo(s)
/a/ =~ s
end
loop do
foo("abc")
end
```
and
```
jt -u jvm-ce graph --method 'block in ' test.rb
```
(needs https://github.com/oracle/truffleruby/compa…