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
@@ -2,7 +2,6 @@
2
2
 
3
3
  Evernote OAuth / Thrift API client library for Ruby
4
4
  ===================================================
5
- - Evernote OAuth version 0.1.6
6
5
 
7
6
  Install the gem
8
7
  ---------------
@@ -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
- config = YAML.load(ERB.new(File.read(config_file)).result)[Rails.env]
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
@@ -10,7 +10,6 @@ module EvernoteOAuth
10
10
  begin
11
11
  result = @client.send(name, *new_args, &block)
12
12
  rescue ArgumentError => e
13
- puts e.inspect
14
13
  result = @client.send(name, *args, &block)
15
14
  end
16
15
  else
@@ -1,3 +1,3 @@
1
1
  module EvernoteOAuth
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
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.1.6
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-11 00:00:00.000000000 Z
12
+ date: 2013-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth