evernote_oauth 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -4,7 +4,12 @@ module EvernoteOAuth
|
|
4
4
|
def initialize(options={})
|
5
5
|
config_file = "config/evernote.yml"
|
6
6
|
if File.exist?(config_file)
|
7
|
-
|
7
|
+
require 'erb'
|
8
|
+
if defined?(Rails)
|
9
|
+
config = YAML.load(ERB.new(File.read(config_file)).result)[Rails.env]
|
10
|
+
else
|
11
|
+
config = YAML.load(ERB.new(File.read(config_file)).result)
|
12
|
+
end
|
8
13
|
@consumer_key = config['consumer_key']
|
9
14
|
@consumer_secret = config['consumer_secret']
|
10
15
|
@sandbox = config['sandbox'] ? true : false
|
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.1.
|
4
|
+
version: 0.1.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth
|