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
0
votes
0 answers

Ruby 2.3.1 assignment changes on nil

I'm trying to understand if this is an error on Ruby 2.3.1 or 2.3.0. If the first return is the expected, IMHO this should work on both versions. Why a minor change and bugfixes produced different results? I'm currently facing the following problems…
AndreDurao
  • 5,600
  • 7
  • 41
  • 61
0
votes
2 answers

Ruby 2.3.1 sort_by function change?

Here's a small ruby script: p "ruby #{ RUBY_VERSION }p#{ RUBY_PATCHLEVEL }" p 100.times.collect{|i| i}.sort_by{|j| j % 1} I would have expect the same result from a version to another. In my case, it's not. Here's the results "ruby 2.2.3p173" [0,…
Rick
  • 3
  • 1
0
votes
1 answer

/dev/urandom to generate Random Number + ruby 2.3.0

Reading through the Ruby Doc 2.3.0 which states the strategy that Ruby code uses to generate a Random Number. openssl /dev/urandom Win32 But looking 2.3.0 Source I don't see any sign of /dev/urandom be used. Atleast 2.2.2 has /dev/urandom…
Viren
  • 5,812
  • 6
  • 45
  • 98
0
votes
1 answer

Ruby frozen string literal pragma order caused error

Given a file with Ruby 2.3.0p0: #!/usr/bin/env ruby # frozen_string_literal: true # Exit cleanly from an early interrupt Signal.trap("INT") { abort } This is fine. # frozen_string_literal: true #!/usr/bin/env ruby # Exit cleanly from an early…
Juanito Fatas
  • 9,419
  • 9
  • 46
  • 70
0
votes
1 answer

Ruby 2.3.0 segmentation fault on yield self using Rails 4.2.6

I tried upgrading a Rails application to Ruby 2.3.0 and Rails 4.2.6. Everything works in development. But when trying the production env. it crashes. When running rake assets:precompile the application throws an error on gems that is initialised…
trevligheten
  • 306
  • 2
  • 13
0
votes
1 answer

PG::UndefinedTable: ERROR: relation "carrinho" does not exist

I'm using rails 4, ruby 2.3 and have a problem. How solve this error? PG::UndefinedTable: ERROR: relation "carrinho" does not exist LINE 1: SELECT "carrinho".* FROM "carrinho" WHERE "carrinho"."id" I... ^ :…
Elton Santos
  • 571
  • 6
  • 32
0
votes
1 answer

Migrating database fails after upgrading to Ruby 2.3.0

I've updated to Ruby 2.3.0 and I'm having some issues when creating a new Rails app. After creating a simple new test app and scaffolding a resource, when trying to execute rake db:migrate I'm getting the following load error: MacBook-Pro:log…
medright
  • 138
  • 10
0
votes
1 answer

Extract Hash values using Hash#dig

h = { users: { u_548912: { name: "John", age: 30 }, u_598715: { name: "Doe", age: 30 } } } Given a hash like above, say I want to get user John, I can do h[:users].values.first[:name] # => "John" In…
sbs
  • 4,102
  • 5
  • 40
  • 54
-1
votes
1 answer

'joins' queries are not working on upgrading ruby from 2.0.0 to 2.3.8

I have just updated the ruby version of my project from ruby-2.0.0 to ruby-2.3.8. Now after update there seems to be a problem while using joins in rails and I am not getting why. Here is the code below. class User < ActiveRecord::Base …
-1
votes
1 answer

angularjs nomod error only on rails feature specs using compiled assets

In one of our rails and angularjs recently upgraded angularjs from 1.2.9 to 1.3.0, replaced bower with yarn and went from node 0.8.28 to 8.11.1. Everything works fine with the application in the UI. I fixed the missing module error in the app by…
Subash
  • 3,128
  • 6
  • 30
  • 44
-1
votes
1 answer

Rails 5 - Connectivity issue with MS SQL 2008

I am trying to build a ROR app with Ruby 2.3.3 and Rails 5.0.1 but when connecting to SQl server 2008 I am getting an error which says TinyTDS::Error (Adaptive server connection failed) I am using the latest version of tiny_tds gem (1.3.0) and…
-1
votes
1 answer

Using RVM via bash script

I wanted to write a small bash script to automatically setup the correct ruby version and gemset for a new project. For testing I have rvm installed with ruby 2.3.1 and two gemsets: foo and bar. Even a simple test like this doesn't return what…
Piotr Kruczek
  • 2,384
  • 11
  • 18
-1
votes
2 answers

readline error upon installing a new ruby version using rbenv

Trying to install ruby-2.3.1 using rbenv install 2.3.1. Following is the error trace from the above command that failed. BUILD FAILED (Amazon Linux AMI 2016.09 using ruby-build 20160602) Inspect or clean up the working tree at…
-2
votes
1 answer

Can't resolve incompatible character encoding in Jenkins

I am attempting to run a Cucumber (Ruby 2.3) Test Suite from Jenkins that tests whether or not 2-4 byte UTF-8 characters are valid names for groups. I have tried a number of solutions and have been searching for days attempting to find an issue…
Easton Bornemeier
  • 1,918
  • 8
  • 22
1 2 3
10
11