neverdone 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/nd +5 -7
  2. data/lib/neverdone.rb +1 -1
  3. metadata +3 -3
data/bin/nd CHANGED
@@ -36,6 +36,10 @@ class NeverdoneCommand < Clamp::Command
36
36
  #token expired
37
37
  authenticate force=true
38
38
  @notebook = Everton::Notebook.find('Neverdone Todo')
39
+ rescue Evernote::EDAM::Error::EDAMUserException
40
+ #token expired
41
+ authenticate force=true
42
+ @notebook = Everton::Notebook.find('Neverdone Todo')
39
43
  end
40
44
  if not @notebook
41
45
  print "Neverdone Todo notebook not found, creating..."
@@ -169,10 +173,4 @@ class Driver < Clamp::Command
169
173
 
170
174
  end
171
175
 
172
-
173
- begin
174
- Driver.run
175
- rescue SystemExit
176
- rescue Exception => e
177
- puts e.message
178
- end
176
+ Driver.run
data/lib/neverdone.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'yaml'
2
2
 
3
3
  module Neverdone
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  CONSUMER_KEY = 'rubiojr'
6
6
  CONSUMER_SECRET = 'c4f8a1e0f09c27ec'
7
7
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neverdone
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sergio Rubio