├── .gitignore ├── .hound.yml ├── .rspec ├── .rubocop.yml ├── .travis.yml ├── CONTRIBUTING.md ├── Gemfile ├── Guardfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── TODO.md ├── bin ├── console ├── guard └── setup ├── docs ├── guides │ └── .keep ├── tutorials.md └── tutorials │ ├── creating-bots-with-redd.md │ ├── creating-webapps-with-redd.md │ └── make-a-grammar-bot.md ├── lib ├── redd.rb └── redd │ ├── api_client.rb │ ├── assist │ └── delete_badly_scoring.rb │ ├── auth_strategies │ ├── auth_strategy.rb │ ├── script.rb │ ├── userless.rb │ └── web.rb │ ├── client.rb │ ├── errors.rb │ ├── middleware.rb │ ├── models │ ├── access.rb │ ├── comment.rb │ ├── front_page.rb │ ├── gildable.rb │ ├── inboxable.rb │ ├── listing.rb │ ├── live_thread.rb │ ├── live_update.rb │ ├── messageable.rb │ ├── mod_action.rb │ ├── model.rb │ ├── moderatable.rb │ ├── modmail.rb │ ├── modmail_conversation.rb │ ├── modmail_message.rb │ ├── more_comments.rb │ ├── multireddit.rb │ ├── paginated_listing.rb │ ├── postable.rb │ ├── private_message.rb │ ├── replyable.rb │ ├── reportable.rb │ ├── searchable.rb │ ├── self.rb │ ├── session.rb │ ├── submission.rb │ ├── subreddit.rb │ ├── trophy.rb │ ├── user.rb │ └── wiki_page.rb │ ├── utilities │ ├── error_handler.rb │ ├── rate_limiter.rb │ └── unmarshaller.rb │ └── version.rb ├── logo.png ├── redd.gemspec ├── spec ├── redd │ ├── api_client_spec.rb │ ├── client_spec.rb │ └── version_spec.rb ├── redd_spec.rb ├── spec_helper.rb └── support │ ├── api_helpers.rb │ └── stub_client.rb └── www ├── .gitignore ├── assets └── logo.png ├── gatsby-config.js ├── gatsby-node.js ├── package-lock.json ├── package.json ├── src ├── components │ ├── Footer.js │ ├── Footer.scss │ ├── Header.js │ ├── Header.scss │ ├── SimplePage.js │ └── SimplePage.scss ├── html.js ├── layouts │ └── index.js ├── pages │ ├── 404.js │ ├── index.js │ └── index.scss └── templates │ └── guide-page.js └── static └── CNAME /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/.gitignore -------------------------------------------------------------------------------- /.hound.yml: -------------------------------------------------------------------------------- 1 | ruby: 2 | config_file: .rubocop.yml 3 | -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --format progress 2 | --require spec_helper 3 | --color 4 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/.travis.yml -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/Gemfile -------------------------------------------------------------------------------- /Guardfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/Guardfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/Rakefile -------------------------------------------------------------------------------- /TODO.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/TODO.md -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/bin/console -------------------------------------------------------------------------------- /bin/guard: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | bundle exec guard 3 | -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/bin/setup -------------------------------------------------------------------------------- /docs/guides/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/tutorials.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/docs/tutorials.md -------------------------------------------------------------------------------- /docs/tutorials/creating-bots-with-redd.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/docs/tutorials/creating-bots-with-redd.md -------------------------------------------------------------------------------- /docs/tutorials/creating-webapps-with-redd.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/docs/tutorials/creating-webapps-with-redd.md -------------------------------------------------------------------------------- /docs/tutorials/make-a-grammar-bot.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Make a Grammar Bot 3 | --- 4 | 5 | TODO: add more content 6 | -------------------------------------------------------------------------------- /lib/redd.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd.rb -------------------------------------------------------------------------------- /lib/redd/api_client.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/api_client.rb -------------------------------------------------------------------------------- /lib/redd/assist/delete_badly_scoring.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/assist/delete_badly_scoring.rb -------------------------------------------------------------------------------- /lib/redd/auth_strategies/auth_strategy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/auth_strategies/auth_strategy.rb -------------------------------------------------------------------------------- /lib/redd/auth_strategies/script.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/auth_strategies/script.rb -------------------------------------------------------------------------------- /lib/redd/auth_strategies/userless.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/auth_strategies/userless.rb -------------------------------------------------------------------------------- /lib/redd/auth_strategies/web.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/auth_strategies/web.rb -------------------------------------------------------------------------------- /lib/redd/client.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/client.rb -------------------------------------------------------------------------------- /lib/redd/errors.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/errors.rb -------------------------------------------------------------------------------- /lib/redd/middleware.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/middleware.rb -------------------------------------------------------------------------------- /lib/redd/models/access.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/access.rb -------------------------------------------------------------------------------- /lib/redd/models/comment.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/comment.rb -------------------------------------------------------------------------------- /lib/redd/models/front_page.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/front_page.rb -------------------------------------------------------------------------------- /lib/redd/models/gildable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/gildable.rb -------------------------------------------------------------------------------- /lib/redd/models/inboxable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/inboxable.rb -------------------------------------------------------------------------------- /lib/redd/models/listing.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/listing.rb -------------------------------------------------------------------------------- /lib/redd/models/live_thread.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/live_thread.rb -------------------------------------------------------------------------------- /lib/redd/models/live_update.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/live_update.rb -------------------------------------------------------------------------------- /lib/redd/models/messageable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/messageable.rb -------------------------------------------------------------------------------- /lib/redd/models/mod_action.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/mod_action.rb -------------------------------------------------------------------------------- /lib/redd/models/model.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/model.rb -------------------------------------------------------------------------------- /lib/redd/models/moderatable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/moderatable.rb -------------------------------------------------------------------------------- /lib/redd/models/modmail.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/modmail.rb -------------------------------------------------------------------------------- /lib/redd/models/modmail_conversation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/modmail_conversation.rb -------------------------------------------------------------------------------- /lib/redd/models/modmail_message.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/modmail_message.rb -------------------------------------------------------------------------------- /lib/redd/models/more_comments.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/more_comments.rb -------------------------------------------------------------------------------- /lib/redd/models/multireddit.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/multireddit.rb -------------------------------------------------------------------------------- /lib/redd/models/paginated_listing.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/paginated_listing.rb -------------------------------------------------------------------------------- /lib/redd/models/postable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/postable.rb -------------------------------------------------------------------------------- /lib/redd/models/private_message.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/private_message.rb -------------------------------------------------------------------------------- /lib/redd/models/replyable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/replyable.rb -------------------------------------------------------------------------------- /lib/redd/models/reportable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/reportable.rb -------------------------------------------------------------------------------- /lib/redd/models/searchable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/searchable.rb -------------------------------------------------------------------------------- /lib/redd/models/self.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/self.rb -------------------------------------------------------------------------------- /lib/redd/models/session.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/session.rb -------------------------------------------------------------------------------- /lib/redd/models/submission.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/submission.rb -------------------------------------------------------------------------------- /lib/redd/models/subreddit.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/subreddit.rb -------------------------------------------------------------------------------- /lib/redd/models/trophy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/trophy.rb -------------------------------------------------------------------------------- /lib/redd/models/user.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/user.rb -------------------------------------------------------------------------------- /lib/redd/models/wiki_page.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/models/wiki_page.rb -------------------------------------------------------------------------------- /lib/redd/utilities/error_handler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/utilities/error_handler.rb -------------------------------------------------------------------------------- /lib/redd/utilities/rate_limiter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/utilities/rate_limiter.rb -------------------------------------------------------------------------------- /lib/redd/utilities/unmarshaller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/lib/redd/utilities/unmarshaller.rb -------------------------------------------------------------------------------- /lib/redd/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Redd 4 | VERSION = '0.9.0.pre.3' 5 | end 6 | -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/logo.png -------------------------------------------------------------------------------- /redd.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/redd.gemspec -------------------------------------------------------------------------------- /spec/redd/api_client_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/spec/redd/api_client_spec.rb -------------------------------------------------------------------------------- /spec/redd/client_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/spec/redd/client_spec.rb -------------------------------------------------------------------------------- /spec/redd/version_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/spec/redd/version_spec.rb -------------------------------------------------------------------------------- /spec/redd_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/spec/redd_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/api_helpers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/spec/support/api_helpers.rb -------------------------------------------------------------------------------- /spec/support/stub_client.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/spec/support/stub_client.rb -------------------------------------------------------------------------------- /www/.gitignore: -------------------------------------------------------------------------------- 1 | .cache/ 2 | public/ 3 | node_modules/ 4 | npm-debug.log* 5 | -------------------------------------------------------------------------------- /www/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/www/assets/logo.png -------------------------------------------------------------------------------- /www/gatsby-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/www/gatsby-config.js -------------------------------------------------------------------------------- /www/gatsby-node.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/www/gatsby-node.js -------------------------------------------------------------------------------- /www/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/www/package-lock.json -------------------------------------------------------------------------------- /www/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/www/package.json -------------------------------------------------------------------------------- /www/src/components/Footer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/www/src/components/Footer.js -------------------------------------------------------------------------------- /www/src/components/Footer.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/www/src/components/Footer.scss -------------------------------------------------------------------------------- /www/src/components/Header.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/www/src/components/Header.js -------------------------------------------------------------------------------- /www/src/components/Header.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/www/src/components/Header.scss -------------------------------------------------------------------------------- /www/src/components/SimplePage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/www/src/components/SimplePage.js -------------------------------------------------------------------------------- /www/src/components/SimplePage.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/www/src/components/SimplePage.scss -------------------------------------------------------------------------------- /www/src/html.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/www/src/html.js -------------------------------------------------------------------------------- /www/src/layouts/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/www/src/layouts/index.js -------------------------------------------------------------------------------- /www/src/pages/404.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/www/src/pages/404.js -------------------------------------------------------------------------------- /www/src/pages/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/www/src/pages/index.js -------------------------------------------------------------------------------- /www/src/pages/index.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/www/src/pages/index.scss -------------------------------------------------------------------------------- /www/src/templates/guide-page.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avinashbot/redd/HEAD/www/src/templates/guide-page.js -------------------------------------------------------------------------------- /www/static/CNAME: -------------------------------------------------------------------------------- 1 | redd.avn.sh 2 | --------------------------------------------------------------------------------