Commit graph

24 commits

Author SHA1 Message Date
Benjamin Neff
7248aaec67 fix rubocop offenses for rubocop 0.44.1 2016-10-14 23:25:59 +02:00
Benjamin Neff
f7d269cd6a a guid is at most 255 chars long. 2016-07-12 03:13:40 +02:00
Steffen van Bergerem
e0ab18c0ea
Improve code documentation 2016-07-12 02:08:21 +02:00
Benjamin Neff
53ba96acca simplify diaspora ID regex
hostname doesn't allow underscores, fixes #33
2016-04-23 23:48:03 +02:00
Benjamin Neff
cf45416344 allow guid to be nilable 2016-01-10 18:55:32 +01:00
Benjamin Neff
73fab4d01c add more documentation 2015-12-13 01:22:17 +01:00
Benjamin Neff
06695610dd write tests to have 100% coverage again 2015-11-30 00:28:20 +01:00
cmrd Senya
dba15af1d8 Documentation added 2015-11-28 18:40:55 +03:00
cmrd Senya
f12a4c21db Merge all the entities left from the @Raven24's gem.
These are: AccountDeletion, Comment, Conversation, Like, Message,
RelayableRetraction, Reshare, Retraction, SignedRetraction
2015-11-06 01:50:04 +03:00
Benjamin Neff
4c9eac4699 remove unused nilable_uri rule (default uri rule is now nilable)
also use length rule instead of regex
2015-08-11 00:50:47 +02:00
Benjamin Neff
8c63655886 allow nil for diaspora_id in profile
refactor some tests
2015-08-06 02:21:49 +02:00
Benjamin Neff
ede695b214 fix warning: character class has '-' without escape 2015-08-05 02:04:51 +02:00
Benjamin Neff
f4fec11993 better documentation 2015-08-01 00:52:09 +02:00
Benjamin Neff
416f322cc7 rename new URI validator to NilableURI and extend existing URI validator 2015-07-28 00:40:04 +02:00
Benjamin Neff
c1e700d560 add own URI validation rule that allows nil 2015-07-27 03:47:56 +02:00
Benjamin Neff
d7a5e71ce6 refactor shared examples and use more of them 2015-07-27 01:38:11 +02:00
Benjamin Neff
dd6b938f2e more documentation for validation 2015-07-26 01:19:09 +02:00
Benjamin Neff
ce39616265 fix tag count validator 2015-07-25 22:17:52 +02:00
Benjamin Neff
ed52108cc7 validate entities after creation if a validator is defined 2015-07-25 03:23:23 +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
Benjamin Neff
da81c2e587 refactor boolean validator rule 2015-07-22 01:28:08 +02:00
Benjamin Neff
20d4646332 refactoring validation and write more tests 2015-07-21 22:31:37 +02:00
Benjamin Neff
ac8832ee4a add diaspora handle validator and test 2015-07-21 22:31:37 +02:00
Benjamin Neff
2301b1433e add validators from raven24 2015-07-20 03:43:54 +02:00