evertils-common 0.3.4.1 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 694250a7e21f60cf628d50c57a9132ea8c03d7cb
|
4
|
+
data.tar.gz: e01e25c34e6dceafe7dac8f672e6dbbf4cde5aa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a85e37d2878bf63574449fd861945c5534fc3c6211fed40fa80ff6b79b72d798f9277bfafe81fac8948444752800d3508822241ebb8bb81f7b160f93b722b951
|
7
|
+
data.tar.gz: 35867294df0fa272d1e0ff37201d609615d863604fdbdf1053e8ba1b593d3c3a710547458cf8c1ce8bf7af718ca270cdd92abb41714f4eb0b30c99fcaef38a90
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require "singleton"
|
2
2
|
|
3
3
|
module Evertils
|
4
4
|
module Common
|
@@ -138,6 +138,9 @@ module Evertils
|
|
138
138
|
message = "You are rate limited! Wait #{minutes} minutes"
|
139
139
|
end
|
140
140
|
|
141
|
+
message += "\n- "
|
142
|
+
message += e.parameter unless e.parameter.nil?
|
143
|
+
|
141
144
|
Notify.warning(message)
|
142
145
|
exit(0)
|
143
146
|
end
|
@@ -55,14 +55,6 @@ module Evertils
|
|
55
55
|
@evernote.call(:expungeNote, @entity.guid)
|
56
56
|
end
|
57
57
|
|
58
|
-
#
|
59
|
-
# @since 0.2.0
|
60
|
-
def expunge
|
61
|
-
deprecation_notice('0.2.9', 'Replaced with expunge! to better follow Ruby standards for method names. Will be removed in 0.3.5')
|
62
|
-
|
63
|
-
@evernote.call(:expungeNote, @entity.guid)
|
64
|
-
end
|
65
|
-
|
66
58
|
#
|
67
59
|
# @since 0.2.9
|
68
60
|
def move_to(notebook)
|
@@ -112,22 +104,16 @@ module Evertils
|
|
112
104
|
alias_method :find_by_name, :find
|
113
105
|
|
114
106
|
#
|
107
|
+
# https://stackoverflow.com/questions/46694930/evernoteedamnotestorenoteresultspec-is-not-defined
|
108
|
+
# http://www.rubydoc.info/gems/evernote-thrift/Evernote%2FEDAM%2FNoteStore%2FNoteStore%2FClient%3AgetNote
|
115
109
|
# @since 0.2.0
|
116
110
|
def find_with_contents(name)
|
117
|
-
raise 'ERROR: Evernote API is incomplete, cannot pull full note content'
|
118
|
-
|
119
111
|
find_result = find(name)
|
120
112
|
|
121
113
|
return if find_result.nil?
|
122
114
|
|
123
|
-
|
124
|
-
|
125
|
-
spec = ::Evernote::EDAM::NoteStore::NoteResultSpec.new
|
126
|
-
spec.includeResourcesData = true
|
127
|
-
spec.includeContent = true
|
128
|
-
|
129
|
-
result = @evernote.call(:getNoteWithResultSpec, @entity.guid, spec)
|
130
|
-
|
115
|
+
guid = find_result.entity.guid
|
116
|
+
result = @evernote.call(:getNote, guid, true, false, false, false)
|
131
117
|
@entity = result
|
132
118
|
|
133
119
|
self if @entity
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evertils-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Priebe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|