Releases: avinashbot/redd
Releases · avinashbot/redd
v0.7.5
Added:
- A new object type called
LabeledMulti
. Clients::Base
#read_all_messages
#my_multis
and#multi_from_path
PrivateMessage
#mark_as_read
and#mark_as_unread
Submission
#mark_as_nfsw
and#unmark_as_nsfw
#set_contest_mode
and#unset_contest_mode
#set_sticky
and#unset_sticky
Bugfixes:
- Reduce memory consumption of
#with
.
v0.7.4
Breaking Changes:
Clients::Base#submit
is now moved toSubreddit#submit
.
Added:
#get_related
and#get_duplicates
for Submission.- Upload images to a subreddit with
Subreddit#upload_image
.
Bugfixes:
Subreddit#admin_edit
now merges correctly.Clients::Base#stream
now escapes common errors to avoid losing track of comments. Non-trivial errors are still unescaped.Objects::Base#delete
is nowObjects::Base#delete_path
to 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_comment
toSubmission
, butClients::Base#add_comment
is still there.
v0.7.2
Added:
#search
toClients::Base
andObjects::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.it
for 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...?