Commit graph

767 commits

Author SHA1 Message Date
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
Benjamin Neff
03ad788c85 Merge branch 'master' into salmon 2015-10-25 01:33:46 +02:00
Benjamin Neff
b183a3a51a bump dependency gems 2015-10-25 01:33:31 +02:00
Benjamin Neff
069b9672b7 bump webmock 2015-10-25 01:32:49 +02:00
Benjamin Neff
b245f817a0 bump sqlite3 2015-10-25 01:31:25 +02:00
Benjamin Neff
b160a848b5 bump pry 2015-10-25 01:30:33 +02:00
Benjamin Neff
de7c4f831d bump pronto-rubocop 2015-10-25 01:30:12 +02:00
Benjamin Neff
0419bfe0e9 bump faraday 2015-10-25 01:26:23 +02:00
Benjamin Neff
d574709680 bump valid 2015-10-25 01:25:47 +02:00
Benjamin Neff
1a3ba7e0fd Merge branch 'salmon' of github.com:SuperTux88/diaspora_federation into salmon 2015-10-25 01:22:17 +02:00
Benjamin Neff
60cf4ca64f refactoring AES part and add specs 2015-10-25 01:21:42 +02:00
Benjamin Neff
066e391c95 Merge pull request #4 from cmrd-senya/add-request
Add the request entity from the @Raven24's gem.
2015-10-24 14:55:03 +02:00
cmrd Senya
79db753124 Add the request entity from the @Raven24's gem. 2015-10-24 15:43:20 +03:00
Benjamin Neff
c187ee758e Merge pull request #3 from cmrd-senya/add-status-message-entity
Add StatusMessage related entities from the Ranen24's gem.
2015-10-23 22:28:36 +02: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
0848ada216 add more shared examples 2015-09-27 03:17:45 +02:00
Benjamin Neff
5a81d38e60 add salmon-classes (+tests) from raven24's gem
and do some basic refactorings for rubocop
2015-09-26 01:51:27 +02:00
Benjamin Neff
778a782c76 add exceptions for salmon stuff and move all to one file 2015-09-25 23:32:10 +02:00
Benjamin Neff
7b4753148b split populate_entity in xml_payload 2015-09-25 22:42:22 +02:00
Benjamin Neff
6838391cc9 refactored Entity.entity_name and XmlPayload.entity_class_name
write tests and simplified regexes.
2015-09-25 02:37:22 +02: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
d75c9af784 bump rubocop 2015-09-22 00:11:43 +02:00
Benjamin Neff
eabe1135ee fix some rubocop warnings
the last one will be fixed with the next rubocop release
2015-09-21 00:50:09 +02:00
Benjamin Neff
1ee03a1e66 release version 0.0.8 2015-09-19 20:51:21 +02:00
Benjamin Neff
4bae674945 bump spring 2015-09-19 20:46:25 +02:00
Benjamin Neff
b3a482841c bump codeclimate-test-reporter 2015-09-19 20:45:47 +02:00
Benjamin Neff
a21dab71fe bump rubocop and pronto 2015-09-19 20:45:11 +02:00
Benjamin Neff
62be2d92c5 bump rails 2015-09-19 20:37:02 +02:00
Benjamin Neff
c672ae92b6 bump valid 2015-09-19 20:28:01 +02:00
Benjamin Neff
b488901412 bump typhoeus 2015-09-19 20:24:56 +02:00