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
35671e206c
Bump rubocop and rubocop-rails
2023-06-11 16:47:34 +02:00
Benjamin Neff
bb12f93bd0
Add faraday 2 support
2022-07-18 02:29:21 +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
cb138d6458
Bump rubocop, apply new cops and fix deprecations
2021-06-30 03:26:46 +02:00
Benjamin Neff
afee78476b
Add rails 6 support
2019-10-21 03:35:18 +02:00
Benjamin Neff
e4f56e06bb
Bump rubocop
2019-10-21 03:11:13 +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
4b4375cf78
Remove rails 4 support
2019-10-21 03:11:12 +02:00
Benjamin Neff
4e73fd8ea3
Bump rubocop
2018-03-05 23:33:46 +01: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
e6e9893c1f
Make rspec work without rails dependency
2017-04-05 02:02:04 +02:00
Benjamin Neff
1f067c62a7
Generate default users only once and reset db after each test
2017-04-05 00:36:53 +02:00
Benjamin Neff
26cfe7090b
Cleanup dummy rails app
2017-04-05 00:36:52 +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
f8e7b2114f
Remove fixture_builder
2017-04-04 22:14:13 +02:00
Benjamin Neff
184954e09c
Replace factory_girl with fabrication
...
factory_girl has activesupport as dependency
2017-04-04 22:14:13 +02:00
Benjamin Neff
7fa38bffa3
Update spring binstubs
2017-01-19 01:53:07 +01:00
Benjamin Neff
a98a4a8e54
New db/schema.rb after db:migrate
2016-11-17 00:27:38 +01:00
Benjamin Neff
b6dc082c24
bump rubocop
2016-11-10 04:07:59 +01:00
Benjamin Neff
771a1559e3
Activate ruby 2.1 with rails 4.2 on travis again
2016-11-08 00:25:20 +01:00
Benjamin Neff
373540f4cf
fix specs for rails 5
2016-11-05 00:48:20 +01:00
Benjamin Neff
458265b78f
fix rubocop offenses for rubocop 0.40.0
2016-05-11 02:22:48 +02:00
Benjamin Neff
1d4d3d732d
use shorter callback keys for key-callbacks
2016-03-29 02:42:19 +02:00
Benjamin Neff
01d45e225d
use RelatedEntity as target for RelayableRetraction
2016-03-28 20:14:25 +02:00
Benjamin Neff
8f2b3e6a14
use data from parent-RelatedEntity for Relayables
2016-03-28 19:52:57 +02:00
Benjamin Neff
3ac21b585b
add fetch_related_entity callback
2016-03-28 17:23:38 +02:00
Benjamin Neff
aea11d303e
log receive_entity for debugging
2016-03-25 22:42:46 +01:00
Benjamin Neff
bd9cc67f5e
create receiver for new protocol and write tests
2016-03-18 02:54:17 +01:00
Benjamin Neff
d83b6f14f5
create entity fetcher for public entities
2016-03-15 02:17:04 +01:00
Benjamin Neff
7e2815fabc
create fetch entity callback
...
and url_to callback
2016-03-15 01:30:08 +01:00
Benjamin Neff
eb486b2a18
improve dummy app callbacks
2016-02-03 00:47:21 +01:00
Benjamin Neff
583d567d67
bump rubocop and pronto-rubocop
...
make some refactorings for new cops
2016-01-19 01:32:22 +01:00
Benjamin Neff
c7f33d7cf4
rename 'pkey' to 'privkey' and 'pubkey'
2016-01-13 02:20:49 +01:00
Benjamin Neff
d852144f3c
add send functionality
2016-01-12 02:36:32 +01:00
Benjamin Neff
7ed848c2f5
add ostatus subscribe-url to webfinger
2015-12-27 22:19:58 +01:00
Benjamin Neff
fb00b95c74
bump spring
2015-12-27 22:19:58 +01:00
Benjamin Neff
c7446f7220
refactor receive classes
2015-12-18 00:42:41 +01:00
Benjamin Neff
b56c1e2d04
send xml to callbacks to queue it for receive
2015-12-18 00:11:32 +01:00
cmrd Senya
5aac8c2423
Receiving entities support
2015-12-15 19:06:51 +03:00
cmrd Senya
91376a3e26
Retractions signatures support
2015-12-03 00:15:32 +03:00
cmrd Senya
91c3753019
Add signature computation for entities support
2015-11-22 23:40:46 +03:00
Benjamin Neff
eaedc3473a
use Faraday.default_adapter
...
fixes #7
2015-11-01 04:05:35 +01:00
Benjamin Neff
eabe1135ee
fix some rubocop warnings
...
the last one will be fixed with the next rubocop release
2015-09-21 00:50:09 +02:00
Benjamin Neff
52c63918f8
rename .keep
2015-08-05 01:44:20 +02:00
Benjamin Neff
311d6948e5
save person after fetch
2015-08-04 03:00:55 +02:00
Benjamin Neff
f4066f6105
rename callbacks
2015-08-04 02:09:14 +02:00
Benjamin Neff
aff76a4c30
add dummy discovery controller
2015-08-01 01:08:27 +02:00
Benjamin Neff
0deb74c103
refactor: rename diaspora_handle to diaspora_id
...
diaspora uses the new wording "diaspora ID" instead of "diaspora handle"
2015-07-23 01:22:23 +02:00