Skip to content

Commit 8257bd6

Browse files
committed
fix JRuby on Rails
1 parent 871bbb5 commit 8257bd6

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

test_projects/rails/rspec_rails/Gemfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ source "https://rubygems.org"
77
gem "rspec-rails"
88
gem "simplecov", path: "../../.."
99

10+
if defined?(JRUBY_VERSION)
11+
gem "activerecord-jdbcsqlite3-adapter"
12+
else
13+
gem "sqlite3", "~> 1.4"
14+
end
15+
1016
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
1117
gem "rails", "~> 6.0.2", ">= 6.0.2.1"
12-
# Use sqlite3 as the database for Active Record
13-
gem "sqlite3", "~> 1.4"
1418
# Use Puma as the app server
1519
gem "puma", "~> 4.1"
1620
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder

test_projects/rails/rspec_rails/Gemfile.lock

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ GEM
6868
bindex (0.8.1)
6969
bootsnap (1.4.5)
7070
msgpack (~> 1.0)
71+
bootsnap (1.4.5-java)
72+
msgpack (~> 1.0)
7173
builder (3.2.4)
7274
byebug (11.1.1)
7375
capybara (3.31.0)
@@ -103,12 +105,17 @@ GEM
103105
mini_portile2 (2.4.0)
104106
minitest (5.14.0)
105107
msgpack (1.3.3)
108+
msgpack (1.3.3-java)
106109
nio4r (2.5.2)
110+
nio4r (2.5.2-java)
107111
nokogiri (1.10.8)
108112
mini_portile2 (~> 2.4.0)
113+
nokogiri (1.10.8-java)
109114
public_suffix (4.0.3)
110115
puma (4.3.1)
111116
nio4r (~> 2.0)
117+
puma (4.3.1-java)
118+
nio4r (~> 2.0)
112119
rack (2.2.2)
113120
rack-test (1.1.0)
114121
rack (>= 1.0, < 3)
@@ -173,8 +180,11 @@ GEM
173180
sqlite3 (1.4.2)
174181
thor (1.0.1)
175182
thread_safe (0.3.6)
183+
thread_safe (0.3.6-java)
176184
tzinfo (1.2.6)
177185
thread_safe (~> 0.1)
186+
tzinfo-data (1.2019.3)
187+
tzinfo (>= 1.0.0)
178188
web-console (4.0.1)
179189
actionview (>= 6.0.0)
180190
activemodel (>= 6.0.0)
@@ -186,12 +196,15 @@ GEM
186196
selenium-webdriver (>= 3.0, < 4.0)
187197
websocket-driver (0.7.1)
188198
websocket-extensions (>= 0.1.0)
199+
websocket-driver (0.7.1-java)
200+
websocket-extensions (>= 0.1.0)
189201
websocket-extensions (0.1.4)
190202
xpath (3.2.0)
191203
nokogiri (~> 1.8)
192204
zeitwerk (2.2.2)
193205

194206
PLATFORMS
207+
java
195208
ruby
196209

197210
DEPENDENCIES

0 commit comments

Comments
 (0)