Joel McCoy
11a0066d4d
Fix assignment typo in boodoo.rb
2015-04-16 17:17:08 -04:00
Joel McCoy
6c666b076e
Fix typo in app.json
2015-04-16 17:04:08 -04:00
Joel McCoy
69aa1c0ff5
updated README
2015-03-08 18:21:00 -07:00
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
4151957c21
bump dep to 3.0.8, remove Bot#block workaround
2015-02-11 16:05:31 -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
a941012b8c
First pass at adding function back
2015-01-20 16:40:59 -05:00
Joel McCoy
9906fee888
Bump twitter_ebooks gem to 3.0.7
2015-01-20 16:16:18 -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
094ff69ec3
Why did I write my own block method?
2015-01-08 13:59:32 -05:00
Joel McCoy
bb22671630
remove scripts.postdeploy from app.json
2015-01-07 17:23:07 -05:00
Joel McCoy
9114814219
Fix Gemfile, add Gemfile.lock
2015-01-07 16:04:48 -05:00
Joel McCoy
292d645996
First pass at README
2015-01-07 14:42:29 -05:00
Joel McCoy
03e7d4e28f
Fix unfollow, add block, fix missing interval assignments
2015-01-02 18:05:36 -05:00
Joel McCoy
dc3ec3ac89
Change tweet period for deployment
2015-01-02 15:18:14 -05:00
Joel McCoy
595ea9b0c7
Created app.json for Heroku
2015-01-02 15:10:39 -05:00
Joel McCoy
5712e596c5
Update to most recent _ebooks gem
2014-12-29 13:48: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
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
Jaiden Mispy
c42f42a81d
Merge pull request #8 from duckinator/patch-1
...
♫ Clean up, clean up, everybody, everywhere ♫
2014-12-06 10:55:54 +10: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
Mispy
9494210945
corpus/model dirs
2014-07-08 22:57:15 -07:00
Mispy
6f1c00545b
Merge pull request #5 from hube/constants
...
Make it easier to customize example
2014-06-28 09:08:42 +10:00
Hubert Lee
fe5c765121
move code that should be customized into constants for easier replacement
2014-06-27 16:08:50 -04:00
Mispy
2cbc1910c2
Merge pull request #2 from Hiramiya/master
...
Prevent double-favourite on special tweets
2014-05-18 00:44:27 +10: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