evernote_oauth 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,10 +10,10 @@ module EvernoteOAuth
10
10
  @sandbox = config['sandbox'] ? true : false
11
11
  end
12
12
 
13
- @consumer_key ||= options[:consumer_key]
14
- @consumer_secret ||= options[:consumer_secret]
15
- @sandbox = options[:sandbox] if options[:sandbox]
16
- @sandbox = true unless @sandbox
13
+ @consumer_key = options[:consumer_key] || @consumer_key
14
+ @consumer_secret = options[:consumer_secret] || @consumer_secret
15
+ @sandbox = true if @sandbox == nil
16
+ @sandbox = (options[:sandbox] == nil ? @sandbox : options[:sandbox])
17
17
  @token = options[:token]
18
18
  @secret = options[:secret]
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module EvernoteOAuth
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evernote_oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: