Questions tagged [ruby-2.3]

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

Ruby 2.3.0 was released on on 25 Dec 2015. It is the first stable release of the Ruby 2.3 series.

It introduces some new features (like the safe navigation operator and frozen string literals) and various performance improvements. A description of new features in Ruby 2.3 is at https://www.ruby-lang.org/en/news/2015/12/25/ruby-2-3-0-released/.

This tag is intended for questions specific to version 2.3 of Ruby.

164 questions
1
vote
0 answers

Errors/warnings installing visualruby on windows (Ruby 2.3.1)

Gem install cmd output: F:\temp>gem install visualruby Fetching: cairo-1.15.2-x86-mingw32.gem (100%) Successfully installed cairo-1.15.2-x86-mingw32 Fetching: glib2-3.0.9-x86-mingw32.gem (100%) Successfully installed…
kehtyr
  • 47
  • 1
  • 6
1
vote
0 answers

Best practices for using RVM to run Ruby on Rails 5 on a web server

I realize that this question has already been asked a million times, but after days of searching I am still yet to find a suitable answer. I would like to run Ruby on Rails 5 on Centos 7. The default Ruby currently packaged with Centos 7 is 2.0.0.…
Vadim
  • 1,916
  • 2
  • 19
  • 39
1
vote
1 answer

uninitialized constant ActiveMerchant::Billing::Integrations::Helper (NameError) in Rails 5

I am try to integrate allpay payment. gem 'rails', '>= 5.0.0.rc1', '< 5.1' gem 'activemerchant', :require => 'active_merchant' gem 'active_merchant_allpay' But i am getting: uninitialized constant ActiveMerchant::Billing::Integrations::Helper…
Govind shaw
  • 407
  • 4
  • 12
1
vote
2 answers

Cannot update to Ruby 2.3.1

I am trying to update to Ruby 2.3.1. I downloaded from here, and did: ./configure make sudo make install Then I got: /home/sawa/Downloads/ruby-2.3.1/lib/rubygems/installer.rb:227:in `check_executable_overwrite': no implicit conversion of nil into…
sawa
  • 165,429
  • 45
  • 277
  • 381
1
vote
1 answer

idle connection in postgres causing process to stuck or result in error

We have Postgres as our backend database . Our process runs some job(i.e it does some insert/update in DB) and then sleep for an hour. This what we have noticed. While the time our process is sleeping our Postgres connection status is seen as…
Viren
  • 5,812
  • 6
  • 45
  • 98
1
vote
1 answer

Ruby 2.3 squiggly heredoc syntax not recognized in RubyMine

I'm using RubyMine to write code for an app that's using Ruby 2.3. I have RubyMine set to use Ruby 2.3 (I've tried the auto-detected rbenv 2.3.0 and also pointing to the binary manually): But it doesn't work with the new squiggly heredoc syntax.…
Darth Egregious
  • 18,184
  • 3
  • 32
  • 54
1
vote
2 answers

How to connect to FTPS using Ruby 2.3?

From what I see latest Ruby that supported FTPS was 1.8. I found some gems that can connect to FTPS, but they were no updated in several years. Did anyone had to do this recently? What gem did you use?
Andrew Bezzub
  • 15,744
  • 7
  • 51
  • 73
0
votes
2 answers

Mysql2 error in starting rails server in mac m1

I have installed mysql2 in mac m1 using the below command gem uninstall mysql2 gem install mysql2 -v '0.3.21' -- --srcdir=/usr/local/Cellar/mysql/8.0.28_1/bin/include --with-mysql-include=/usr/local/Cellar/mysql/8.0.28_1/include/mysql…
0
votes
0 answers

How do I build an Ubuntu/Ruby image that also contains foreman?

I want to build a Docker Ubuntu image with Ruby 2.3.8 and loaded with foreman. I constructed this Dockerfile # sshd # # VERSION 0.0.1 FROM drecom/ubuntu-base:latest MAINTAINER Drecom Technical Development Department…
Dave
  • 15,639
  • 133
  • 442
  • 830
0
votes
2 answers

Ruby on rails, How to compare two hashesh value to each other's?

I am trying compare one hash values to another hash values of perticular each key's. like below as db_data = [{"user_id"=>"000879", "dept"=>"1066", "type"=>"A", "rate"=>"999"}, {"user_id"=>"000879", "dept"=>"1066","type"=>"AB",…
vvp.rb
  • 27
  • 4
0
votes
0 answers

Join MySQL tables in ruby on rails 2.3.3 only if all rows from one table are in another table

I need to select all rows from table Client where Service has all certificates the Client needs. Client client_id Service service_id Certificate certificate_id ClienCertificate client_id / certificate_id 1 2 2 3 3 …
0
votes
0 answers

Two dimensional array which have CSV::Row object returns different result in ruby 2.3 and ruby 2.6

Two dimensional array has the element which is CSV::Row object like this. [[csv_row_object]] I tried to flatten this array and got different result in ruby 2.3 and 2.6. why different result? # in Ruby 2.6(ruby 2.6.0rc1) [[#
Kouta Osabe
  • 121
  • 1
  • 10
0
votes
1 answer

Image doesn't display at the first visit, but display when tap inspect on console

I am making a communication app in Rails, but I have encountered a strange bug. Image dosen't display at the first visit on specific page. bug photo & no bug photo Detail The Bug occurs only at the first visit on this page. After the bug occurs, if…
Broly
  • 25
  • 1
  • 4
0
votes
1 answer

Ruby 1.8 vs 2.3 handling YAML config arrays differently

I'm trying to upgrade a server that has ruby scripts developed by another person. I'm a perl/php developer and no little about ruby, just trying to get the scripts to work that was developed with Ruby 1.8 and the scripts seems to behave differently…
rwfitzy
  • 413
  • 5
  • 16
0
votes
0 answers

ActiveRecord changes in Rails Upgrade from 4.2.5.1 to 4.2.7.1

I upgraded Rails from 4.2.5.1 to 4.2.7.1 and now some of my tests are failing because of an active record change: 2) HotelShell all room types have default and english description Failure/Error: @hotel_shell.save! ActiveRecord::RecordInvalid: …
maahd
  • 672
  • 2
  • 9
  • 30