Benjamin Neff
e26a86c173
Switch PercentLiteralDelimiters to new default
...
Let's change that to the new rubocop default, which is also the
suggestion in the ruby style guide.
See https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
This was changed in diaspora too, see diaspora/diaspora#7466
It also includes the changes in the code. This was done with
`rubocop --auto-correct` and no we have zero offenses again.
2017-06-30 02:23:44 +02:00
Benjamin Neff
b25e2293b0
Require "openssl" in diaspora_federation.rb
2017-04-04 22:09:25 +02:00
Benjamin Neff
ed2c2b7f47
Require "nokogiri" in diaspora_federation.rb
2017-04-03 03:45:29 +02:00
cmrd Senya
c58d076c96
Entity JSON serialization/deserialization feature
2017-03-23 13:55:19 +02:00
Benjamin Neff
7248aaec67
fix rubocop offenses for rubocop 0.44.1
2016-10-14 23:25:59 +02:00
Steffen van Bergerem
e0ab18c0ea
Improve code documentation
2016-07-12 02:08:21 +02:00
Benjamin Neff
1d4d3d732d
use shorter callback keys for key-callbacks
2016-03-29 02:42:19 +02:00
Benjamin Neff
01d45e225d
use RelatedEntity as target for RelayableRetraction
2016-03-28 20:14:25 +02:00
Benjamin Neff
8f2b3e6a14
use data from parent-RelatedEntity for Relayables
2016-03-28 19:52:57 +02:00
Benjamin Neff
3ac21b585b
add fetch_related_entity callback
2016-03-28 17:23:38 +02:00
Benjamin Neff
1ee9d30ddb
add related entity
2016-03-28 17:23:38 +02:00
Benjamin Neff
e67629041e
require version for user agent
2016-03-26 00:37:12 +01:00
Benjamin Neff
6eb36931be
improve documentation
2016-03-25 23:20:43 +01:00
Benjamin Neff
bd9cc67f5e
create receiver for new protocol and write tests
2016-03-18 02:54:17 +01:00
Benjamin Neff
176425f881
rename Fetcher to HttpClient
...
don't use the same classname twice
2016-03-15 02:17:04 +01:00
Benjamin Neff
7e2815fabc
create fetch entity callback
...
and url_to callback
2016-03-15 01:30:08 +01:00
Benjamin Neff
f1874f20bd
add slap/magic-env switch to the receive-controller
2016-02-14 19:00:43 +01:00
Benjamin Neff
b19e1b8e52
move signing logic for relayables to Relayable
...
refactoring exceptions for relayables
2016-01-31 20:22:51 +01:00
Benjamin Neff
f4f25e8663
add status to the update_pod callback
2016-01-30 18:28:37 +01:00
Benjamin Neff
fd1dd7988d
improve documentation
2016-01-18 00:17:51 +01:00
Benjamin Neff
d852144f3c
add send functionality
2016-01-12 02:36:32 +01:00
Benjamin Neff
aa84c4c40e
move Receiver to Federation module
2016-01-11 02:30:32 +01:00
Benjamin Neff
1cc8fac8a1
add http config to DiasporaFederation
2016-01-11 01:54:48 +01:00
Benjamin Neff
c7446f7220
refactor receive classes
2015-12-18 00:42:41 +01:00
Benjamin Neff
b56c1e2d04
send xml to callbacks to queue it for receive
2015-12-18 00:11:32 +01:00
cmrd Senya
5aac8c2423
Receiving entities support
2015-12-15 19:06:51 +03:00
Benjamin Neff
73fab4d01c
add more documentation
2015-12-13 01:22:17 +01:00
cmrd Senya
7702513ca5
Documentation for the callbacks
2015-12-11 03:01:42 +03:00
cmrd Senya
91376a3e26
Retractions signatures support
2015-12-03 00:15:32 +03:00
cmrd Senya
91c3753019
Add signature computation for entities support
2015-11-22 23:40:46 +03:00
Benjamin Neff
7f731e9af0
refactor salmon stuff
...
* fix rubocop issues
* remove duplicate code
* use `describe` in specs for methods
2015-10-26 23:50:31 +01:00
cmrd Senya
1801de3b52
Add StatusMessage related entities from the @Raven24's gem.
...
This makes the testbed pass with this gem.
2015-10-23 23:25:02 +03:00
Benjamin Neff
eb707c2592
add xml_payload (+tests) from raven24's gem
...
and do some basic refactorings for rubocop
2015-09-25 00:41:34 +02:00
Benjamin Neff
cb9b754faa
allow certificate_authorities to be missing in test/development environment
2015-08-10 01:11:51 +02:00
Benjamin Neff
311d6948e5
save person after fetch
2015-08-04 03:00:55 +02:00
Benjamin Neff
f4066f6105
rename callbacks
2015-08-04 02:09:14 +02:00
Benjamin Neff
2301b1433e
add validators from raven24
2015-07-20 03:43:54 +02:00
Benjamin Neff
c65ad965b3
add Person and Profile entity for discovery-data
2015-07-18 23:19:30 +02:00
Benjamin Neff
0204b3d9ff
add Fetcher for http requests
2015-07-18 21:58:44 +02:00
Benjamin Neff
09904b54d0
rename WebFinger module to Discovery
2015-07-18 21:57:39 +02:00
Benjamin Neff
88b67d9a83
more documentation
2015-07-09 01:53:37 +02:00
Benjamin Neff
3f6c207f59
write more documentation
2015-07-08 03:14:02 +02:00
Benjamin Neff
e955ef8966
add Entity and PropertiesDSL
2015-07-08 01:45:57 +02:00
Benjamin Neff
ec5667193b
add Callbacks
2015-07-07 01:20:56 +02:00
Benjamin Neff
d7c248b94e
cleanup: remove double ## everywhere on documentation
2015-07-06 23:49:42 +02:00
Benjamin Neff
3a7c2035ad
update documentation
2015-07-04 20:01:37 +02:00
Benjamin Neff
9925cbb99a
split rails part into separate gem
...
see #1
2015-07-04 20:01:37 +02:00
Benjamin Neff
7370a32c65
use serialized_public_key because a conflict with the diaspora code
2015-07-04 19:55:32 +02:00
Benjamin Neff
f6aae2a01f
add nil-check
2015-07-02 03:00:51 +02:00
Benjamin Neff
7cf8339b59
call to_s on the configured class
2015-07-02 02:44:46 +02:00