For issues relating to development in Ruby, version 2.5. If your question applies to Ruby in general, use the tag [ruby].
Questions tagged [ruby-2.5]
47 questions
8
votes
2 answers
Wait for a thread to die in Ruby
It appears that, in Ruby 2.4 and 2.5, threads don't die as soon as you invoke #kill on them. This code snippet will print Not dead a few times:
thread = Thread.new { loop {} }
thread.kill
puts "Not dead" while thread.alive?
I'd like to block…

Aaron Christiansen
- 11,584
- 5
- 52
- 78
7
votes
1 answer
Dropbox directory renaming resulting in 'URI::InvalidURIError: bad URI' on asset precompilation
I just upgraded my Dropbox account from a personal account to a business account. As a result it changed my main dropbox name from just 'Dropbox' to 'Company Name Dropbox'.
Now when I try to either launch my rails app or do a rails assets:precompile…

marcamillion
- 32,933
- 55
- 189
- 380
6
votes
3 answers
undefined method `get?' for 302:Integer
I like to upgrade the ruby version from 2.4.2 to 2.5.0 in my rails application.
All specs/tests fail where I use turbolinks.
Is there a known issue with turbolinks and ruby 2.5.0?
Here is the output on the terminal.
Failure/Error:…

DenicioCode
- 8,668
- 4
- 18
- 33
5
votes
1 answer
Timeout error when making get request on specific site using ruby 2.5.3
Can anyone get a proper response from the site www.coupang.com?
I keep making requests to "https://www.coupang.com/" and I get an error 9 out of 10 times.(Sometimes it works! Surprisingly.)
Traceback (most recent call last):
14: from…

Jamie
- 61
- 4
5
votes
1 answer
What happen if i use ruby version 2.5.1 with rails version 2.3.18?
What happen if i use ruby version 2.5.1 with rails version 2.3.18 ?
I had rails application built on rails 2.3.18 and ruby 1.9.2p320,
I want to upgrade version of ruby only not the rails is it possible ?
What are the challenges i have to face with…

dr. strange
- 665
- 7
- 22
4
votes
2 answers
Undefined method `filter' for array
So I am trying to solve a class problem/homework on repl.it, in ruby, and this is the error listing I'm given.
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]
undefined method `filter' for [{:r=>1, :c=>0}, {:r=>0,…

kchak
- 7,570
- 4
- 20
- 31
4
votes
2 answers
Why isn't two-spaced YAML parsed like four-spaced YAML?
I'm seeing strange behavior when parsing YAML (using Ruby 2.5/Psych) created using two space indentations. The same file, indented with four spaces per line works -- to my mind -- as expected.
Two spaces:
windows:
- shell:
panes:
- echo…

pdoherty926
- 9,895
- 4
- 37
- 68
3
votes
6 answers
Your Ruby version is 2.6.0, but your Gemfile specified 2.5.0
Having trouble doing bundle.
My project is using 2.5.0 but every time i do ruby -v it gives me ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin18]
I am using rbenv and my rbenv local is 2.5.0 and rbenv global is 2.5.0
Every time I do Bundle…

bilal
- 79
- 1
- 1
- 9
3
votes
1 answer
Removing constant results in constant still being available
Check that Object constant is defined
Module.const_defined?('Object')
#=> true
Remove the constant
Object.send(:remove_const, 'Object')
#=> Object
Check, that Object constant is removed
Module.const_defined?('Object')
#=> false
Now, how do the…

Andrey Deineko
- 51,333
- 10
- 112
- 145
3
votes
4 answers
windows 10 ruby2.5 rails 5.1.5 cannot load such file -- sqlite3/sqlite3_native (LoadError)
environment:
windows 10 ruby2.5 rails 5.1.5
problem:
cannot load such file -- sqlite3/sqlite3_native (LoadError)
I have try gem uninstall sqlite3 and gem install sqlite3 ,any solution on web has been try ,not working,anyone could help me? I need to…

宇文周
- 31
- 3
2
votes
1 answer
how to solve extra `table` & `modifiable` merging issue while while json parsing as OpenStruct
JSON.parse(response, object_class: OpenStruct) rescue response
My rails application has above line of code which is causing an weird issue. Here response is coming from an external API call and looks like…

Dev
- 794
- 1
- 9
- 21
2
votes
1 answer
Ruby Net::HTTP passing headers through the creation of request
Maybe I'm just blind but many post about passing headers in Net::HTTP follows the lines of
require 'net/http'
uri = URI("http://www.ruby-lang.org")
req = Net::HTTP::Get.new(uri)
req['some_header'] = "some_val"
res =…

Flip The Ewok
- 53
- 6
2
votes
1 answer
class method `self.` within class methods block `class << self` in Ruby
context: I'm currently working with the parser gem and trying to handle all cases of what is a public method.
I've written this next code, hoping it will fail on runtime. But it doesn't.
class Foo
class << self
def self.met
puts "I'm…

Ulysse BN
- 10,116
- 7
- 54
- 82
2
votes
1 answer
Permission denied @ rb_sysopen (Errno :: EACCES) error when trying to execute Ruby program via RubyMine 2019.1
I'm trying to execute a Ruby program (Ruby v2.5.3) on Windows 10 where I basically open a file (sample1.txt, sample2.txt) and append its contents (a list of 3 names) to an empty file (result.txt) and later sort the contents of file result.txt…

Tanveer Dey
- 53
- 1
- 7
2
votes
1 answer
Why does Puma respond slow or hang in clustered mode on Ruby 2.5.4
I'm adding this question because it took me a long time to even figure out that it was caused by upgrading to Ruby 2.5.4. I'm not sure of the minimal case that can reproduce this issue, but I'm running a Rails 5 app on Puma 3.11 in clustered mode…

mltsy
- 6,598
- 3
- 38
- 51