diff options
| author | Peter Mangiafico | 2011-04-02 15:13:36 -0700 | 
|---|---|---|
| committer | Chris Sepic | 2011-06-28 17:24:00 -0500 | 
| commit | 3c72845c3ffe50bdcba3921a3c51f00331f77a5e (patch) | |
| tree | 8c6d32fa9925611313b1630db993f9169d3433b7 /lib | |
| parent | 4a802c59a501cd9a25bedd75bce7ab12f4edf5bc (diff) | |
| download | evernote-3c72845c3ffe50bdcba3921a3c51f00331f77a5e.tar.bz2 | |
remove need to have configuration parameters in a YML file, allow a generic hash to be passed in instead
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/evernote/user_store.rb | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/lib/evernote/user_store.rb b/lib/evernote/user_store.rb index b8b6102..44574fc 100644 --- a/lib/evernote/user_store.rb +++ b/lib/evernote/user_store.rb @@ -5,8 +5,7 @@ module Evernote    class UserStore      AuthenticationFailure = Class.new(StandardError) -    def initialize(uri, auth_file, auth_env, thrift_client_options = {}) -      credentials = YAML.load_file(auth_file)[auth_env.to_s] +    def initialize(uri, credentials, thrift_client_options = {})        @consumer_key = credentials["consumer_key"]        @consumer_secret = credentials["consumer_secret"] | 
