I switched from MRI to JRuby and am now getting an error on rails+puma startup:
$ jruby -S rails s puma
TypeError: no implicit conversion of Regexp into String
join at org/jruby/RubyArray.java:1760
<top> at /Users/z/bin/spring:11
load at org/jruby/RubyKernel.java:955
<top> at /Users/z/bin/rails:3
rake
commands run fine.
Here is my environment:
$ rvm list
rvm rubies
=* jruby-9.1.12.0 [ x86_64 ]
ruby-2.3.3 [ x86_64 ]
# => - current
# =* - current && default
# * - default
$ jruby -v
jruby 9.1.12.0 (2.3.3) 2017-06-15 33c6439 Java HotSpot(TM) 64-Bit Server VM 25.141-b15 on 1.8.0_141-b15 +jit [darwin-x86_64]
$ gem -v
2.6.11
$ java -version
java version "1.8.0_141"
Java(TM) SE Runtime Environment (build 1.8.0_141-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.141-b15, mixed mode)
$ head Gemfile
source 'https://rubygems.org'
ruby '2.3.3', engine: 'jruby', engine_version: '9.1.12.0'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.0.0', '>= 5.0.0.1'
gem 'active_model_serializers'
# Use Postgres as database
# gem 'pg'
# gem 'pg', '0.17.1', :platform => :jruby, :git => 'git://github.com/headius/jruby-pg.git', :branch => :master
gem 'activerecord-jdbcmysql-adapter', '~> 5.0.pre1'
gem 'puma'
Wondering if the community has seen anything similar. I tried using bundle exec rails s puma
too - same issue.
The RubyGems fix mentioned at https://stackoverflow.com/a/35352031/1445604 did not help.
not sure what spring
should do on JRuby - probably doesn't work, don't use it
also gem 'activerecord-jdbcpostgresql-adapter'
doesn't (yet) support AR 5.x