Skip to content

Commit dc8b6d2

Browse files
committed
downgraded to ruby 2.6.5 and alpine3.9 due to headless chrome errors
1 parent 420ce0c commit dc8b6d2

File tree

9 files changed

+26
-77
lines changed

9 files changed

+26
-77
lines changed

Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.7.0-alpine3.11
1+
FROM ruby:2.6.5-alpine3.9
22

33
RUN gem install bundler:2.1.4
44

Dockerfile.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.7.0-alpine3.11
1+
FROM ruby:2.6.5-alpine3.9
22

33
RUN gem install bundler:2.1.4
44

@@ -20,14 +20,14 @@ RUN apk update && apk upgrade \
2020
&& echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories \
2121
&& echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories \
2222
&& apk add --no-cache \
23-
chromium@edge=79.0.3945.130-r0 \
23+
chromium@edge=72.0.3626.121-r0 \
2424
nss@edge \
2525
&& rm -rf /var/lib/apt/lists/* \
2626
/var/cache/apk/* \
2727
/usr/share/man \
2828
/tmp/*
2929

30-
RUN apk add chromium-chromedriver@edge=79.0.3945.130-r0
30+
RUN apk add chromium-chromedriver@edge=72.0.3626.121-r0
3131

3232
ENV CHROME_BIN=/usr/bin/chromium-browser \
3333
CHROME_PATH=/usr/lib/chromium/

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ group :development, :test do
2222
gem 'capybara'
2323
gem 'webpacker', '~> 4.0'
2424
gem 'sqlite3', '~> 1.3.13'
25-
gem 'selenium-webdriver'
25+
gem 'selenium-webdriver', '~> 3.142', '>= 3.142.7'
2626
gem 'puma'
2727
gem 'simplecov', require: false, group: :test
2828
gem 'byebug'

Gemfile.lock

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,18 @@ GEM
5454
i18n (>= 0.7, < 2)
5555
minitest (~> 5.1)
5656
tzinfo (~> 1.1)
57-
addressable (2.5.2)
58-
public_suffix (>= 2.0.2, < 4.0)
57+
addressable (2.7.0)
58+
public_suffix (>= 2.0.2, < 5.0)
5959
arel (9.0.0)
6060
builder (3.2.3)
6161
byebug (11.0.0)
62-
capybara (3.10.0)
62+
capybara (3.31.0)
6363
addressable
6464
mini_mime (>= 0.1.3)
6565
nokogiri (~> 1.8)
6666
rack (>= 1.6.0)
6767
rack-test (>= 0.6.3)
68-
regexp_parser (~> 1.2)
68+
regexp_parser (~> 1.5)
6969
xpath (~> 3.2)
7070
cells (4.1.7)
7171
declarative-builder (< 0.2.0)
@@ -78,8 +78,7 @@ GEM
7878
cells-rails (0.0.9)
7979
actionpack (>= 3.0)
8080
cells (>= 4.1.6, < 5.0.0)
81-
childprocess (0.9.0)
82-
ffi (~> 1.0, >= 1.0.11)
81+
childprocess (3.0.0)
8382
coderay (1.1.2)
8483
concurrent-ruby (1.1.5)
8584
crack (0.4.3)
@@ -98,7 +97,6 @@ GEM
9897
uber (< 0.2.0)
9998
docile (1.3.2)
10099
erubi (1.8.0)
101-
ffi (1.9.25)
102100
generator_spec (0.9.4)
103101
activesupport (>= 3.0.0)
104102
railties (>= 3.0.0)
@@ -119,11 +117,11 @@ GEM
119117
mimemagic (~> 0.3.2)
120118
method_source (0.9.2)
121119
mimemagic (0.3.3)
122-
mini_mime (1.0.1)
120+
mini_mime (1.0.2)
123121
mini_portile2 (2.4.0)
124122
minitest (5.11.3)
125123
nio4r (2.5.2)
126-
nokogiri (1.10.5)
124+
nokogiri (1.10.7)
127125
mini_portile2 (~> 2.4.0)
128126
pipetree (0.1.1)
129127
pry (0.12.2)
@@ -132,10 +130,10 @@ GEM
132130
pry-byebug (3.8.0)
133131
byebug (~> 11.0)
134132
pry (~> 0.10)
135-
public_suffix (3.0.3)
133+
public_suffix (4.0.3)
136134
puma (4.3.1)
137135
nio4r (~> 2.0)
138-
rack (2.0.8)
136+
rack (2.1.2)
139137
rack-proxy (0.6.5)
140138
rack
141139
rack-test (1.1.0)
@@ -171,7 +169,7 @@ GEM
171169
reform-rails (0.1.7)
172170
activemodel (>= 3.2)
173171
reform (>= 2.2.0)
174-
regexp_parser (1.2.0)
172+
regexp_parser (1.6.0)
175173
representable (3.0.4)
176174
declarative (< 0.1.0)
177175
declarative-option (< 0.2.0)
@@ -193,11 +191,11 @@ GEM
193191
rspec-mocks (~> 3.8.0)
194192
rspec-support (~> 3.8.0)
195193
rspec-support (3.8.0)
196-
rubyzip (1.3.0)
194+
rubyzip (2.2.0)
197195
safe_yaml (1.0.5)
198-
selenium-webdriver (3.14.1)
199-
childprocess (~> 0.5)
200-
rubyzip (~> 1.2, >= 1.2.2)
196+
selenium-webdriver (3.142.7)
197+
childprocess (>= 0.5, < 4.0)
198+
rubyzip (>= 1.2.2)
201199
simplecov (0.18.0)
202200
docile (~> 1.1)
203201
simplecov-html (~> 0.11.0)
@@ -259,7 +257,7 @@ DEPENDENCIES
259257
pry-byebug
260258
puma
261259
rspec-rails (~> 3.8)
262-
selenium-webdriver
260+
selenium-webdriver (~> 3.142, >= 3.142.7)
263261
simplecov
264262
sqlite3 (~> 1.3.13)
265263
trailblazer

builder/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source 'https://rubygems.org'
22
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33

4-
ruby '2.7.0'
4+
ruby '2.6.5'
55

66
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
77
gem 'rails', '~> 5.2.0'

builder/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ DEPENDENCIES
177177
webpacker
178178

179179
RUBY VERSION
180-
ruby 2.7.0p0
180+
ruby 2.6.5p114
181181

182182
BUNDLED WITH
183183
2.1.4

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313
- ./:/app
1414
- gem-volume:/usr/local/bundle
1515
- node-volume:/app/node_modules
16-
command: "bundle exec rails server"
16+
command: "bundle exec rails server -b 0.0.0.0"
1717
user: ${CURRENT_UID}
1818

1919
webpack-watcher:

docs/contribute/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ You will need to install docker and docker-compose:
3636
In order to migrate the database and install yarn packages, do:
3737

3838
```shell
39-
docker-compose run --rm dummy rake db:migrate
39+
docker-compose run --rm dummy bundle exec rake db:setup
4040
docker-compose run --rm dummy yarn install
4141
docker-compose run --rm dummy sh -c "cd builder && yarn install"
4242
docker-compose run --rm dummy sh -c "cd spec/dummy && yarn install"
4343
```
44-
If you already created sqlite files locally in `spec/dummy/db`, the command `docker-compose run --rm dummy rake db:migrate` will fail. Please remove the locally created sqlite files and rerun `docker-compose run --rm dummy rake db:migrate`
44+
If you already created sqlite files locally in `spec/dummy/db`, the command `docker-compose run --rm dummy bundle exec rake db:migrate` will fail. Please remove the locally created sqlite files and rerun `docker-compose run --rm dummy bundle exec rake db:migrate`
4545

4646
You might need to redo these steps if new migrations or yarn packages are added/updated.
4747

@@ -120,7 +120,7 @@ To assure this project is and remains in great condition, we heavily rely on aut
120120

121121
```shell
122122
docker-compose run --rm test bash
123-
rake db:setup #once initially
123+
bundle exec rake db:setup #once initially
124124
bundle exec rspec spec/usage/components
125125
```
126126

spec/dummy/yarn.lock

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -4551,14 +4551,6 @@ minipass@^2.2.1, minipass@^2.3.3:
45514551
safe-buffer "^5.1.2"
45524552
yallist "^3.0.0"
45534553

4554-
minipass@^2.8.6, minipass@^2.9.0:
4555-
version "2.9.0"
4556-
resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.9.0.tgz#e713762e7d3e32fed803115cf93e04bca9fcc9a6"
4557-
integrity sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg==
4558-
dependencies:
4559-
safe-buffer "^5.1.2"
4560-
yallist "^3.0.0"
4561-
45624554
minipass@^3.0.0, minipass@^3.1.1:
45634555
version "3.1.1"
45644556
resolved "https://registry.yarnpkg.com/minipass/-/minipass-3.1.1.tgz#7607ce778472a185ad6d89082aa2070f79cedcd5"
@@ -4573,13 +4565,6 @@ minizlib@^1.1.0:
45734565
dependencies:
45744566
minipass "^2.2.1"
45754567

4576-
minizlib@^1.2.1:
4577-
version "1.3.3"
4578-
resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.3.3.tgz#2290de96818a34c29551c8a8d301216bd65a861d"
4579-
integrity sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==
4580-
dependencies:
4581-
minipass "^2.9.0"
4582-
45834568
mississippi@^3.0.0:
45844569
version "3.0.0"
45854570
resolved "https://registry.yarnpkg.com/mississippi/-/mississippi-3.0.0.tgz#ea0a3291f97e0b5e8776b363d5f0a12d94c67022"
@@ -4759,22 +4744,6 @@ node-libs-browser@^2.2.1:
47594744
util "^0.11.0"
47604745
vm-browserify "^1.0.1"
47614746

4762-
node-pre-gyp@*:
4763-
version "0.14.0"
4764-
resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.14.0.tgz#9a0596533b877289bcad4e143982ca3d904ddc83"
4765-
integrity sha512-+CvDC7ZttU/sSt9rFjix/P05iS43qHCOOGzcr3Ry99bXG7VX953+vFyEuph/tfqoYu8dttBkE86JSKBO2OzcxA==
4766-
dependencies:
4767-
detect-libc "^1.0.2"
4768-
mkdirp "^0.5.1"
4769-
needle "^2.2.1"
4770-
nopt "^4.0.1"
4771-
npm-packlist "^1.1.6"
4772-
npmlog "^4.0.2"
4773-
rc "^1.2.7"
4774-
rimraf "^2.6.1"
4775-
semver "^5.3.0"
4776-
tar "^4.4.2"
4777-
47784747
node-pre-gyp@^0.10.0:
47794748
version "0.10.3"
47804749
resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.10.3.tgz#3070040716afdc778747b61b6887bf78880b80fc"
@@ -7163,19 +7132,6 @@ tar@^4:
71637132
safe-buffer "^5.1.2"
71647133
yallist "^3.0.2"
71657134

7166-
tar@^4.4.2:
7167-
version "4.4.13"
7168-
resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.13.tgz#43b364bc52888d555298637b10d60790254ab525"
7169-
integrity sha512-w2VwSrBoHa5BsSyH+KxEqeQBAllHhccyMFVHtGtdMpF4W7IRWfZjFiQceJPChOeTsSDVUpER2T8FA93pr0L+QA==
7170-
dependencies:
7171-
chownr "^1.1.1"
7172-
fs-minipass "^1.2.5"
7173-
minipass "^2.8.6"
7174-
minizlib "^1.2.1"
7175-
mkdirp "^0.5.0"
7176-
safe-buffer "^5.1.2"
7177-
yallist "^3.0.3"
7178-
71797135
terser-webpack-plugin@^1.4.3:
71807136
version "1.4.3"
71817137
resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.4.3.tgz#5ecaf2dbdc5fb99745fd06791f46fc9ddb1c9a7c"
@@ -7781,11 +7737,6 @@ yallist@^3.0.0, yallist@^3.0.2:
77817737
resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.2.tgz#8452b4bb7e83c7c188d8041c1a837c773d6d8bb9"
77827738
integrity sha1-hFK0u36Dx8GI2AQcGoN8dz1ti7k=
77837739

7784-
yallist@^3.0.3:
7785-
version "3.1.1"
7786-
resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd"
7787-
integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==
7788-
77897740
yallist@^4.0.0:
77907741
version "4.0.0"
77917742
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"

0 commit comments

Comments
 (0)