bootstrap_form 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +14 -12
  3. data/.gitignore +12 -2
  4. data/.rubocop.yml +2 -1
  5. data/CHANGELOG.md +45 -2
  6. data/CONTRIBUTING.md +17 -16
  7. data/Dangerfile +1 -1
  8. data/Dockerfile +2 -7
  9. data/Gemfile +5 -7
  10. data/README.md +756 -52
  11. data/RELEASING.md +5 -10
  12. data/bootstrap_form.gemspec +2 -3
  13. data/demo/.ruby-version +1 -0
  14. data/demo/Gemfile +80 -0
  15. data/demo/Gemfile.lock +261 -0
  16. data/demo/Procfile.dev +2 -0
  17. data/demo/app/assets/builds/.keep +0 -0
  18. data/demo/app/assets/builds/application.js.LICENSE.txt +9 -0
  19. data/demo/app/assets/config/manifest.js +1 -0
  20. data/demo/app/assets/stylesheets/actiontext.css +31 -0
  21. data/demo/app/assets/stylesheets/application.scss +1 -1
  22. data/demo/app/controllers/bootstrap_controller.rb +17 -2
  23. data/demo/app/controllers/users_controller.rb +9 -0
  24. data/demo/app/helpers/bootstrap_helper.rb +1 -1
  25. data/demo/app/javascript/application.js +3 -0
  26. data/demo/app/models/skill.rb +15 -0
  27. data/demo/app/models/user.rb +14 -0
  28. data/demo/app/views/active_storage/blobs/_blob.html.erb +1 -1
  29. data/demo/app/views/layouts/action_text/contents/_content.html.erb +3 -0
  30. data/demo/app/views/layouts/application.html.erb +28 -20
  31. data/demo/bin/dev +9 -0
  32. data/demo/config/environments/development.rb +3 -3
  33. data/demo/config/routes.rb +1 -0
  34. data/demo/db/schema.rb +29 -14
  35. data/demo/doc/screenshots/bootstrap/index/00_horizontal_form.png +0 -0
  36. data/demo/doc/screenshots/bootstrap/index/01_with_validation_error.png +0 -0
  37. data/demo/doc/screenshots/bootstrap/index/02_inline_form.png +0 -0
  38. data/demo/doc/screenshots/bootstrap/index/03_simple_action_text_example.png +0 -0
  39. data/demo/doc/screenshots/bootstrap/index/04_floating_labels.png +0 -0
  40. data/demo/doc/screenshots/bootstrap/readme/00_example.png +0 -0
  41. data/demo/doc/screenshots/bootstrap/readme/01_example.png +0 -0
  42. data/demo/doc/screenshots/bootstrap/readme/02_example.png +0 -0
  43. data/demo/doc/screenshots/bootstrap/readme/03_example.png +0 -0
  44. data/demo/doc/screenshots/bootstrap/readme/04_example.png +0 -0
  45. data/demo/doc/screenshots/bootstrap/readme/05_example.png +0 -0
  46. data/demo/doc/screenshots/bootstrap/readme/06_example.png +0 -0
  47. data/demo/doc/screenshots/bootstrap/readme/07_example.png +0 -0
  48. data/demo/doc/screenshots/bootstrap/readme/08_example.png +0 -0
  49. data/demo/doc/screenshots/bootstrap/readme/09_example.png +0 -0
  50. data/demo/doc/screenshots/bootstrap/readme/10_example.png +0 -0
  51. data/demo/doc/screenshots/bootstrap/readme/11_example.png +0 -0
  52. data/demo/doc/screenshots/bootstrap/readme/12_example.png +0 -0
  53. data/demo/doc/screenshots/bootstrap/readme/13_example.png +0 -0
  54. data/demo/doc/screenshots/bootstrap/readme/14_example.png +0 -0
  55. data/demo/doc/screenshots/bootstrap/readme/15_example.png +0 -0
  56. data/demo/doc/screenshots/bootstrap/readme/16_example.png +0 -0
  57. data/demo/doc/screenshots/bootstrap/readme/17_example.png +0 -0
  58. data/demo/doc/screenshots/bootstrap/readme/18_example.png +0 -0
  59. data/demo/doc/screenshots/bootstrap/readme/19_example.png +0 -0
  60. data/demo/doc/screenshots/bootstrap/readme/20_example.png +0 -0
  61. data/demo/doc/screenshots/bootstrap/readme/21_example.png +0 -0
  62. data/demo/doc/screenshots/bootstrap/readme/22_example.png +0 -0
  63. data/demo/doc/screenshots/bootstrap/readme/23_example.png +0 -0
  64. data/demo/doc/screenshots/bootstrap/readme/24_example.png +0 -0
  65. data/demo/doc/screenshots/bootstrap/readme/25_example.png +0 -0
  66. data/demo/doc/screenshots/bootstrap/readme/26_example.png +0 -0
  67. data/demo/doc/screenshots/bootstrap/readme/27_example.png +0 -0
  68. data/demo/doc/screenshots/bootstrap/readme/28_example.png +0 -0
  69. data/demo/doc/screenshots/bootstrap/readme/29_example.png +0 -0
  70. data/demo/doc/screenshots/bootstrap/readme/30_example.png +0 -0
  71. data/demo/doc/screenshots/bootstrap/readme/31_example.png +0 -0
  72. data/demo/doc/screenshots/bootstrap/readme/32_example.png +0 -0
  73. data/demo/doc/screenshots/bootstrap/readme/33_example.png +0 -0
  74. data/demo/doc/screenshots/bootstrap/readme/34_example.png +0 -0
  75. data/demo/doc/screenshots/bootstrap/readme/35_example.png +0 -0
  76. data/demo/doc/screenshots/bootstrap/readme/36_example.png +0 -0
  77. data/demo/doc/screenshots/bootstrap/readme/37_example.png +0 -0
  78. data/demo/doc/screenshots/bootstrap/readme/38_example.png +0 -0
  79. data/demo/doc/screenshots/bootstrap/readme/39_example.png +0 -0
  80. data/demo/doc/screenshots/bootstrap/readme/40_example.png +0 -0
  81. data/demo/doc/screenshots/bootstrap/readme/41_example.png +0 -0
  82. data/demo/doc/screenshots/bootstrap/readme/42_example.png +0 -0
  83. data/demo/doc/screenshots/bootstrap/readme/43_example.png +0 -0
  84. data/demo/doc/screenshots/bootstrap/readme/44_example.png +0 -0
  85. data/demo/doc/screenshots/bootstrap/readme/45_example.png +0 -0
  86. data/demo/doc/screenshots/bootstrap/readme/46_example.png +0 -0
  87. data/demo/doc/screenshots/bootstrap/readme/47_example.png +0 -0
  88. data/demo/doc/screenshots/bootstrap/readme/48_example.png +0 -0
  89. data/demo/doc/screenshots/bootstrap/readme/49_example.png +0 -0
  90. data/demo/doc/screenshots/bootstrap/readme/50_example.png +0 -0
  91. data/demo/package.json +10 -6
  92. data/demo/test/application_system_test_case.rb +8 -0
  93. data/demo/test/controllers/bootstrap_controller_test.rb +8 -0
  94. data/demo/test/controllers/users_controller_test.rb +13 -0
  95. data/demo/test/fixtures/users.yml +2 -0
  96. data/demo/test/system/bootstrap_test.rb +84 -0
  97. data/demo/test/test_helper.rb +10 -0
  98. data/demo/webpack.config.js +20 -0
  99. data/demo/yarn.lock +4063 -3144
  100. data/docker-compose.yml +22 -43
  101. data/gemfiles/7.0.gemfile +6 -0
  102. data/lib/bootstrap_form/components/hints.rb +13 -4
  103. data/lib/bootstrap_form/components/labels.rb +1 -1
  104. data/lib/bootstrap_form/form_builder.rb +6 -6
  105. data/lib/bootstrap_form/form_group.rb +6 -2
  106. data/lib/bootstrap_form/helpers/bootstrap.rb +7 -3
  107. data/lib/bootstrap_form/inputs/check_box.rb +5 -3
  108. data/lib/bootstrap_form/inputs/collection_check_boxes.rb +5 -1
  109. data/lib/bootstrap_form/inputs/collection_select.rb +1 -1
  110. data/lib/bootstrap_form/inputs/grouped_collection_select.rb +1 -1
  111. data/lib/bootstrap_form/inputs/radio_button.rb +13 -8
  112. data/lib/bootstrap_form/version.rb +1 -1
  113. metadata +82 -21
  114. data/demo/config/initializers/assets.rb +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a510f995829dd7bbdfa67fa4eeaa73b8cb8a10a73a2d46c89aad425709caf7c2
4
- data.tar.gz: 33543b5b3a9dd167ef7896e0ad55c7d86d31a54e4c19072d13e09b332bb5a872
3
+ metadata.gz: 75c715774dfcbad34c15dbd54c3a14da015c4e67805c0a1adfbfd36ff0f0d27b
4
+ data.tar.gz: f1a3c95a6cd6f2012c8062f5e3c3f8b680cb17292141443d8465625a552d1e5b
5
5
  SHA512:
6
- metadata.gz: 4a703b03f34bb7208380b3370aab0b6444526fb4a33303f473c5b1a78c4c55639701d499c4013d437f79a240554c9da703a1698fc32fe5d91f73f69b919d080c
7
- data.tar.gz: 77362e8c4c482ad19a81d63b8c4b55fe213b42e28e44dc66cd716da7106afc2e7509e43428ec135a00f652ed6112cd6fcee4af8bb2e271bb77d3cc187e441045
6
+ metadata.gz: 75107dba8802198d3685161d292ae40e28e9e83acd688c7779a5bf9eade665bdad236c7f64aeac906872a9e751f77ad98a6e24bda27334a8472bb5ec11855906
7
+ data.tar.gz: 0c30626a9bde0725bc7ca12713bc9d9acc588832e450752a4142c3a9bc63a47aec9bbdf016a1973ea173153ae700c88f4e0be820ca75c0047ced7cd5d8daa0dc
@@ -2,25 +2,26 @@ name: Ruby
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ main ]
6
5
  pull_request:
7
- branches: [ main ]
8
6
 
9
7
  jobs:
10
8
  Lint:
11
9
  runs-on: ubuntu-latest
12
10
  steps:
13
11
  - uses: actions/checkout@v2
12
+ with:
13
+ fetch-depth: 0
14
14
  - uses: ruby/setup-ruby@v1
15
15
  with:
16
- ruby-version: 2.7.2
16
+ ruby-version: 2.7
17
17
  bundler-cache: true
18
- - name: Danger
19
- if: ${{ github.event_name == 'pull_request' }}
20
- run: |
21
- gem install danger
22
- export DANGER_GITHUB_API_TOKEN=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
23
- danger
18
+ # Disabled since it requires access not granted by GitHub Actions for PRs
19
+ # - name: Danger
20
+ # if: ${{ github.event_name == 'pull_request' }}
21
+ # env:
22
+ # DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23
+ # run: |
24
+ # bundle exec danger
24
25
  - name: Rubocop
25
26
  run: bundle exec rubocop --auto-correct
26
27
  Test:
@@ -28,11 +29,12 @@ jobs:
28
29
  strategy:
29
30
  fail-fast: false
30
31
  matrix:
31
- ruby-version: [ '3.0', '2.7', '2.6' ]
32
- gemfile: [ '6.1', '6.0', '5.2', 'edge' ]
32
+ ruby-version: [ '3.1', '3.0', '2.7' ]
33
+ gemfile: [ '7.0', '6.1', '6.0', '5.2', 'edge' ]
33
34
  exclude:
35
+ - { ruby-version: '3.1', gemfile: "6.0" }
36
+ - { ruby-version: '3.1', gemfile: "5.2" }
34
37
  - { ruby-version: '3.0', gemfile: "5.2" }
35
- - { ruby-version: '2.6', gemfile: "edge" }
36
38
  env:
37
39
  BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
38
40
  steps:
data/.gitignore CHANGED
@@ -3,16 +3,20 @@
3
3
  log/*.log
4
4
  pkg/
5
5
  demo/db/*.sqlite3
6
+ demo/doc/screenshots/**/*.committed.png
7
+ demo/doc/screenshots/**/*.latest.png
6
8
  demo/log/*.log
7
9
  demo/tmp/
8
10
  *.gem
9
11
  .rbenv-gemsets
10
12
  *.swp
11
- Gemfile.lock
13
+ /Gemfile.lock
12
14
  test/gemfiles/*.lock
13
- .ruby-version
15
+ gemfiles/*.lock
16
+ /.ruby-version
14
17
  Vagrantfile
15
18
  .vagrant
19
+ .yarnrc
16
20
 
17
21
  # For the demo app.
18
22
 
@@ -27,10 +31,13 @@ demo/public/assets
27
31
  demo/config/master.key
28
32
  demo/public/packs
29
33
  demo/public/packs-test
34
+ demo/app/assets/builds/*
35
+ !demo/app/assets/builds/.keep
30
36
  demo/node_modules
31
37
  demo/yarn-error.log
32
38
  demo/yarn-debug.log*
33
39
  demo/.yarn-integrity
40
+ demo/vendor/bundle
34
41
 
35
42
  # For stuff that gets created if using the Dockerfile image
36
43
  .bundle/
@@ -45,3 +52,6 @@ vendor/bundle
45
52
  .bash_history
46
53
  # For Alpine images
47
54
  .ash_history
55
+ .sqlite_history
56
+
57
+ docker-compose.override.yml
data/.rubocop.yml CHANGED
@@ -5,7 +5,7 @@ require:
5
5
  AllCops:
6
6
  DisplayCopNames: true
7
7
  DisplayStyleGuide: true
8
- TargetRubyVersion: 2.5
8
+ TargetRubyVersion: 2.7
9
9
  NewCops: enable
10
10
  Exclude:
11
11
  - bin/*
@@ -37,6 +37,7 @@ Layout/SpaceAroundEqualsInParameterDefault:
37
37
  EnforcedStyle: no_space
38
38
 
39
39
  Metrics/AbcSize:
40
+ Max: 18
40
41
  Exclude:
41
42
  - "demo/test/**/*"
42
43
  - "test/**/*"
data/CHANGELOG.md CHANGED
@@ -1,17 +1,59 @@
1
+ # Change Log
2
+
3
+ ## Apology
4
+
5
+ The tooling to support our old way of doing the change log doesn't work anymore, and we don't have a better solution, so this change log has become unreliable since version 4.5.0. Please refer to the commit history if you need to debug changes.
6
+
7
+
8
+ - [Pending Release](https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.1.0...HEAD)
9
+ - [5.1.0](https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.0.0...v5.1.0)
10
+ - [5.0.0](https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.5.0...v5.0.0)
11
+ - [4.5.0](https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.4.0...v4.5.0)
12
+ - [4.4.0](https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.3.0...v4.4.0)
13
+ - [4.3.0](https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.2.0...v4.3.0)
14
+ - [4.2.0](https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.1.0...v4.2.0)
15
+ - [4.1.0](https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.0.0...v4.1.0)
16
+ - [4.0.0](https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.0.0.alpha1...v4.0.0)
17
+ - [4.0.0.alpha1](https://github.com/bootstrap-ruby/bootstrap_form/compare/v2.7.0...v4.0.0.alpha1)
18
+ - [2.7.0](https://github.com/bootstrap-ruby/bootstrap_form/compare/v2.6.0...v2.7.0)
19
+ - [2.6.0](https://github.com/bootstrap-ruby/bootstrap_form/compare/v2.5.3...v2.6.0)
20
+ - [2.5.3](https://github.com/bootstrap-ruby/bootstrap_form/compare/v2.5.2...v2.5.3)
21
+ - [2.5.2](https://github.com/bootstrap-ruby/bootstrap_form/compare/v2.5.1...v2.5.2)
22
+ - [2.5.1](https://github.com/bootstrap-ruby/bootstrap_form/compare/v2.5.0...v2.5.1)
23
+ - [2.5.0](https://github.com/bootstrap-ruby/bootstrap_form/compare/v2.4.0...v2.5.0)
24
+ - [2.4.0](https://github.com/bootstrap-ruby/bootstrap_form/compare/v2.3.0...v2.4.0)
25
+
1
26
  ## [Pending Release][]
2
27
 
3
28
  ### Breaking changes
4
29
 
30
+ * [#618](https://github.com/bootstrap-ruby/bootstrap_form/pull/618): Allow overriding the wrapper class - [@donv](https://github.com/donv).
5
31
  * Your contribution here!
6
32
 
7
33
  ### New features
8
34
 
9
- * Your contribution here!
35
+ * [#572](https://github.com/bootstrap-ruby/bootstrap_form/issues/572): Simplify the formatting of the file upload control to follow the new Bootstrap 5 styles
36
+ * [#573](https://github.com/bootstrap-ruby/bootstrap_form/issues/573): Add support for Bootstrap 5's floating labels
10
37
 
38
+ * [#215](https://github.com/bootstrap-ruby/bootstrap_form/issues/215): Add `include_hidden` option to `check_box`
11
39
  ### Bugfixes
12
40
 
41
+ * [#582](https://github.com/bootstrap-ruby/bootstrap_form/issues/582): Fix tests in bootstrap-5 branch, removes Rubocop offenses, and adds testing with Rails 6.1.
42
+
43
+ ## [5.0.0.alpha1][]
44
+
45
+ ### Breaking changes
46
+
47
+ * [#569] Remove `role="form"` from the default generated form HTML so forms pass W3C validation. (Only a breaking change if you depended on the `form` attribute. `bootstrap_form` doesn't depend on it.)
48
+
49
+ ### New features
50
+
13
51
  * Your contribution here!
14
52
 
53
+ ### Bugfixes
54
+
55
+ * [#284] [#300] Field's help message is displayed, even while inline error message is displayed. - [@antpaw](https://github.com/antpaw)
56
+
15
57
  ## [5.0.0][] (2021-11-11)
16
58
 
17
59
  ### Breaking changes
@@ -322,7 +364,8 @@ Features:
322
364
  - Added support for bootstrap_form_tag (@baldwindavid)
323
365
 
324
366
 
325
- [Pending Release]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.0.0...HEAD
367
+ [Pending Release]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.1.0...HEAD
368
+ [5.1.0]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v5.0.0...v5.1.0
326
369
  [5.0.0]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.5.0...v5.0.0
327
370
  [4.5.0]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.4.0...v4.5.0
328
371
  [4.4.0]: https://github.com/bootstrap-ruby/bootstrap_form/compare/v4.3.0...v4.4.0
data/CONTRIBUTING.md CHANGED
@@ -10,11 +10,6 @@ There are a number of ways you can contribute to `bootstrap_form`:
10
10
  - Add to the documentation
11
11
  - Review pull requests
12
12
 
13
- *Note:* If you want to work on preparing `bootstrap_form` for Bootstrap 5,
14
- please start from the `bootstrap-5` branch.
15
- If you're submitting a pull request with code or documentation,
16
- target the pull request to the `bootstrap-5` branch.
17
-
18
13
  ## Code Contributions
19
14
 
20
15
  Here's a quick guide for code contributions:
@@ -47,12 +42,7 @@ Fork the project. Optionally, create a branch you want to work on.
47
42
  - Add a line to the CHANGELOG for your bug fix or feature.
48
43
  - Read the [Coding Guidelines](#coding-guidelines) section and make sure that `rake lint` doesn't find any offences.
49
44
 
50
- You may find the demo application useful for development and debugging.
51
-
52
- - `cd demo`
53
- - `rake db:schema:load`
54
- - `rails s`
55
- - Navigate to http://localhost:3000
45
+ You may find the [demo application](#the-demo-application) useful for development and debugging.
56
46
 
57
47
  ### 6. Make a pull request
58
48
 
@@ -109,16 +99,18 @@ You can run tests in the container as normal, with `rake test`.
109
99
 
110
100
  (Some of that command line is need for Linux hosts, to run the container as the current user.)
111
101
 
112
- ### The Demo App
102
+ ### The Demo Application
113
103
 
114
104
  There is a demo app in this repository. It shows some of the features of `bootstrap_form`, and provides a base on which to build ad-hoc testing, if you need it.
115
105
 
106
+ Currently, the demo app is only set up to run for Rails 7, due to the variety of ways to include CSS and JavaScript in a modern Rails application.
116
107
  To run the demo app, set up the database and run the server:
117
108
 
118
109
  ```bash
119
110
  cd demo
120
- export BUNDLER_GEMFILE=../gemfiles/6.1.gemfile
111
+ bundle
121
112
  rails db:setup
113
+ yarn build --watch &
122
114
  rails s -b 0.0.0.0
123
115
  ```
124
116
 
@@ -127,18 +119,27 @@ To run the demo app in the Docker container:
127
119
  ```bash
128
120
  docker run --volume "$PWD:/app" --user $UID:`grep ^$USERNAME /etc/passwd | cut -d: -f4` -p 3000:3000 -it bootstrap_form /bin/bash
129
121
  cd demo
130
- export BUNDLER_GEMFILE=../gemfiles/6.1.gemfile
122
+ export BUNDLE_GEMFILE=../gemfiles/7.0.gemfile
131
123
  rails db:setup
124
+ yarn build --watch &
132
125
  rails s -b 0.0.0.0
133
126
  ```
134
127
 
135
- To use other supported versions of Rails, change the `export BUNDLER_GEMFILE...` line to another gem file.
128
+ The app doesn't appear to find the source map, or perhaps it isn't being generated. In the Rails log you will see messages similar to:
129
+
130
+ ```bash
131
+ ActionController::RoutingError (No route matches [GET] "/assets/application.js-c6c0edbd68f05cffd0e2495198bfbc4bf42be8a11b76eecbfade30a8036b6b87.map")
132
+ ```
133
+
134
+ But this doesn't seem to affect how the app runs.
135
+
136
+ To use other supported versions of Rails, you will need to create a `Gemfile` for the Rails version. Then, change the `export BUNDLE_GEMFILE...` line to your gem file. Finally, figure out how to include the assets.
136
137
 
137
138
  ## Documentation Contributions
138
139
 
139
140
  Contributions to documentation are always welcome. Even fixing one typo improves the quality of `bootstrap_form`. To make a documentation contribution, follow steps 1-3 of Code Contributions, then make the documentation changes, then make the pull request (step 6 of Code Contributions).
140
141
 
141
- If you put `[ci skip]` in the commit message of the most recent commit of the PR, you'll be a good citizen by not causing Travis CI to run all the tests when it's not necessary.
142
+ If you put `[ci skip]` in the commit message of the most recent commit of the PR, you'll be a good citizen by not causing our CI pipeline to run all the tests when it's not necessary.
142
143
 
143
144
  ## Reviewing Pull Requests
144
145
 
data/Dangerfile CHANGED
@@ -44,7 +44,7 @@ end
44
44
  # ------------------------------------------------------------------------------
45
45
  # Did you remove the CHANGELOG's "Your contribution here!" line?
46
46
  # ------------------------------------------------------------------------------
47
- if has_changelog_changes && IO.read("CHANGELOG.md").scan(/^\s*[-*] Your contribution here/i).count < 3
47
+ if has_changelog_changes && File.read("CHANGELOG.md").scan(/^\s*[-*] Your contribution here/i).count < 3
48
48
  raise(
49
49
  "Please put the `- Your contribution here!` line back into CHANGELOG.md.",
50
50
  sticky: false
data/Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
- ARG DISTRO=buster
2
- ARG RUBY_VERSION=2.6
1
+ ARG RUBY_VERSION=2.7
2
+ ARG DISTRO=bullseye
3
3
 
4
4
  FROM ruby:$RUBY_VERSION-$DISTRO
5
5
 
@@ -18,9 +18,4 @@ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
18
18
  apt update -y -q && \
19
19
  apt install -y -q yarn sqlite3
20
20
 
21
- # Ruby now comes with bundler, but we're not using the default version yet, because we were using
22
- # a newer version of bundler already. Ruby 3 comes with Bundler 2.2.3. Ruby 2.7 has Bundler 2.1.2,
23
- # which is still behind what we were using.
24
- RUN gem install bundler -v 2.1.4
25
-
26
21
  EXPOSE 3000
data/Gemfile CHANGED
@@ -2,18 +2,12 @@ source "http://rubygems.org"
2
2
 
3
3
  gemspec path: __dir__
4
4
 
5
- # Uncomment and change rails version for testing purposes
6
- # gem "rails", "~> 5.2.0"
7
- # gem "rails", "~> 6.0.0"
8
- # gem "rails", "~> 6.1.0"
9
- # gem "rails", git: "https://github.com/rails/rails.git"
5
+ # To test with different Rails versions, use the files in `./gemfiles`
10
6
 
11
7
  group :development do
12
- gem "chandler", ">= 0.7.0"
13
8
  gem "htmlbeautifier"
14
9
  gem "rubocop-performance", require: false
15
10
  gem "rubocop-rails", require: false
16
- gem "sassc-rails"
17
11
  gem "webpacker"
18
12
  end
19
13
 
@@ -23,3 +17,7 @@ group :test do
23
17
  gem "mocha"
24
18
  gem "sqlite3"
25
19
  end
20
+
21
+ group :ci do
22
+ gem "danger"
23
+ end