Commit graph

457 commits

Author SHA1 Message Date
Benjamin Neff
f8334fcb0f
Fix entering OTP code when releasing gem
The code can't be entered when used with xargs
2023-06-12 01:33:05 +02:00
Benjamin Neff
1b44d511a2
Release version 1.1.0 2023-06-12 01:26:44 +02:00
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
525c43e67a
Don't follow redirects when federating messages
Federating uses POST requests, which don't work for redirects (unless
used with 307/308, but almost nobody uses these), so this was basically
broken anyway. The idea behind this was to follow http -> https
redirects, but as all pods nowadays have https already anyway, and
webfinger already enforces https, there is no need to follow redirects
anymore.
2022-12-05 04:52:14 +01:00
Benjamin Neff
62d7657dba
Release version 1.0.1 2022-07-23 23:10:08 +02:00
Benjamin Neff
15465bf46a
Release version 1.0.0 2022-07-18 02:41:48 +02:00
Benjamin Neff
a5cea2b3ca
Bump fabrication 2022-07-18 02:29:21 +02:00
Benjamin Neff
310d4a919b
Bump pronto-rubocop, rubocop and rubocop-rails 2022-07-18 02:29:21 +02:00
Benjamin Neff
bb12f93bd0
Add faraday 2 support 2022-07-18 02:29:21 +02:00
Benjamin Neff
078f8a5427
Release version 0.3.0 2022-03-13 22:49:41 +01:00
Benjamin Neff
689e219705
Fix nokogiri deprecation warning 2022-03-13 21:59:08 +01:00
Benjamin Neff
500310c555
Merge pull request #122 from SuperTux88/cleanup-legacy-webfinger
Remove legacy WebFinger support/fallback
2022-03-13 21:40:36 +01:00
Benjamin Neff
6b8e8a70a0
Remove URL from hcard, it's not used anymore 2021-11-27 03:56:52 +01:00
Benjamin Neff
d5107f5678
Remove legacy Webfinger handling 2021-11-27 03:56:52 +01:00
Benjamin Neff
9b563a6360
Bump rubocop
also apply new rules
2021-11-26 02:59:31 +01:00
Benjamin Neff
3861eb9fef
Merge branch '0.2.x' into develop 2021-10-24 21:14:25 +02:00
Benjamin Neff
4d5d9f4194
Release version 0.2.7 2021-10-24 20:48:59 +02:00
Benjamin Neff
d84d68d066
Validate that remote_photo_path on Photo entity is an URL with path
closes #119
2021-10-24 20:10:43 +02:00
Benjamin Neff
0d12770262
Add remote_photo_path to AccountMigration entity
This can be set to the URL on the new pod when photos were
migrated/imported, so other pods can adjust the `remote_photo_path` of
the photos of the old account.
2021-10-24 20:08:04 +02:00
Benjamin Neff
85e12cea93
Only parse each nested element name once
A child elements should only appear once or it is part of a
nested array (photos, poll answers). So each element name only needs to
be parsed once, because the way `parse_array_from_node` works is, that
it already parses the full array with one call, so calling it multiple
times again parses the full array a second time.

closes #118
2021-10-24 19:57:48 +02:00
Benjamin Neff
162c2cf21b
Don't add author_signature if author also is parent author
This fully completes #64
2021-10-23 01:26:58 +02:00
Benjamin Neff
2286022f67
Fix deprecation warning for Bundler.with_clean_env 2021-06-30 04:59:11 +02:00
Benjamin Neff
cb138d6458
Bump rubocop, apply new cops and fix deprecations 2021-06-30 03:26:46 +02:00
Benjamin Neff
7fd94438a3
Merge pull request #114 from SuperTux88/remove-old-federation
Remove old federation
2021-06-30 00:57:24 +02:00
Benjamin Neff
975835a3b6
Fix missing FaradayMiddleware::RedirectLimitReached 2021-06-29 02:53:06 +02:00
Benjamin Neff
3fcea8b188
Remove parent_author_signature from relayables
Closes #64
2019-10-30 17:49:46 +01:00
Benjamin Neff
1238fe0384
Remove old property-name mappings and cleanup xml_name functionality
Closes #29
2019-10-30 17:49:46 +01:00
Benjamin Neff
edfcc7886d
Remove old Request entity
Closes #32
2019-10-30 17:49:45 +01:00
Benjamin Neff
a082bcebff
Remove old SignedRetraction and RelayableRetraction
Closes #27
2019-10-30 17:49:45 +01:00
Benjamin Neff
0ccd15cd53
Remove legacy xml unwrap code
Closes #28
2019-10-30 17:49:45 +01:00
Benjamin Neff
0163963849
Remove old Slap and EncryptedSlap and cleanup legacy receive
Closes #30
2019-10-30 17:49:45 +01: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
68df3cf555
Remove support for ruby 2.1, 2.2, 2.3 and 2.4, add 2.6 instead
all older than 2.3 are already EOL and 2.4 will be EOL soon and the next
diaspora major version will already depend on newer versions, so we can
already remove it now.
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
5fffefd3b6
Release version 0.2.6 2019-04-28 12:37:19 +02:00
Senya
e12736ffe8
Entities JSON schema: width & height are optional 2019-04-28 12:53:39 +03:00
Benjamin Neff
6c8e8e5418
Release version 0.2.5 2018-10-05 22:19:37 +02:00
Benjamin Neff
263b9dd946
Merge pull request #108 from SuperTux88/allow-web-diaspora-urls
Include web+ prefix in diaspora:// URL parsing
2018-10-05 21:46:44 +02:00
Benjamin Neff
a69b498bb0
Merge pull request #107 from diaspora/schema-reshare-patch
federation_entities.json: reshare root is optional
2018-10-05 21:46:26 +02:00
Benjamin Neff
65905f7800
Include web+ prefix in diaspora:// URL parsing
This prevents creation of web+https://... URLs when replacing the
diaspora:// part.
2018-10-05 21:07:05 +02:00
Benjamin Neff
e0da26c7ee
Add "embed" entity
Fixes #93
2018-10-05 20:26:23 +02:00
Senya
655325b82c
federation_entities.json: reshare root is optional
root_author and root_guid are optional for the reshare
2018-10-05 12:48:04 +03:00
cmrd Senya
b4450d3383 json schema: fix misplaced "required" property 2018-07-16 00:06:05 +03:00
Benjamin Neff
12f32013db
Bump rubocop 2018-06-17 03:23:04 +02:00
Benjamin Neff
512fafbd60
Merge pull request #100 from SuperTux88/add-full_name
Add full_name to profile
2018-06-17 02:49:47 +02:00
Senya
b15e70f942
Update federation_entities.json
parent_type is mandatory for likes
2018-04-15 19:09:36 +03:00
Benjamin Neff
cce2c7fe31
Add full_name to profile
This is needed for diaspora/diaspora#3648
2018-04-09 00:58:20 +02:00
Benjamin Neff
4e73fd8ea3
Bump rubocop 2018-03-05 23:33:46 +01:00
Benjamin Neff
c1cd297811
Release version 0.2.4 2018-02-18 01:28:48 +01:00