Skip to content

Releases: avinashbot/redd

v0.7.5

Choose a tag to compare

@avinashbot avinashbot released this 19 Feb 21:51

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

Choose a tag to compare

@avinashbot avinashbot released this 18 Feb 05:28

Breaking Changes:

  • Clients::Base#submit is now moved to Subreddit#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 now Objects::Base#delete_path to avoid collision with Hash#delete.

v0.7.3

Choose a tag to compare

@avinashbot avinashbot released this 15 Feb 07:55

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 to Submission, but Clients::Base#add_comment is still there.

v0.7.2

Choose a tag to compare

@avinashbot avinashbot released this 15 Feb 04:06

Added:

  • #search to Clients::Base and Objects::Subreddit. It's a listing method just like #get_hot.

v0.7.1

Choose a tag to compare

@avinashbot avinashbot released this 14 Feb 19:10

Added:

  • #edit_stylesheet, #admin_about and #admin_edit were added to Objects::Subreddit.

Huge thanks to @beatak for pull request #4.

v0.7.0, Codename "Phoenix"

Choose a tag to compare

@avinashbot avinashbot released this 14 Feb 02:44

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...?