Commit graph

856 commits

Author SHA1 Message Date
Dennis Schubert
b83619cd2c
Disallow uppercased usernames and hostnames
Drive-by: replaced some of the parts by named POSIX character classes to
make the regex easier to read.
2017-09-13 12:05:49 +02:00
Dennis Schubert
4f87ab1582
Add tests for not validating uppercase characters 2017-09-13 11:51:34 +02:00
Dennis Schubert
c73e0eb14b
Merge branch 'master' into develop 2017-09-13 08:09:05 +02:00
Benjamin Neff
4f48f43455
Add author parameter for diaspora:// URLs to the documentation 2017-09-13 08:08:58 +02:00
Dennis Schubert
0a358c8724
Merge pull request #85 from SuperTux88/add-author-to-diaspora-url
Add author to diaspora:// URL
2017-09-13 08:08:35 +02:00
Benjamin Neff
67a2ba7449
Add author parameter for diaspora:// URLs to the documentation 2017-09-12 23:46:43 +02:00
Benjamin Neff
b6ec405e55
Add author to the diaspora:// URL parser 2017-09-12 23:46:42 +02:00
Benjamin Neff
e663a65c7e
Remove not_nil for diaspora IDs from validators
The diaspora ID validator now is not nil by default.

Also:
* mark root_author as optional for reshares.
* make author for profiles mandatory (I don't remember why this was
optional, we never generate a profile without author and we wouldn't
receive a profile without author anyway, because we validate that the
author is the sender).
* refactor validator specs for diaspora IDs
2017-09-12 23:11:05 +02:00
Benjamin Neff
5e3f510a88
Refactor diaspora ID regex to be used in diaspora:// URL regex 2017-09-12 23:11:05 +02:00
Benjamin Neff
92dc8b0277
Fix GUID regex 2017-09-12 21:24:50 +02:00
Benjamin Neff
30859e54b4
Fix css for warning_box include 2017-09-12 01:01:34 +02:00
Benjamin Neff
35efeb8345
Move public flag from status_message to post
This represents the current state of the documentation.
2017-09-12 00:45:59 +02:00
Benjamin Neff
b1b511b6f7
Remove public and provider_display_name from reshare entity
Also don't extend from Post module anymore to represent the future state
of a reshare as it's own type only used to increase the reach of a post.

See #83
2017-09-12 00:13:21 +02:00
Benjamin Neff
b968e37357
Improve documentation for profile entity 2017-09-11 21:38:46 +02:00
Benjamin Neff
834d358eca
Allow to receive non-public profiles without private data 2017-09-11 21:38:46 +02:00
cmrd Senya
0b07b36017
Merge pull request #74 from SuperTux88/parse-rfc-7033-webfinger
Parse RFC 7033 webfinger
2017-09-10 16:30:38 +03:00
Benjamin Neff
f24dd528ee
Add option for RFC 7033 WebFinger http fallback 2017-09-10 03:08:13 +02:00
Benjamin Neff
80e4844654
Update documentation for RFC 7033 WebFinger 2017-09-10 03:08:12 +02:00
Benjamin Neff
3e7e649025
Fetch RFC 7033 WebFinger with fallback to legacy WebFinger 2017-09-10 03:08:12 +02:00
Dennis Schubert
1d195a0401
Merge branch 'master' into develop 2017-09-09 15:05:52 +02:00
Benjamin Neff
40ad6546bc
Add documentation for the diaspora:// URI scheme 2017-09-09 15:05:39 +02:00
Dennis Schubert
ad21e21669
Merge pull request #78 from SuperTux88/fetch-linked-posts
Fetch posts linked with diaspora:// URLs
2017-09-09 15:01:42 +02:00
Benjamin Neff
6852f9ca36
Add support to parse RFC 7033 WebFinger JSON
Also:
* Fix date format when generating JRD document
* Sort elements always with the same order
2017-09-05 22:56:22 +02:00
Benjamin Neff
db1034904d
Add blocking flag to contact message 2017-09-05 01:22:54 +02:00
Benjamin Neff
b1a5c13a08
Add documentation for the diaspora:// URI scheme 2017-09-04 23:48:31 +02:00
Benjamin Neff
add5e16abf
Fetch linked entities from received entities with text 2017-09-04 23:48:31 +02:00
Benjamin Neff
0b927290e3
Add DiasporaUrlParser to extract diaspora:// URLs from texts 2017-09-04 23:48:31 +02:00
Benjamin Neff
457f06d1da
Extract regex for entity names 2017-09-04 23:48:31 +02:00
Benjamin Neff
faf48e1dd4
Extract allowed chars for GUIDs to constant
Also: disallow special chars at the end of a GUID
2017-09-04 23:48:29 +02:00
cmrd Senya
9d72c9855a
Merge pull request #76 from SuperTux88/photo-height-width-optional
Make height and width optional for photos
2017-09-05 00:40:25 +03:00
Benjamin Neff
b2eda1d812
Remove nilable parameter from guid rule and use OptionalAwareValidator 2017-09-03 20:10:25 +02:00
Benjamin Neff
860aec96b9
Make height and width optional for photos 2017-09-03 20:10:24 +02:00
Benjamin Neff
6f936caddf
Add abstract OptionalAwareValidator class
This improves validation of optional fields and respects the `optional`
option of properties
2017-09-03 20:10:24 +02:00
Benjamin Neff
9081328d51
Merge pull request #77 from SuperTux88/handle-discovery-errors
Improve error handling for discovery errors
2017-09-02 04:21:07 +02:00
Benjamin Neff
458d0f2215
Always raise a DiscoveryError when something with the discovery fails 2017-09-01 01:51:36 +02:00
Benjamin Neff
53fc77ac5d
Inherit InvalidDocument and InvalidData from DiscoveryError 2017-09-01 01:21:52 +02:00
Benjamin Neff
8149421287
Fix type in CONTRIBUTING.md 2017-08-27 02:45:23 +02:00
Benjamin Neff
977849e649
Merge pull request #73 from cmrd-senya/reshare-nil-root
Allow reshares with no root
2017-08-26 03:57:30 +02:00
cmrd Senya
69996319e1
Minor change PhotoValidator#status_message_guid spec
Use new "a nilable guid validator" shared behavior
2017-08-25 10:41:22 +03:00
cmrd Senya
5b12afebed
Allow reshares with no root 2017-08-25 10:33:16 +03:00
Benjamin Neff
a92f5dec9c
Bump dependency gems and update gemfiles 2017-08-24 03:21:19 +02:00
Benjamin Neff
d28d0c8ab3
Bump fabrication 2017-08-24 03:17:22 +02:00
Benjamin Neff
77e63c2a81
Bump faraday 2017-08-24 03:16:54 +02:00
Benjamin Neff
f0f0f78860
Bump typhoeus 2017-08-24 03:16:17 +02:00
Benjamin Neff
bf95536c6a
Bump simplecov 2017-08-24 03:14:52 +02:00
Benjamin Neff
5531596fba
Bump rspec-rails 2017-08-24 03:13:56 +02:00
Benjamin Neff
73906e5db5
Bump pry-byebug 2017-08-24 03:12:34 +02:00
Benjamin Neff
5a0fd3d12d
Bump pronto 2017-08-24 03:11:55 +02:00
Benjamin Neff
922cac70d6
Set TargetRubyVersion in .rubocop.yml 2017-08-24 03:10:01 +02:00
Benjamin Neff
c30de78f97
Release version 0.2.1 2017-08-07 23:35:31 +02:00