Skip to content

Commit b981a5b

Browse files
authored
Merge pull request #403 from ForestAdmin/merge/master-into-beta
2 parents 7b5fced + 81443c9 commit b981a5b

File tree

61 files changed

+2846
-264
lines changed

Some content is hidden

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

61 files changed

+2846
-264
lines changed

.travis.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,18 @@ jobs:
1414
script: commitlint-travis
1515
- stage: Tests
1616
language: ruby
17-
before_install: gem install bundler -v '1.17.3'
18-
rvm: 2.3.4
17+
before_install: gem install bundler -v '2.1.4'
18+
rvm: 2.7.2
1919
script:
2020
- RAILS_ENV=test bundle exec rake test
2121
- RAILS_ENV=test bundle exec rake db:migrate && bundle exec rspec --color --format doc
22+
# NOTICE: Handles code coverage reporting to Code Climate
23+
before_install:
24+
- gem install bundler -v '1.17.3'
25+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
26+
- chmod +x ./cc-test-reporter
27+
after_script:
28+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
2229
- stage: Build & Publish
2330
if: branch IN ("master", "beta") AND type != pull_request
2431
language: node_js

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,42 @@
3030
* **auth:** New authentication system.
3131
The application_url must be set in the ForestLiana initializer, adding a regex CORS rule for null origin is required.
3232

33+
# [5.4.0](https://github.com/ForestAdmin/forest-rails/compare/v5.3.3...v5.4.0) (2020-12-10)
34+
35+
36+
### Features
37+
38+
* **role:** add support for new roles ACL permissions ([#391](https://github.com/ForestAdmin/forest-rails/issues/391)) ([ae3539e](https://github.com/ForestAdmin/forest-rails/commit/ae3539e59c49b525078639a6d316ae2b5598ed75))
39+
40+
## [5.3.3](https://github.com/ForestAdmin/forest-rails/compare/v5.3.2...v5.3.3) (2020-12-08)
41+
42+
43+
### Bug Fixes
44+
45+
* fix test after enums ([#398](https://github.com/ForestAdmin/forest-rails/issues/398)) ([7b37350](https://github.com/ForestAdmin/forest-rails/commit/7b37350fc2b6244c3180cb953c2954d5b6927739))
46+
* **smart-actions:** reset value when not present in enums in hook response ([#397](https://github.com/ForestAdmin/forest-rails/issues/397)) ([a1ddac1](https://github.com/ForestAdmin/forest-rails/commit/a1ddac1c0d474e11b43e0f489dcc5ea70cd940b8))
47+
48+
## [5.3.2](https://github.com/ForestAdmin/forest-rails/compare/v5.3.1...v5.3.2) (2020-12-07)
49+
50+
51+
### Bug Fixes
52+
53+
* **smart-actions:** use changedField instead of comparing values to trigger the correct change hook ([#396](https://github.com/ForestAdmin/forest-rails/issues/396)) ([d65c065](https://github.com/ForestAdmin/forest-rails/commit/d65c065319f9ab83d909214a2a71923467a78a0d))
54+
55+
## [5.3.1](https://github.com/ForestAdmin/forest-rails/compare/v5.3.0...v5.3.1) (2020-12-07)
56+
57+
58+
### Bug Fixes
59+
60+
* **smart-actions:** transform legacy widgets in hooks ([#395](https://github.com/ForestAdmin/forest-rails/issues/395)) ([0183d08](https://github.com/ForestAdmin/forest-rails/commit/0183d0883c85fa2569cba70d268747536770a612))
61+
62+
# [5.3.0](https://github.com/ForestAdmin/forest-rails/compare/v5.2.3...v5.3.0) (2020-12-07)
63+
64+
65+
### Features
66+
67+
* handle hooks ([#382](https://github.com/ForestAdmin/forest-rails/issues/382)) ([8dd0e35](https://github.com/ForestAdmin/forest-rails/commit/8dd0e356be27b33379b2aaa0376deb3a76123300))
68+
3369
## [5.2.3](https://github.com/ForestAdmin/forest-rails/compare/v5.2.2...v5.2.3) (2020-12-02)
3470

3571

Gemfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,21 @@ end
1818

1919
group :test do
2020
gem 'rake'
21-
gem 'sqlite3', '1.3.13'
21+
gem 'sqlite3', '~> 1.4'
22+
gem 'simplecov', require: false
2223
end
2324

24-
gem 'rails', '4.2.7.1'
25+
gem 'rails', '6.0.3.4'
2526
gem 'jsonapi-serializers', '1.0.1'
2627
gem 'rack-cors'
27-
gem 'arel-helpers', '2.10.0'
28+
gem 'arel-helpers', '2.11.0'
2829
gem 'groupdate', '2.5.2'
2930
gem 'useragent'
3031
gem 'jwt'
3132
gem 'bcrypt'
32-
gem 'base32', '0.3.2'
33-
gem 'rotp', '3.1'
34-
gem 'httparty', '0.13.7'
33+
gem 'base32', '0.3.4'
34+
gem 'rotp', '6.2.0'
35+
gem 'httparty', '0.18.1'
3536
gem 'ipaddress', '0.8.3'
3637
gem 'openid_connect', '1.2.0'
3738
gem 'json'

Gemfile.lock

Lines changed: 121 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
forest_liana (6.0.0-beta.2)
4+
forest_liana (6.0.0.pre.beta.2)
55
arel-helpers
66
base32
77
bcrypt
@@ -21,83 +21,111 @@ PATH
2121
GEM
2222
remote: https://rubygems.org/
2323
specs:
24-
actionmailer (4.2.7.1)
25-
actionpack (= 4.2.7.1)
26-
actionview (= 4.2.7.1)
27-
activejob (= 4.2.7.1)
24+
actioncable (6.0.3.4)
25+
actionpack (= 6.0.3.4)
26+
nio4r (~> 2.0)
27+
websocket-driver (>= 0.6.1)
28+
actionmailbox (6.0.3.4)
29+
actionpack (= 6.0.3.4)
30+
activejob (= 6.0.3.4)
31+
activerecord (= 6.0.3.4)
32+
activestorage (= 6.0.3.4)
33+
activesupport (= 6.0.3.4)
34+
mail (>= 2.7.1)
35+
actionmailer (6.0.3.4)
36+
actionpack (= 6.0.3.4)
37+
actionview (= 6.0.3.4)
38+
activejob (= 6.0.3.4)
2839
mail (~> 2.5, >= 2.5.4)
29-
rails-dom-testing (~> 1.0, >= 1.0.5)
30-
actionpack (4.2.7.1)
31-
actionview (= 4.2.7.1)
32-
activesupport (= 4.2.7.1)
33-
rack (~> 1.6)
34-
rack-test (~> 0.6.2)
35-
rails-dom-testing (~> 1.0, >= 1.0.5)
36-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
37-
actionview (4.2.7.1)
38-
activesupport (= 4.2.7.1)
40+
rails-dom-testing (~> 2.0)
41+
actionpack (6.0.3.4)
42+
actionview (= 6.0.3.4)
43+
activesupport (= 6.0.3.4)
44+
rack (~> 2.0, >= 2.0.8)
45+
rack-test (>= 0.6.3)
46+
rails-dom-testing (~> 2.0)
47+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
48+
actiontext (6.0.3.4)
49+
actionpack (= 6.0.3.4)
50+
activerecord (= 6.0.3.4)
51+
activestorage (= 6.0.3.4)
52+
activesupport (= 6.0.3.4)
53+
nokogiri (>= 1.8.5)
54+
actionview (6.0.3.4)
55+
activesupport (= 6.0.3.4)
3956
builder (~> 3.1)
40-
erubis (~> 2.7.0)
41-
rails-dom-testing (~> 1.0, >= 1.0.5)
42-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
43-
activejob (4.2.7.1)
44-
activesupport (= 4.2.7.1)
45-
globalid (>= 0.3.0)
46-
activemodel (4.2.7.1)
47-
activesupport (= 4.2.7.1)
48-
builder (~> 3.1)
49-
activerecord (4.2.7.1)
50-
activemodel (= 4.2.7.1)
51-
activesupport (= 4.2.7.1)
52-
arel (~> 6.0)
53-
activesupport (4.2.7.1)
54-
i18n (~> 0.7)
55-
json (~> 1.7, >= 1.7.7)
57+
erubi (~> 1.4)
58+
rails-dom-testing (~> 2.0)
59+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
60+
activejob (6.0.3.4)
61+
activesupport (= 6.0.3.4)
62+
globalid (>= 0.3.6)
63+
activemodel (6.0.3.4)
64+
activesupport (= 6.0.3.4)
65+
activerecord (6.0.3.4)
66+
activemodel (= 6.0.3.4)
67+
activesupport (= 6.0.3.4)
68+
activestorage (6.0.3.4)
69+
actionpack (= 6.0.3.4)
70+
activejob (= 6.0.3.4)
71+
activerecord (= 6.0.3.4)
72+
marcel (~> 0.3.1)
73+
activesupport (6.0.3.4)
74+
concurrent-ruby (~> 1.0, >= 1.0.2)
75+
i18n (>= 0.7, < 2)
5676
minitest (~> 5.1)
57-
thread_safe (~> 0.3, >= 0.3.4)
5877
tzinfo (~> 1.1)
78+
zeitwerk (~> 2.2, >= 2.2.2)
5979
aes_key_wrap (1.1.0)
60-
arel (6.0.4)
61-
arel-helpers (2.10.0)
80+
arel-helpers (2.11.0)
6281
activerecord (>= 3.1.0, < 7)
6382
attr_required (1.0.1)
64-
base32 (0.3.2)
83+
base32 (0.3.4)
6584
bcrypt (3.1.16)
6685
bindata (2.4.8)
6786
builder (3.2.4)
68-
byebug (11.0.1)
87+
byebug (11.1.3)
6988
concurrent-ruby (1.1.7)
7089
crass (1.0.6)
7190
diff-lcs (1.4.4)
72-
erubis (2.7.0)
91+
docile (1.3.2)
92+
erubi (1.10.0)
7393
globalid (0.4.2)
7494
activesupport (>= 4.2.0)
7595
groupdate (2.5.2)
7696
activesupport (>= 3)
77-
httparty (0.13.7)
78-
json (~> 1.8)
97+
httparty (0.18.1)
98+
mime-types (~> 3.0)
7999
multi_xml (>= 0.5.2)
80100
httpclient (2.8.3)
81-
i18n (0.9.5)
101+
i18n (1.8.5)
82102
concurrent-ruby (~> 1.0)
83103
ipaddress (0.8.3)
84-
json (1.8.6)
104+
json (2.3.1)
85105
json-jwt (1.12.0)
86106
activesupport (>= 4.2)
87107
aes_key_wrap
88108
bindata
89109
jsonapi-serializers (1.0.1)
90110
activesupport
91111
jwt (2.2.2)
92-
loofah (2.7.0)
112+
loofah (2.8.0)
93113
crass (~> 1.0.2)
94114
nokogiri (>= 1.5.9)
95115
mail (2.7.1)
96116
mini_mime (>= 0.1.1)
117+
marcel (0.3.3)
118+
mimemagic (~> 0.3.2)
119+
method_source (1.0.0)
120+
mime-types (3.3.1)
121+
mime-types-data (~> 3.2015)
122+
mime-types-data (3.2020.1104)
123+
mimemagic (0.3.5)
97124
mini_mime (1.0.2)
98125
mini_portile2 (2.4.0)
99126
minitest (5.14.2)
100127
multi_xml (0.6.0)
128+
nio4r (2.5.4)
101129
nokogiri (1.10.10)
102130
mini_portile2 (~> 2.4.0)
103131
openid_connect (1.2.0)
@@ -111,43 +139,45 @@ GEM
111139
validate_url
112140
webfinger (>= 1.0.1)
113141
public_suffix (4.0.6)
114-
rack (1.6.13)
115-
rack-cors (1.0.6)
116-
rack (>= 1.6.0)
117-
rack-oauth2 (1.12.0)
142+
rack (2.2.3)
143+
rack-cors (1.1.1)
144+
rack (>= 2.0.0)
145+
rack-oauth2 (1.16.0)
118146
activesupport
119147
attr_required
120148
httpclient
121149
json-jwt (>= 1.11.0)
122-
rack (< 2.1)
123-
rack-test (0.6.3)
124-
rack (>= 1.0)
125-
rails (4.2.7.1)
126-
actionmailer (= 4.2.7.1)
127-
actionpack (= 4.2.7.1)
128-
actionview (= 4.2.7.1)
129-
activejob (= 4.2.7.1)
130-
activemodel (= 4.2.7.1)
131-
activerecord (= 4.2.7.1)
132-
activesupport (= 4.2.7.1)
133-
bundler (>= 1.3.0, < 2.0)
134-
railties (= 4.2.7.1)
135-
sprockets-rails
136-
rails-deprecated_sanitizer (1.0.3)
137-
activesupport (>= 4.2.0.alpha)
138-
rails-dom-testing (1.0.9)
139-
activesupport (>= 4.2.0, < 5.0)
140-
nokogiri (~> 1.6)
141-
rails-deprecated_sanitizer (>= 1.0.1)
150+
rack (>= 2.1.0)
151+
rack-test (1.1.0)
152+
rack (>= 1.0, < 3)
153+
rails (6.0.3.4)
154+
actioncable (= 6.0.3.4)
155+
actionmailbox (= 6.0.3.4)
156+
actionmailer (= 6.0.3.4)
157+
actionpack (= 6.0.3.4)
158+
actiontext (= 6.0.3.4)
159+
actionview (= 6.0.3.4)
160+
activejob (= 6.0.3.4)
161+
activemodel (= 6.0.3.4)
162+
activerecord (= 6.0.3.4)
163+
activestorage (= 6.0.3.4)
164+
activesupport (= 6.0.3.4)
165+
bundler (>= 1.3.0)
166+
railties (= 6.0.3.4)
167+
sprockets-rails (>= 2.0.0)
168+
rails-dom-testing (2.0.3)
169+
activesupport (>= 4.2.0)
170+
nokogiri (>= 1.6)
142171
rails-html-sanitizer (1.3.0)
143172
loofah (~> 2.3)
144-
railties (4.2.7.1)
145-
actionpack (= 4.2.7.1)
146-
activesupport (= 4.2.7.1)
173+
railties (6.0.3.4)
174+
actionpack (= 6.0.3.4)
175+
activesupport (= 6.0.3.4)
176+
method_source
147177
rake (>= 0.8.7)
148-
thor (>= 0.18.1, < 2.0)
178+
thor (>= 0.20.3, < 2.0)
149179
rake (13.0.1)
150-
rotp (3.1.0)
180+
rotp (6.2.0)
151181
rspec-core (3.8.2)
152182
rspec-support (~> 3.8.0)
153183
rspec-expectations (3.8.6)
@@ -165,14 +195,20 @@ GEM
165195
rspec-mocks (~> 3.8.0)
166196
rspec-support (~> 3.8.0)
167197
rspec-support (3.8.3)
168-
sprockets (3.7.2)
198+
simplecov (0.20.0)
199+
docile (~> 1.1)
200+
simplecov-html (~> 0.11)
201+
simplecov_json_formatter (~> 0.1)
202+
simplecov-html (0.12.3)
203+
simplecov_json_formatter (0.1.2)
204+
sprockets (4.0.2)
169205
concurrent-ruby (~> 1.0)
170206
rack (> 1, < 3)
171207
sprockets-rails (3.2.2)
172208
actionpack (>= 4.0)
173209
activesupport (>= 4.0)
174210
sprockets (>= 3.0.0)
175-
sqlite3 (1.3.13)
211+
sqlite3 (1.4.2)
176212
swd (1.2.0)
177213
activesupport (>= 3)
178214
attr_required (>= 0.0.5)
@@ -191,31 +227,36 @@ GEM
191227
webfinger (1.1.0)
192228
activesupport
193229
httpclient (>= 2.4)
230+
websocket-driver (0.7.3)
231+
websocket-extensions (>= 0.1.0)
232+
websocket-extensions (0.1.5)
233+
zeitwerk (2.4.2)
194234

195235
PLATFORMS
196236
ruby
197237

198238
DEPENDENCIES
199-
arel-helpers (= 2.10.0)
200-
base32 (= 0.3.2)
239+
arel-helpers (= 2.11.0)
240+
base32 (= 0.3.4)
201241
bcrypt
202242
byebug
203243
forest_liana!
204244
groupdate (= 2.5.2)
205-
httparty (= 0.13.7)
245+
httparty (= 0.18.1)
206246
ipaddress (= 0.8.3)
207247
json
208248
json-jwt (= 1.12.0)
209249
jsonapi-serializers (= 1.0.1)
210250
jwt
211251
openid_connect (= 1.2.0)
212252
rack-cors
213-
rails (= 4.2.7.1)
253+
rails (= 6.0.3.4)
214254
rake
215-
rotp (= 3.1)
255+
rotp (= 6.2.0)
216256
rspec-rails (= 3.8.2)
217-
sqlite3 (= 1.3.13)
257+
simplecov
258+
sqlite3 (~> 1.4)
218259
useragent
219260

220261
BUNDLED WITH
221-
1.17.3
262+
2.1.4

0 commit comments

Comments
 (0)