Brutalismbot RubyGem
Installation
gem install brutalismbot
Usage
require "brutalismbot/s3"
brutbot = Brutalismbot::S3::Client.new bucket: "my-bucket", prefix: "my/prefix/"
# Get latest cached post
post = brutbot.posts.last
# Get newest posts
brutbot.subreddit.posts(:new).all
# Get new posts since latest
brutbot.subreddit.posts(:new, before: post.fullname).all
# Get current top post
brutbot.subreddit.posts(:top, limit: 1).first
# Pull latest posts
brutbot.posts.pull
# Mirror a post to all clients
brutbot.auths.mirror post
Contributing
Bug reports and pull requests are welcome on GitHub.
License
The gem is available as open source under the terms of the MIT License.