Permalink
Browse files

Look for a slurper_config.yml in working directory

  • Loading branch information...
1 parent e5d95a1 commit d62eb8339474e228e30278885a3a50e32fb65739 Wes Gibbs committed Jan 31, 2010
Showing with 5 additions and 2 deletions.
  1. +1 −1 README.rdoc
  2. +1 −1 lib/story.rb
  3. +3 −0 slurper_config.yml
View
@@ -20,7 +20,7 @@ Works great with slurper.vim! (http://github.com/alowe/vim-slurper)
== Config
-Slurper requires a .slurper.yml file in your home directory. This file contains your Tracker API information and default values for stories.
+Slurper requires a slurper_config.yml file in your working directory. This file contains your Tracker API information and default values for stories.
=== Example
View
@@ -2,7 +2,7 @@
class Story < ActiveResource::Base
- @@defaults = YAML.load_file(File.expand_path(File.join("~", ".slurper.yml")))
+ @@defaults = YAML.load_file('slurper_config.yml')
self.site = "http://www.pivotaltracker.com/services/v3/projects/#{@@defaults['project_id']}"
headers['X-TrackerToken'] = @@defaults.delete("token")
attr_accessor :story_lines
View
@@ -0,0 +1,3 @@
+project_id: 12345 # found in the project settings or address bar in Tracker
+token: 123abc123abc123abc123abc # found on your profile page in Tracker
+requested_by: Johnny Hashrocket # must be a user on the project

0 comments on commit d62eb83

Please sign in to comment.