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 +4 -4
- data/evernote_oauth.gemspec +1 -1
- data/lib/evernote_oauth/client.rb +2 -1
- data/lib/evernote_oauth/version.rb +1 -1
- metadata +1 -1
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.
|
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
|
```
|
data/evernote_oauth.gemspec
CHANGED
@@ -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 =
|
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
|
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
|