Skip to content

Instantly share code, notes, and snippets.

@jsmestad
Created February 19, 2010 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsmestad/308260 to your computer and use it in GitHub Desktop.
Save jsmestad/308260 to your computer and use it in GitHub Desktop.
# 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)
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