evernote_oauth 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Evernote OAuth / Thrift API client library for Ruby
2
2
  ===================================================
3
- Evernote OAuth version 0.01
4
- Evernote API version 1.21
3
+ - Evernote OAuth version 0.03
4
+ - Evernote API version 1.21
5
5
 
6
6
  Install the gem
7
7
  ---------------
@@ -27,8 +27,8 @@ development:
27
27
  Or you can just pass those information when you create an instance of the client
28
28
  ```ruby
29
29
  client = EvernoteOAuth::Client.new(
30
- consumer_key: YOUR CONSUMER KEY
31
- consumer_secret: YOUR CONSUMER SECRET
30
+ consumer_key: YOUR CONSUMER KEY,
31
+ consumer_secret: YOUR CONSUMER SECRET,
32
32
  sandbox: [true or false]
33
33
  )
34
34
  ```
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
19
19
  s.require_paths = ["lib"]
20
20
  s.rubyforge_project = %q{evernote_oauth}
21
- s.rubygems_version = %q{0.0.1}
21
+ s.rubygems_version = EvernoteOAuth::VERSION
22
22
  s.summary = %q{evernote_oauth is a Ruby client for the Evernote API using OAuth and Thrift.}
23
23
 
24
24
  if s.respond_to? :specification_version then
@@ -12,7 +12,8 @@ module EvernoteOAuth
12
12
 
13
13
  @consumer_key ||= options[:consumer_key]
14
14
  @consumer_secret ||= options[:consumer_secret]
15
- @sandbox ||= (options[:sandbox] == nil ? true : options[:sandbox])
15
+ @sandbox = options[:sandbox] if options[:sandbox]
16
+ @sandbox = true unless @sandbox
16
17
  @token = options[:token]
17
18
  @secret = options[:secret]
18
19
  end
@@ -1,3 +1,3 @@
1
1
  module EvernoteOAuth
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
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.1
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: