Created
February 19, 2010 00:19
-
-
Save jsmestad/308260 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update all stale fixtures | |
StaleFish.update_stale | |
StaleFish.update_stale(:all) | |
# Update all specified fixtures | |
StaleFish.update_stale(:only => [:project_api, ...]) | |
StaleFish.update_stale(:except => [:github, ...]) | |
# Force update, regardless of timestamp | |
StaleFish.update_stale!(:all) | |
StaleFish.update_stale!(:only => [..]) | |
# Update without updating YAML file | |
StaleFish.update_stale(:all, :log => false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stale: | |
fixture: | |
name: gh_commits | |
file: 'gh_commits.json' | |
update_interval: 2.days | |
check_against: http://api.github.com/commits.json | |
request_type: GET | |
last_updated_at: [TIMESTAMP] | |
fixture: | |
name: twitter | |
file: 'timeline.json' | |
update_interval: 30.days | |
check_against: http://twitter.com/api/timeline | |
request_type: POST | |
last_updated_at: [TIMESTAMP] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment