Commit graph

12 commits

Author SHA1 Message Date
Benjamin Neff
3dbf0488dd
Allow to test for multiple rails versions in CI
Before we only tested with the latest rails version and without rails,
that made it possible to accidentally break with older rails versions
without noticing it.

The old way of keeping separate Gemfiles (and lockfiles) was too
complicated to keep up to date, especially with many supported rails
versions. This allows now to run with different rails version with just
the same Gemfile using an env-var.

For CI the Gemfile.lock is only used for the latest rails version (7.0
at the moment), as it obviously doesn't fit for other versions. I think
that's fine, as if we are not compatible with a too new version of
something, we need to add a maximum version there anyway.

The `ruby/setup-ruby@v1` step automatically uses the deployment mode
when a Gemfile.lock is present, so the `BUNDLE_FROZEN` env-var is not
required, even if a Gemfile.lock is used.
2023-06-11 18:41:20 +02:00
Benjamin Neff
a0e1cac95f
Add rails 7 support 2022-07-18 02:25:23 +02:00
Benjamin Neff
ecfe0ea850
Bump rails and drop support for rails < 5.2 (EOL) 2021-06-30 04:41:52 +02:00
Benjamin Neff
afee78476b
Add rails 6 support 2019-10-21 03:35:18 +02:00
Benjamin Neff
1dfe57ea7e
Add frozen_string_literal to all files
and remove redundant freezes
2019-10-21 03:11:12 +02:00
Benjamin Neff
e26a86c173
Switch PercentLiteralDelimiters to new default
Let's change that to the new rubocop default, which is also the
suggestion in the ruby style guide.

See https://github.com/bbatsov/ruby-style-guide#percent-literal-braces

This was changed in diaspora too, see diaspora/diaspora#7466

It also includes the changes in the code. This was done with
`rubocop --auto-correct` and no we have zero offenses again.
2017-06-30 02:23:44 +02:00
Benjamin Neff
b0f6131527
Remove active_record and save models in-memory
Simple inmemory "database" to be independent from active_record.
2017-04-05 00:36:52 +02:00
Benjamin Neff
373540f4cf fix specs for rails 5 2016-11-05 00:48:20 +01:00
Benjamin Neff
9925cbb99a split rails part into separate gem
see #1
2015-07-04 20:01:37 +02:00
Benjamin Neff
cd563dd337 add fixtures 2015-06-15 02:49:54 +02:00
Benjamin Neff
92ebeb671d cleanup dummy app 2015-06-13 15:48:21 +02:00
Benjamin Neff
9d8cf85e84 add dummy app again 2015-06-11 02:13:58 +02:00