Squashed 'libertree-client-rb/' changes from 45fe949..aa3d208

aa3d208 tests: fix namespace expectation
50d052d add thr namespace for thr:in-reply-to tag
27885fa bump version to 0.0.3
070e6c2 tests: add missing tags to expected test output
fed997d tests: include uids in test output
e122dd1 comment uid must contain the comment not post origin domain
c41b2c2 use local member for req_member test
d381bae update libertree-model (long overdue)
313039a stop sending server_name in INTRODUCE request

git-subtree-dir: libertree-client-rb
git-subtree-split: aa3d208ae76fdb2f1388894926d81dc80744c59b
Merge commit '0cb426d139d1225753d4db07ea49cc2adf0c53ff'
Squashed 'libertree-backend-rb/' changes from d7cdd70..9259662

9259662 update libertree-model
76c143d update libertree-model
0531c59 update libertree-model
5a3b285 update libertree-model
518c03f update libertree-model
4cc470d update libertree-model
ab718be update libertree-model (syntax)
7f3da1f update libertree-model
506fcc2 use libertree/console from the model lib for the console
5dd9ca3 update libertree-model
c466f84 update libertree-model
1f821e1 update libertree-model
b4dde14 use with_account helper
0b3426a fix: create chat for recipient member, not account
6e50c5e erase gateway_jid when it's not sent along
fa5446b save member record when updating gateway_jid
f32316f update libertree-model (river.refresh_posts limit)
df48fed update libertree-model to fix river.refresh_posts bug
19c303a update libertree-model
6cfe59f update libertree-model
75e5598 update libertree-model (fix nil bug)
499a123 update libertree-model
dc60d32 update libertree-model
c87c090 update libertree-client (add thr namespace)
e79e165 set Server.own_domain in job-processor
ef142ca update Gemfile.lock: use blather release (not from git)
3f746fb update libertree-model, init Server.own_domain
b3ccf50 move authentication initialisation to lib/libertree/server.rb
982703e fix comment
9bc2efb move blather out of extensions group
37f3460 update libertree-model (fix nil bug)
85a27ed update libertree-model (fix syntax error)
0c5c069 update libertree-model
6664847 gateway: distribute member record on registration removal
7f397dc accept chat messages sent through a gateway
a3bd6f7 strip off JID resource when receiving chat from gateway user
e25d912 update libertree-model
aac0c5a update libertree-client
5811e11 ignore name_given when processing INTRODUCE requests
c486209 be more careful about mismatched regular expressions

git-subtree-dir: libertree-backend-rb
git-subtree-split: 9259662de84179ecd9c317eca7441bb280f2ef7e
Merge commit '696079c2af18112981ff5c2ef70c62b6c2959d0b'
Squashed 'libertree-model-rb/' changes from 2e0d1c3..6797648

6797648 fail query parse if a resource lookup fails (optional)
59e357f move query parser to its own class
d43f346 refresh_posts: delete river posts early to avoid confusion
df9c013 post.filter_by_query needs to be passed an account
663e8d2 break out query parser
00baa73 move post filtering by parsed query to Post model
d108415 river.refresh_posts: take union of regular term filtering results
91e202f river.refresh_posts: use only 'simple' dictionary
5cfb429 river.refresh_posts: consider regular flags
b0b8312 break long line
61d246c simplify flag handling
9bca63d profile search: use tsvector on description column
cc1c521 move post filters to Post model
3ab71ee fix: swap filtering for subscribed posts
9bb324b fix: swap filtering for liked posts
e9eb333 move posts_hidden filter to Post model
d5b4880 convert tags to lowercase before filtering
d30fd64 expect tags in parsed query to be without prefix
55dec07 use the concatenated tsvector ('english' and 'simple')
f682716 river.refresh_posts: filter tags with hashtags array column
0f0e12e tagged_posts expects an array of tags now
c92fe6d add magic encoding comment for ruby < 2
88fb58a avoid infinite recursion
bbbc1cb change syntax to support ruby 1.9.1
5cd501b store post hashtags in separate column
0eb85d2 check version of libertree-db
fb26e5d post: extract_hashtags from rendered text
6f3747d build glimpse method on plainly rendered text
ffc5afd break out console to separate library
0fff24b fetch comments anew when calling `get_comments` lambda
fe2c788 tests for singleton method 'comments' on post.get_full
68af307 tests: test post.get_full
58b024b allow for a refresh of cached comments
f93a26e undo merging referenced :river query
64deb92 bump version
a6f0109 embedder.extract_urls: operate on rendered text
53699a8 update parkdown
cc236d2 post.mentioned_accounts: operate on rendered text
7d4c393 merge parsed queries when a river is included with :river
0943072 require markdown library
1a5f30d add parkdown as a dependency
f004929 move basic markdown rendering here
f90d8fe wrap delete/insert pairs in transaction
584d1e3 simplify insert query
44de0e0 speed up matching against :contact-list
3bdd3e7 refuse to add something to a list that is not a Member
8bb0ae9 add faster way to get ids of list members
58d3f06 treat any whitespace character as separator
1fefe4a qualify id as posts__id
df2d456 add TODO comment
3c645a7 tests: parsed_query keeps hash in front of tags
acdef89 remove query_components and query_parts
3dc2e32 refresh_posts: speed up final ruby filtering
16d7467 refresh_posts: run phrase and tag regexps in db layer
7103594 refresh_posts: filter posts on visibility, via, from
24ccb73 refresh_posts: filter posts on query flags
c85160d use faster post.local? instead of post.member.account
3b19a68 filter hidden posts faster
bcbb2f2 search for tags
d549c42 Post.urls_already_shared? : If a URL has been shared in 4 or more posts, don't count it.
ae4c708 Post.urls_already_posted? : Use regexp that is compatible with Ruby 1.9.3.
803e951 refresh_posts: use parsed_query instead of query_parts
c400f38 optional list of keys matches_post? should ignore
2fa03db express river.matches_post? in terms of parsed_query
f002f38 include global queries in parsed_query
17774dc tests: add test with multiple regular terms for clarity
cef1a67 tests: simplify
34b9493 tests: river.parsed_query should ignore invalid spring queries
3fe1164 tests: remove misleading test
7ff12fd river.parsed_query: find member by display name
ffcf4ff temporary helper to get a member by display name
dbf13ed tests: add flag test for river.parsed_query
ab1a21e Added more tests around Post.urls_already_posted? .  Fixed all known logic errors.
9e48cc2 Change Post.urls_already_posted? to return a Post, not a Boolean.  Added test coverage for it, fixed some bugs in it.
d6d7409 reduce regexp noise
5c16284 parsed_query: processes and verifies the river query
a6055c2 fix river_refresh test
df48928 match optional +- char before simple word
10d2683 Introduce Post.urls_already_posted? .
f2efefa try to match only up to n posts, don't limit early
5341882 fix stupid river.refresh_posts bug: wrong order
288383a make sure to build a tsquery only from simple words
3b07578 fix regexp for detecting JIDs in posts
798e028 fix nil bug
b644ced bump version
c5f2321 tests: ensure that handles with domain part are matched
6b6f3c0 post.mentioned_accounts should support JIDs, not only usernames
385157f bump version
62260eb tests: fix broken account.messages test
4631201 workaround for :from query after change to member.handle
795f2cb tests: set server.domain instead of server.name_given
9199dc8 tests: expire cache to check for deletion success
21b2203 Server.own_domain to set own domain, use in local handles
fc084cf if display name is unset, return username (not handle)
882a1eb fix nil bug
ec87341 fix syntax error
aeded15 bump version
a3317c6 only filter accounts if commenter is local
d0184d8 tests: ignore "deleted" flag in view results
6f0866a tests: add dummy tests for Job
d4118c1 fix memoisation attempts
78f186e no longer use name_given for server display name
9e44f98 tests: generate domain in server factory, not IP or name_given
83bbc2e tests: replace before :each with before :all
4467068 tests: add test for Member.with_handle
a88d156 rewrite queries using sequel syntax

git-subtree-dir: libertree-model-rb
git-subtree-split: 6797648c96cbb01a1740e06871d188401206542f
Merge commit '2f943cb5c51ec1f1e9fb7d25fb3ec2443cd10c4e'