Commit Graph

23 Commits

Author SHA1 Message Date
Joel McCoy
2a23cf22bd Simple wrappers for Archive/Model creation; this whole thing needs to be re-written 2015-03-08 18:15:53 -07:00
Joel McCoy
d369371ce0 Working on Cloud/No-Cloud in parallel:
Ebooks::Archive and Ebooks::Model set as fallbacks for Cloud equivalents -- ROUGH COMMIT
Add Boodoo.age method ("since"), use keyword arguments in some method signatures -- ROUGH COMMIT
2015-03-08 18:15:05 -07:00
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
f890f0c8e2 Re-aligning meta
- Rename archive_update_interval
 - Roll back overscoped multiple source/admin users support placeholder
 - Point app.json to persist-cloudinary branch
2015-02-11 15:59:12 -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
1576d83577 Remove load_model! method (we use make_model!) 2015-01-21 15:26:41 -05:00
Joel McCoy
500ece05bf use cloudinary:basic addon and cloudinary gem 2015-01-21 15:20:47 -05:00
Joel McCoy
f0743ea887 remove undefined variable from can_follow? check 2015-01-08 15:12:35 -05:00
Joel McCoy
b3e82f0497 lower chance to retweet/reply in timeline (1%) 2015-01-08 15:07:27 -05:00
Joel McCoy
c2e250e41e remove commented junk 2015-01-08 14:15:43 -05:00
Joel McCoy
1de527e145 Tweet on startup like doc says it should 2015-01-08 14:03:33 -05:00
Joel McCoy
03e7d4e28f Fix unfollow, add block, fix missing interval assignments 2015-01-02 18:05:36 -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
a331b24cfd Second commit:
Merge ENV on top of defaults.env to get SETTINGS
Added basic controls via DM
2014-12-18 22:46:03 -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
Marie Markwell
2c27df3c88 ♫ Clean up, clean up, everybody, everywhere ♫ 2014-12-05 19:49:05 -05:00
Jaiden Mispy
755e653316 3.0.0 update 2014-12-05 23:33:19 +11:00
Hubert Lee
fe5c765121 move code that should be customized into constants for easier replacement 2014-06-27 16:08:50 -04:00
Hiramiya
a6f32fda6e Prevent double-favourite on special tweets
Tweets determined as 'special' to the bot could (under a 50% chance) accidentally attempt to be favourited twice, causing a crash due to Twitter returning a Forbidden response. In this example, we add an assertion to check whether the earlier favourite has occurred, to prevent it happening again.
2014-05-17 15:40:58 +01:00
Mispy
42470aceb6 Ebooks example repo 2013-12-20 05:05:46 -08:00