Commit Graph

12 Commits

Author SHA1 Message Date
Joel McCoy
b00dbab1a5 add time_difference gem
first use of INITIAL_CORPUS_FILE env var
more concise bot#blacklisted?
2015-03-08 18:14:49 -07:00
Joel McCoy
8a26f1108f CloudArchive and CloudModel complete (enough)
- CloudModel is actually classed correctly
 - Minify JSON prior to uploading
 - Change archive update interval to 24h (30* ..20MB = 600/1000MB)
 - Store latest revision url for archive/model after persisting

TODO:
 - Add INITIAL_CORPUS_FILE config var
 - Look for Cloudinary API call to get filesize w/o DLing
 - Logic for jsonify(INTIIAL_CORPUS_FILE) v. using persisted archive
 - Add fetch/persist/etc methods to Ebooks::Archive/Model for fallback
 - Test it? Or just share it and pray.
2015-02-11 23:41:26 -05:00
Joel McCoy
4151957c21 bump dep to 3.0.8, remove Bot#block workaround 2015-02-11 16:05:31 -05:00
Joel McCoy
a16cd90fe8 Add Boodoo::CloudModel and Boodoo::CloudArchive
Inheriting from Ebooks::Model/Archive, these have mthods for dealing
with fetching/persisting via Heroku's Cloudinary plugin.
2015-02-11 15:57:28 -05:00
Joel McCoy
9e584382f1 More Cloudinary work
Move Cloudinary require/calls to boodoo.rb
Add upload_archive, upload_model, fetch_archive, fetch_model
rename get_archive! to update_archive!

TODO:
 - Learn how to load model from content instead of File.open
 - Come up with sensible check/update logic
2015-01-21 16:03:50 -05:00
Joel McCoy
a941012b8c First pass at adding function back 2015-01-20 16:40:59 -05:00
Joel McCoy
094ff69ec3 Why did I write my own block method? 2015-01-08 13:59:32 -05:00
Joel McCoy
03e7d4e28f Fix unfollow, add block, fix missing interval assignments 2015-01-02 18:05:36 -05:00
Joel McCoy
8f9436b99b Make required_fields global 2014-12-29 13:38:27 -05:00
Joel McCoy
73ab3c8a06 Obscure banned terms (comic book style) 2014-12-29 13:38:09 -05:00
Joel McCoy
003b17fd44 Make banned_terms global, overwrite Model#valid_tweet?, first pass at bootstrapping 2014-12-27 18:38:02 -05:00
Joel McCoy
cfd7b74d3d First commit for Boodoo_Books on _ebooks 3.0.0
- Use .env file for secrets/config values
 - Maintain follower/following parity periodically
 TODO:
  - Support banned terms (override #valid_tweet?)
  - Commands via DM (at least "tweet" command from owner should work)
  - Investigate (anti)social behavior more deeply
 THEN:
  - Spooling/wait-for-config state for post-deploy, pre-config
  - Archive/model creation post-deploy
  - Archive/model periodic refresh
2014-12-10 02:14:21 -05:00