Commit graph

946 commits

Author SHA1 Message Date
Benjamin Neff
965babbfee mark RelayableRetraction and SignedRetraction as deprecated
The normal Rectraction can be used for this:

* RelayableRetraction: Both the author and the parent author can retract
  a relayable, so there is no need to check if it was relayed.
* SignedRetraction: this is already signed at the salmon-level. No need
  to add an additional signature at this level. Only used for
  StatusMessage.
2015-12-07 02:05:37 +01:00
Benjamin Neff
c169fac517 Merge branch 'develop' of github.com:SuperTux88/diaspora_federation into develop 2015-12-05 18:00:34 +01:00
Benjamin Neff
6d2826bb9a bump simplecov 2015-12-05 16:56:11 +01:00
Benjamin Neff
5e3ffc4c37 Merge pull request #18 from cmrd-senya/retractions-signatures
Retractions signatures support
2015-12-02 22:47:40 +01:00
cmrd Senya
91376a3e26 Retractions signatures support 2015-12-03 00:15:32 +03:00
Benjamin Neff
d98e4d4325 bump nokogiri 2015-12-01 01:43:22 +01:00
Benjamin Neff
ecbd1a47b9 bump webmock 2015-11-30 01:57:32 +01:00
Benjamin Neff
83240c12b4 bump spring 2015-11-30 01:55:37 +01:00
Benjamin Neff
2e7e0842a0 bump simplecov 2015-11-30 01:55:02 +01:00
Benjamin Neff
6d4700a200 bump pry-byebug 2015-11-30 01:53:53 +01:00
Benjamin Neff
87d48a9515 bump rspec-rails 2015-11-30 01:51:55 +01:00
Benjamin Neff
127d4fa463 pump rubocop and pronto 2015-11-30 01:47:17 +01:00
Benjamin Neff
531bc32504 bump rails 2015-11-30 01:45:01 +01:00
Benjamin Neff
12db193dc8 bump nokogiri 2015-11-30 01:43:54 +01:00
Benjamin Neff
48b56ee6da Array#to_h is new in Ruby 2.1, we still support 2.0 2015-11-30 01:34:33 +01:00
Benjamin Neff
3879632a11 Update readme 2015-11-30 01:17:35 +01:00
Benjamin Neff
5840c924fb add develop branch to travis 2015-11-30 01:07:32 +01:00
Benjamin Neff
06695610dd write tests to have 100% coverage again 2015-11-30 00:28:20 +01:00
Benjamin Neff
9d999918e5 make entities more consistent 2015-11-29 23:50:44 +01:00
Benjamin Neff
dc0f786b2c improve documentation 2015-11-29 23:26:30 +01:00
Benjamin Neff
eef6ca19d2 do some refactorings
- use more "tap"
- fix rubocop issues
2015-11-28 18:23:02 +01:00
Benjamin Neff
c80e9bcacd Merge pull request #17 from cmrd-senya/docs
Documentation added
2015-11-28 16:42:53 +01:00
cmrd Senya
dba15af1d8 Documentation added 2015-11-28 18:40:55 +03:00
Benjamin Neff
91546d7919 Merge pull request #16 from cmrd-senya/tests-gem
Introduce diaspora_federation-tests gem.
2015-11-23 23:33:39 +01:00
cmrd Senya
64608e7869 Introduce diaspora_federation-test gem 2015-11-23 23:58:28 +03:00
Benjamin Neff
a743f08158 Merge pull request #13 from cmrd-senya/entities-signatures
Add signature computation for entities support
2015-11-22 22:10:11 +01:00
cmrd Senya
91c3753019 Add signature computation for entities support 2015-11-22 23:40:46 +03:00
Benjamin Neff
1b929a6bbf Merge pull request #14 from cmrd-senya/relayable-entity-2
Introduce the "Relayable" entity
2015-11-15 21:33:56 +01:00
cmrd Senya
b9b5ee6f7d Do the same generalization for Relayable for validators taking
into account that "author_signature" and "parent_author_signature"
are allowed to be empty, actually.
2015-11-13 17:44:45 +03:00
cmrd Senya
fd1f896d17 Introduce the "Relayable" entity, which encapsulates common
properties of entities that are inherited from Relayable class
in the Diaspora source code - "parent_guid",
"parent_author_signature", "author_signature".
2015-11-13 16:43:36 +03:00
Benjamin Neff
03f10b6a03 Merge pull request #12 from cmrd-senya/xml_payload_rspec_sections_mismatch
Fixes that in the XmlPaylod rspec ".entity_class_name" was mistakenly put inside the ".unpack" section
2015-11-11 15:14:04 +01:00
cmrd Senya
9fd2b048e6 Fixes that in the XmlPaylod rspec ".entity_class_name" was mistakenly
put inside the ".unpack" section
2015-11-11 17:07:20 +03:00
Benjamin Neff
3e8b1fa7f2 Merge pull request #11 from cmrd-senya/poll
Add the Poll entity
2015-11-07 16:25:10 +01:00
cmrd Senya
148300b329 Partly replace hard-coded hashes in specs with FactoryGirl.attributes_for 2015-11-07 15:58:47 +03:00
cmrd Senya
c9e641f3c5 Adding initialize_with to FactoryGirl config in previous commit allowed
to call FactoryGirl.build for entities, so use it wherever possible.
2015-11-07 15:58:47 +03:00
cmrd Senya
e8fa25c6a6 Add the Poll entity 2015-11-07 15:58:30 +03:00
Benjamin Neff
34a720cd14 Merge pull request #10 from cmrd-senya/merge-all-the-entities
Merge all the entities left from the @Raven24's gem
2015-11-06 00:33:43 +01:00
cmrd Senya
b8b52fc60d - New and older specs adjustments;
- Move the specs to use FactoryGirl;
- Replace use of "context" in specs with "describe".
2015-11-06 01:51:20 +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
cmrd Senya
761534f13c DRY specs more by introducing "a property with data-types restriction" shared behavior 2015-11-05 17:27:31 +03:00
Benjamin Neff
5a4d742db2 Merge pull request #8 from cmrd-senya/entities-updates
Some more code merged from the @Raven24's gem
2015-11-02 23:35:33 +01:00
cmrd Senya
9391d4b9eb Reduce the entity stubs initialization calls to a single entity_stub
to make the code more DRY
2015-11-03 01:23:10 +03:00
cmrd Senya
9cb6fe4d1b Some more code merged from the @Raven24's gem. The code is
related to the request, status_message, participation, photo and
location entities, its validators and tests for all of the things.
2015-11-03 00:39:30 +03:00
Benjamin Neff
eaedc3473a use Faraday.default_adapter
fixes #7
2015-11-01 04:05:35 +01:00
Benjamin Neff
cc63cfe285 Merge branch 'salmon' of github.com:SuperTux88/diaspora_federation into salmon 2015-10-28 03:04:57 +01:00
Benjamin Neff
d5041912f3 refactored shared_entity_specs.rb 2015-10-28 03:04:17 +01:00
Benjamin Neff
3aa8ad63a7 Merge pull request #6 from cmrd-senya/request-validator
A validator for the request entity
2015-10-28 02:57:07 +01:00
Benjamin Neff
42e994e01e use xml_name when parsing an entity 2015-10-28 02:53:17 +01:00
cmrd Senya
4cbffbdc67 A validator for the request entity 2015-10-28 04:38:38 +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