25 Commits

Author SHA1 Message Date
Jonas Platte
6581eb8606
Release ruma-common 0.5.0 2021-04-17 19:03:42 +02:00
Jonas Platte
32398d187b
common: Add Ruleset::get_match 2021-04-17 17:58:53 +02:00
Jonas Platte
fca5d36402
common: Change the return type of Ruleset::get_actions to a slice 2021-04-17 17:53:38 +02:00
Jonas Platte
045f610e30
common: Add conversions between AnyPushRule and AnyPushRuleRef 2021-04-17 17:12:32 +02:00
Jonas Platte
f86fa08f13
common: Rename RulesetIter to RulesetIntoIter 2021-04-17 16:27:42 +02:00
Jonas Platte
10fb4c9910
Release ruma-common 0.4.0 2021-04-13 21:29:26 +02:00
Jonas Platte
444239cc10
common: Use RoomId in PushConditionCtx 2021-04-05 20:42:54 +02:00
Kévin Commaille
71b358ccd6 common: Replace String with MxcUri for avatar_url 2021-04-05 08:10:21 +02:00
Jonas Platte
83ee0e72e2
Release ruma-common 0.3.1 2021-04-03 17:21:55 +02:00
Kévin Commaille
cd157885dd
common: Fix push::PushCondition::applies for empty value and pattern 2021-04-03 17:00:04 +02:00
Jonas Platte
aadcf9be16
common: Update changelog 2021-03-31 14:17:54 +02:00
Jonas Platte
36df3e341a
Release ruma-common 0.3.0 2021-03-31 13:47:24 +02:00
Kévin Commaille
357100883d common: Add a function to test an event against a Ruleset 2021-03-31 12:12:23 +02:00
Kévin Commaille
038f0eec6d common: Add a function to test an event against PushCondition 2021-03-31 12:12:23 +02:00
Jonas Platte
34484c0225
common: Update changelog 2021-03-22 20:56:30 +01:00
Kévin Commaille
c8c45d10fa common: Replace push rule kinds types with AnyPushRule variants 2021-03-22 20:42:25 +01:00
Kévin Commaille
b79ef0303a Move common::push::AnyPushRule to client_api::r0::push::PushRule 2021-03-22 20:42:25 +01:00
Kévin Commaille
22f7f28e1b common: Replace BTreeSet by IndexSet in push::Ruleset.
Keeps the JSON ordering for priority.

IndexSet are hashed by `rule_id` so its uniqueness is enforced.

A rule can be fetched by its `rule_id`.
2021-03-22 20:42:25 +01:00
Jonas Platte
ecfb8a4a4d
Relase ruma-common 0.3.0-alpha.1 2021-01-02 14:34:17 +01:00
Isaiah Inuwa
4831585223 Move TokenType to ruma-common 2020-12-26 21:46:29 +01:00
Jonas Platte
b4b9d28c8c
Update change log for ruma-common 2020-09-17 21:28:02 +02:00
Isaiah Inuwa
90af430d6b Copy shared directory types to ruma-common 2020-08-14 12:14:21 +02:00
Jonas Platte
0cd87a6c07
Update ruma-common changelog 2020-08-09 00:57:06 +02:00
Jonas Platte
30e73186e7
Bump dependencies 2020-08-07 19:13:00 +02:00
Jonas Platte
a74833a19b
ruma-common: Add a changelog 2020-07-24 20:56:42 +02:00