evertils-common 0.3.12 → 0.3.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -8
- data/lib/evertils/common/entity/note.rb +24 -0
- data/lib/evertils/common/manager/note.rb +8 -0
- data/lib/evertils/common/query/simple.rb +7 -0
- data/lib/evertils/common/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c635ba603e98433f759cccfc3f35c518a11beddc1dd79bc9701e3581b672c21e
|
4
|
+
data.tar.gz: e6c6c6a5c5453d3b271d864301761f34852fec8fc0a58efff5155967524b813b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e885c36ad14fe3167e26b229c123198326b5f8171936a4715f892a9dc5754ed5007b95e1258f7feeb9271c33a8c41d8b650dd08ab8e35d50dd5ef241de13539e
|
7
|
+
data.tar.gz: f5d490d6a5d6739358849209ac9ba7bfad54967352f46f7e2fae0b11e8f5c102558177b8703c2885162d0eeaed1dfadcfe578dedd83efdc14a42945e18648d58
|
data/.rubocop.yml
CHANGED
@@ -285,14 +285,6 @@ Style/SymbolProc:
|
|
285
285
|
Layout/TrailingBlankLines:
|
286
286
|
Enabled: false
|
287
287
|
|
288
|
-
# Offense count: 1
|
289
|
-
# Cop supports --auto-correct.
|
290
|
-
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
|
291
|
-
# SupportedStyles: comma, consistent_comma, no_comma
|
292
|
-
Style/TrailingCommaInLiteral:
|
293
|
-
Exclude:
|
294
|
-
- 'lib/evertils/common/authentication.rb'
|
295
|
-
|
296
288
|
# Offense count: 1
|
297
289
|
# Cop supports --auto-correct.
|
298
290
|
Layout/TrailingWhitespace:
|
@@ -107,6 +107,30 @@ module Evertils
|
|
107
107
|
end
|
108
108
|
alias_method :find_by_name, :find
|
109
109
|
|
110
|
+
#
|
111
|
+
# @since 0.3.13
|
112
|
+
def find_with(conf)
|
113
|
+
return unless conf.is_a?(Hash)
|
114
|
+
|
115
|
+
@entity = nil
|
116
|
+
|
117
|
+
filter = ::Evernote::EDAM::NoteStore::NoteFilter.new
|
118
|
+
filter.words = conf
|
119
|
+
|
120
|
+
spec = ::Evernote::EDAM::NoteStore::NotesMetadataResultSpec.new
|
121
|
+
spec.includeTitle = true
|
122
|
+
spec.includeTagGuids = true
|
123
|
+
spec.includeContentLength = true
|
124
|
+
spec.includeCreated = true
|
125
|
+
spec.includeUpdated = true
|
126
|
+
|
127
|
+
result = @evernote.call(:findNotesMetadata, filter, 0, 10, spec)
|
128
|
+
|
129
|
+
@entity = result.notes.detect { |note| note.title == name }
|
130
|
+
|
131
|
+
self if @entity
|
132
|
+
end
|
133
|
+
|
110
134
|
#
|
111
135
|
# https://stackoverflow.com/questions/46694930/evernoteedamnotestorenoteresultspec-is-not-defined
|
112
136
|
# http://www.rubydoc.info/gems/evernote-thrift/Evernote%2FEDAM%2FNoteStore%2FNoteStore%2FClient%3AgetNote
|
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.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Priebe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
- !ruby/object:Gem::Version
|
155
155
|
version: '0'
|
156
156
|
requirements: []
|
157
|
-
rubygems_version: 3.0.
|
157
|
+
rubygems_version: 3.0.8
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: EN (heart) CLI
|