Questions tagged [ruby-2.5]

For issues relating to development in Ruby, version 2.5. If your question applies to Ruby in general, use the tag [ruby].

44 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
  • 9,515
  • 4
  • 44
  • 66
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
  • 29,563
  • 49
  • 161
  • 337
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:…
DenniJensen
  • 6,376
  • 3
  • 13
  • 31
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…
4
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
  • 51
  • 4
3
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,856
  • 2
  • 32
  • 54
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
  • 47,502
  • 10
  • 90
  • 121
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

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
  • 6,678
  • 2
  • 37
  • 63
2
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
  • 5,880
  • 4
  • 13
  • 22
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…
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
  • 5,344
  • 1
  • 30
  • 41
2
votes
3 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
  • 49
  • 1
  • 9
2
votes
1 answer

Fastlane + Google Drive API - File not found for Google Sheet

I created an OAuth key which should enable me to view and fetch content from a Google sheet (i.e. CLI access to a sheet which gives read/write to all kabaminc.com people) by following the google-drive-ruby library docs, but I get a File Not Found…
Wanda B.
  • 111
  • 1
  • 10
2
votes
1 answer

Eventmachine 1.2.7 build fails with Ruby 2.5.1 on Amazon Linux AMI - "rhel fedora"

Facing an issue while installing eventmachine gem on Amazon linux ami, works fine on ruby-2.3.6, breaks with ruby-2.5.1 Steps: gem install eventmachine Note: gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC) Error logs: Building native…
shivam_v
  • 61
  • 10
1
2 3