Releases: avinashbot/redd
Releases · avinashbot/redd
v0.7.5
Added:
- A new object type called
LabeledMulti. Clients::Base#read_all_messages#my_multisand#multi_from_path
PrivateMessage#mark_as_readand#mark_as_unread
Submission#mark_as_nfswand#unmark_as_nsfw#set_contest_modeand#unset_contest_mode#set_stickyand#unset_sticky
Bugfixes:
- Reduce memory consumption of
#with.
v0.7.4
Breaking Changes:
Clients::Base#submitis now moved toSubreddit#submit.
Added:
#get_relatedand#get_duplicatesfor Submission.- Upload images to a subreddit with
Subreddit#upload_image.
Bugfixes:
Subreddit#admin_editnow merges correctly.Clients::Base#streamnow escapes common errors to avoid losing track of comments. Non-trivial errors are still unescaped.Objects::Base#deleteis nowObjects::Base#delete_pathto avoid collision withHash#delete.
v0.7.3
Added:
- Comments trees from submissions and other comments can now be converted to a linear array with
Clients::Base::Utilities#flat_comments. - Also added
#add_commenttoSubmission, butClients::Base#add_commentis still there.
v0.7.2
Added:
#searchtoClients::BaseandObjects::Subreddit. It's a listing method just like#get_hot.
v0.7.1
v0.7.0, Codename "Phoenix"
After 1K lines of code, here it is: a complete restructuring of the gem to be more OOP-focused (we're not PHP here). For example, client.submission_comments(submission) is now a more intuitive submission.comments. Although this requires that each object carries a reference to its client and removes batch methods (I intend to add them in later), hopefully it'll make you and me more productive. As usual, most methods are documented to the best of my ability.
Other major changes:
- Removal of cookie-based authentication in favour of OAuth2 (see why)
- Keyword arguments (thank god).
- A method named
Redd.itfor simpler authentication. - Hashie is now used for models.
- The new stream method now checks for duplicates and allows you to stream any method that returns a listing.
Unfortunately this release will probably come with its own bugs. Please do file any bug in the issues, no matter how tiny. By the way, it's called "Phoenix". Get it...?