Skip to content

Commit

Permalink
Merge branch 'jumpstart' into upstream-master
Browse files Browse the repository at this point in the history
  • Loading branch information
LuCCoelho authored Jun 12, 2024
2 parents e6683c9 + a345248 commit e9a0f11
Show file tree
Hide file tree
Showing 76 changed files with 1,135 additions and 526 deletions.
139 changes: 0 additions & 139 deletions .circleci/config.yml

This file was deleted.

18 changes: 13 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
---
version: 2

updates:
- package-ecosystem: bundler
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
- package-ecosystem: bundler
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10

- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
time: '02:00'
timezone: 'Etc/UTC'
4 changes: 2 additions & 2 deletions .github/workflows/bundle-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: 'Bundler Audit'
uses: andrewmcodes/bundler-audit-action@main
uses: thoughtbot/bundler-audit-action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3
54 changes: 54 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
name: CI
on: [push]

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ['3.0', 3.1, 3.2, 3.3]
env:
PGHOST: localhost
PGUSER: administrate
PGPASSWORD: administrate
services:
postgres:
image: postgres
env:
POSTGRES_USER: administrate
POSTGRES_DB: administrate_test
POSTGRES_PASSWORD: administrate
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install dependencies
run: bundle install
- name: Install Appraisal dependencies
run: bundle exec appraisal install
- name: Setup the environment
run: cp .sample.env .env
- run: cp spec/example_app/config/database.yml.sample spec/example_app/config/database.yml
- name: Setup the database
run: bundle exec rake db:setup
- name: Run tests
run: bundle exec rspec
- name: Appraise Rails 6.0
run: bundle exec appraisal rails60 rspec
if: ${{ matrix.ruby <= '3.0' }}
- name: Appraise Rails 6.1
run: bundle exec appraisal rails61 rspec
- name: Appraisal Rails 7.0
run: bundle exec appraisal rails70 rspec
6 changes: 5 additions & 1 deletion Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ appraise "rails61" do
end

appraise "rails70" do
gem "rails", "~> 6.1"
gem "rails", "~> 7.0"
end

appraise "pundit21" do
gem "pundit", "~> 2.1.0"
end
116 changes: 116 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,122 @@

## Changes

### 0.20.1 (January 24, 2024)

In `0.20.0`, we introduced a regression which potentially meant you might
get a `NameError` because of a missing import on `Administrate::VERSION`,
this fixes that and two other minor issues as well.

* [BUGFIX] [#2494] Fix build-changelog with no template changes
* [BUGFIX] [#2491] Fix missing `Administrate::VERSION` reference
* [DOC] [#2489] Fix path in documentation

### 0.20.0 (January 17, 2024)

This is our final release before v1.0.0, which will bring with it a big
change around how we handle our CSS and JS assets. You'll most likely need
to do some work to update, and we'll be publishing release candidate releases
to help learn along the way. If you can, we'd love it if you could give them a
try and report any problems you face!

The following templates have changed since v0.19.0:

app/views/administrate/application/_form.html.erb
app/views/administrate/application/show.html.erb
app/views/fields/has_one/_form.html.erb
app/views/fields/has_one/_show.html.erb

If your application overrides any of them, make sure to review your
custom templates to ensure that they remain compatible.

* [FEATURE] [#2484] Yield created resource if block is given
* [OPTIM] [#2473] Remove CircleCI
* [COMPAT] [#2485] Switch to the Sentry Ruby & Rails gems
* [UI] [#2422] Allow grouping fields (new, edit and show)
* [COMPAT] [#2479] Use a dedicated ActiveSupport::Deprecation instance
* [COMPAT] [#2483] Start testing against Ruby 3.3
* [BUGFIX] [#2480] Fix the bundle audit workflow
* [COMPAT] [#1932] Start testing on GitHub Actions
* [OPTIM] [#2418] Build SQL with Arel instead of from strings
* [UI] [#2405] Add form field hints
* [COMPAT] [#2462] Avoid open-ended dependencies
* [COMPAT] [#2419] Update `selenium-webdriver` and remove `webdrivers`
* [COMPAT] [#2469] Drop support for Ruby 2.7, since it's EOL
* [BUGFIX] [#2427] Support all number helpers of ActiveSupport::NumberHelper
* [DOC] [#2443] Add sample app path to CONTRIBUTING.md
* [FEATURE] [#2415] hasMany collection columns
* [BUGFIX] [#2403] Add Administrate::Punditize methods as module methods
* [COMPAT] [#2433] Add GitHub Actions as an ecosystem for Dependabot
* [COMPAT] [#2428] Enable Rails 7 on CI
* [COMPAT] [#2410] Another year, another change to how to deal with webdrivers
* [DOC] [#2408] Example app: change float column types to decimal

### 0.19.0 (July 18, 2023)

Once again, a big catchup release with lots of miscellaneous compatibility
improvements, bug fixes and some nice new feature improvements. Thanks to
everyone who contributed the PRs below!

The following templates have changed since v0.18.0:

app/views/administrate/application/_collection.html.erb
app/views/administrate/application/_index_header.html.erb
app/views/administrate/application/_navigation.html.erb
app/views/administrate/application/_pagination.html.erb
app/views/administrate/application/edit.html.erb
app/views/administrate/application/new.html.erb
app/views/administrate/application/show.html.erb
app/views/fields/has_many/_show.html.erb
app/views/fields/select/_form.html.erb
app/views/layouts/administrate/application.html.erb

If your application overrides any of them, make sure to review your
custom templates to ensure that they remain compatible.

* [COMPAT] [#2399] Fix Rails 6.0 `load_server` incompatibility
* [DOC] [#2377] Add a script to generate a draft CHANGELOG update
* [COMPAT] [#2395] Upgrade Rails from 7.0.4.3 to 7.0.5.1
* [FEATURE] [#2391] Field::Polymorphic accepts a call-able for the classes
option
* [BUGFIX] [#2379] Use pundit policy_namespace in controllers
* [DOC] [#2390] Update documentation URL to correct Heroku URL
* [BUGFIX] [#2383] Fix backward compatible Pundit include
* [FEATURE] [#2375] Add order option to Field::HasOne documentation
* [COMPAT] [#2367] Update to Ruby 3.2.2
* [COMPAT] [#2371] Adapt to deprecations in the Faker API
* [BUGFIX] [#2348] Field::Select to handle ActiveRecord enums correctly
* [COMPAT] [#2324] Update to Rails 7
* [FEATURE] [#2356] make permitted_attributes support action
* [FEATURE] [#2325] Enable ordering by HasOne fields
* [DOC] [#2350] Fix link to demo app on customise_search.md
* [BUGFIX] [#2292] Use correct key in unconventional associations
* [DOC] [#2346] Better description for option
* [COMPAT] [#2341] Bump Rails dependencies to 6.1.7.3
* [I18n] [#2327] Make Japanese translations more natural
* [COMPAT] [#2323] Start testing Ruby 3.2 on CircleCI
* [COMPAT] [#2322] Switch from pry-rails to pry
* [COMPAT] [#2318] Bump Rails dependencies to 6.1.7.2
* [COMPAT] [#2319] Fix Selenium deprecation warnings on headless/opts
* [COMPAT] [#2321] Switch to testing against Postgres 15
* [COMPAT] [#2316] Checkout first to avoid failure due to ChromeDriver file in
target dir
* [FEATURE] [#2308] Make overriding create resource easier
* [BUGFIX] [#2304] Set empty string param values to nil
* [COMPAT] [#2299] Update minimum supported Rails version on
docs/getting_started.md
* [BUGFIX] [#2289] Fix behaviour of has_many pagination
* [I18n] [#2280] Titleize the column not the user defined locale
* [FEATURE] [#2274] Allow disabling pagination for has_many
* [FEATURE] [#2260] Allow search filters with special characters
* [BUGFIX] [#2275] Provide a better error message for NotAuthorizedErrors with
Modules
* [BUGFIX] [#2261] Avoid singularizing namespace in
Administrate::ResourceResolver
* [BUGFIX] [#2258] Handle custom pagination for has_many
* [UI] [#2250] Make the select box has same style as has_many box
* [FEATURE] [#2238] pass associated_class to collection from show
* [I18n] [#2245] remove redundant ARIA roles from elements with implicit role

### 0.18.0 (August 12, 2022)

This is a general catchup release. We've added `dart-sass` compatibility,
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ bundle exec rails s
```

This will start the application defined in `spec/example_app`.
You can view the `example_app` in the browser by navigating to `/admin`

## Repository Structure

Expand Down
Loading

0 comments on commit e9a0f11

Please sign in to comment.