Skip to content

Commit 4e29945

Browse files
committed
Merge branch 'develop' into sf/fix-form-reset-on-update-issue-304
2 parents a7d9014 + f42974e commit 4e29945

File tree

231 files changed

+22682
-42391
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+22682
-42391
lines changed

.circleci/config.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.github/issue_template.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
<!-- This is a template only, remove/add sections below as appropriate (e.g. for a new feature, there might be no 'current behaviour'.) -->
1+
<!-- This is a template only, remove/add sections below as appropriate (e.g. for a new feature, there might be no 'current behavior'.) -->
22

33
<!-- First indicate whether you want to request an ENHANCEMENT or report a BUG by using the correct Github label in the side panel* -->
44

5-
**What is the current behaviour?**
5+
**What is the current behavior?**
66

7-
<!-- add current behaviour here -->
7+
<!-- add current behavior here -->
88

9-
**If the current behaviour is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug might get fixed faster if we can run your code and it doesn't have extra dependencies. Add a link to a sample repo and/or any relevant code below:**
9+
**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug might get fixed faster if we can run your code and it doesn't have extra dependencies. Add a link to a sample repo and/or any relevant code below:**
1010

1111
<!-- add additional links/info here -->
1212

13-
**What is the expected behaviour?**
13+
**What is the expected behavior?**
1414

15-
<!-- add expected behaviour here -->
15+
<!-- add expected behavior here -->
1616

1717
**Which versions of Matestack, and which browser/OS are affected by this issue? Did this work in previous versions of Matestack?**
1818

.github/workflows/dockerpush.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: specs
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Run tests
13+
run: |
14+
docker-compose run --rm test bundle exec rake db:schema:load
15+
docker-compose run --rm test bundle exec rspec spec/usage

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ builder/storage/
1818
builder/tmp/
1919
builder/public/packs
2020
.idea/
21+
22+
/coverage

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.6.1

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ none
5353

5454
### Bugfixes
5555

56-
* Unexpected behaviour when creating a record in progress by jonasjabari
56+
* Unexpected behavior when creating a record in progress by jonasjabari
5757
* couldn't find file 'matestack_ui_core_manifest.js' on dummy app by jonasjabari
5858
* Add For Attribute to Stand Alone Label Component by bdlb77
5959
* Form component doesn't work on component-level by jonasjabari

Dockerfile.dev

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM ruby:2.6.5-alpine3.9
2+
3+
RUN gem install bundler:2.1.4
4+
5+
RUN apk update --no-cache && \
6+
apk add build-base git nodejs yarn tzdata bash sqlite-dev && \
7+
mkdir -p /app
8+
9+
WORKDIR /app
10+
11+
COPY ./lib/ /app/lib/
12+
COPY matestack-ui-core.gemspec /app/
13+
COPY Gemfile* /app/
14+
RUN bundle install
15+
16+
COPY package.json yarn* /app/
17+
RUN yarn install

Dockerfile.test

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
FROM ruby:2.6.5-alpine3.9
2+
3+
RUN gem install bundler:2.1.4
4+
5+
RUN apk update --no-cache && \
6+
apk add build-base git nodejs yarn tzdata bash sqlite-dev && \
7+
mkdir -p /app
8+
9+
WORKDIR /app
10+
11+
COPY ./lib/ /app/lib/
12+
COPY matestack-ui-core.gemspec /app/
13+
COPY Gemfile* /app/
14+
RUN bundle install
15+
16+
COPY package.json yarn* /app/
17+
RUN yarn install
18+
19+
RUN apk update && apk upgrade \
20+
&& echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories \
21+
&& echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories \
22+
&& apk add --no-cache \
23+
chromium@edge=72.0.3626.121-r0 \
24+
nss@edge \
25+
&& rm -rf /var/lib/apt/lists/* \
26+
/var/cache/apk/* \
27+
/usr/share/man \
28+
/tmp/*
29+
30+
RUN apk add chromium-chromedriver@edge=72.0.3626.121-r0
31+
32+
ENV CHROME_BIN=/usr/bin/chromium-browser \
33+
CHROME_PATH=/usr/lib/chromium/

Gemfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ gemspec
1111
# Git. Remember to move these dependencies to your gemspec before releasing
1212
# your gem to rubygems.org.
1313

14-
# To use a debugger
15-
# gem 'byebug', group: [:development, :test]
16-
# gem 'pry-byebug', group: [:development, :test]
17-
1814
gem "trailblazer"
1915
gem "trailblazer-rails"
2016
gem "trailblazer-cells"
@@ -24,19 +20,20 @@ gem "cells-haml"
2420
group :development, :test do
2521
gem 'rspec-rails', '~> 3.8'
2622
gem 'capybara'
27-
gem 'webpacker', '~> 3.5'
23+
gem 'webpacker', '~> 4.0'
2824
gem 'sqlite3', '~> 1.3.13'
29-
gem 'selenium-webdriver'
30-
gem 'poltergeist'
25+
gem 'selenium-webdriver', '~> 3.142', '>= 3.142.7'
3126
gem 'puma'
3227
gem 'simplecov', require: false, group: :test
3328
gem 'byebug'
29+
gem 'pry-byebug'
3430
gem 'webmock'
35-
gem 'webdrivers', '~> 4.1'
3631
gem 'pry-rails'
3732
gem 'pry-byebug'
3833
end
3934

4035
group :test do
4136
gem "generator_spec"
37+
gem "rspec-retry" # repeating flaky tests
38+
gem "rspec-wait", "~> 0.0.9"
4239
end

Gemfile.lock

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +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)
83-
cliver (0.3.2)
81+
childprocess (3.0.0)
8482
coderay (1.1.2)
8583
concurrent-ruby (1.1.5)
8684
crack (0.4.3)
@@ -99,7 +97,6 @@ GEM
9997
uber (< 0.2.0)
10098
docile (1.3.1)
10199
erubi (1.8.0)
102-
ffi (1.9.25)
103100
generator_spec (0.9.4)
104101
activesupport (>= 3.0.0)
105102
railties (>= 3.0.0)
@@ -128,10 +125,6 @@ GEM
128125
nokogiri (1.10.4)
129126
mini_portile2 (~> 2.4.0)
130127
pipetree (0.1.1)
131-
poltergeist (1.18.1)
132-
capybara (>= 2.1, < 4)
133-
cliver (~> 0.3.1)
134-
websocket-driver (>= 0.2.0)
135128
pry (0.12.2)
136129
coderay (~> 1.1.0)
137130
method_source (~> 0.9.0)
@@ -183,6 +176,10 @@ GEM
183176
declarative (< 0.1.0)
184177
declarative-option (< 0.2.0)
185178
uber (< 0.2.0)
179+
rspec (3.8.0)
180+
rspec-core (~> 3.8.0)
181+
rspec-expectations (~> 3.8.0)
182+
rspec-mocks (~> 3.8.0)
186183
rspec-core (3.8.0)
187184
rspec-support (~> 3.8.0)
188185
rspec-expectations (3.8.2)
@@ -199,12 +196,16 @@ GEM
199196
rspec-expectations (~> 3.8.0)
200197
rspec-mocks (~> 3.8.0)
201198
rspec-support (~> 3.8.0)
199+
rspec-retry (0.6.2)
200+
rspec-core (> 3.3)
202201
rspec-support (3.8.0)
203-
rubyzip (1.2.2)
202+
rspec-wait (0.0.9)
203+
rspec (>= 3, < 4)
204+
rubyzip (2.2.0)
204205
safe_yaml (1.0.5)
205-
selenium-webdriver (3.14.1)
206-
childprocess (~> 0.5)
207-
rubyzip (~> 1.2, >= 1.2.2)
206+
selenium-webdriver (3.142.7)
207+
childprocess (>= 0.5, < 4.0)
208+
rubyzip (>= 1.2.2)
208209
simplecov (0.16.1)
209210
docile (~> 1.1)
210211
json (>= 1.8, < 3)
@@ -240,15 +241,11 @@ GEM
240241
tzinfo (1.2.5)
241242
thread_safe (~> 0.1)
242243
uber (0.1.0)
243-
webdrivers (4.1.2)
244-
nokogiri (~> 1.6)
245-
rubyzip (~> 1.0)
246-
selenium-webdriver (>= 3.0, < 4.0)
247244
webmock (3.5.1)
248245
addressable (>= 2.3.6)
249246
crack (>= 0.3.2)
250247
hashdiff
251-
webpacker (3.5.5)
248+
webpacker (4.2.2)
252249
activesupport (>= 4.2)
253250
rack-proxy (>= 0.6.1)
254251
railties (>= 4.2)
@@ -268,20 +265,20 @@ DEPENDENCIES
268265
cells-rails
269266
generator_spec
270267
matestack-ui-core!
271-
poltergeist
272268
pry-byebug
273269
pry-rails
274270
puma
275271
rspec-rails (~> 3.8)
276-
selenium-webdriver
272+
rspec-retry
273+
rspec-wait (~> 0.0.9)
274+
selenium-webdriver (~> 3.142, >= 3.142.7)
277275
simplecov
278276
sqlite3 (~> 1.3.13)
279277
trailblazer
280278
trailblazer-cells
281279
trailblazer-rails
282-
webdrivers (~> 4.1)
283280
webmock
284-
webpacker (~> 3.5)
281+
webpacker (~> 4.0)
285282

286283
BUNDLED WITH
287284
1.17.3

0 commit comments

Comments
 (0)