evernote_utils 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/evernote_utils.rb +12 -5
- data/lib/evernote_utils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2faaba96960e89af8e66e05c8b6a96a55c4c7e67
|
4
|
+
data.tar.gz: 5352db47e5c6f9443b5c8c6b4a043c4b044c13fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 693db0339ea26100288270937e375fd18ed50ad3b8daf01c9c495f2f68f653b30e75898f008bd7486951d5524fe8e30586bf790206b486422713302810369900
|
7
|
+
data.tar.gz: 8f7568085a17f217e01e0f94906550aaa32e28237f77a35e9b2b6fd430260367074e363b027f13fd4128dbe467eed0040e1719f486d6da00007d61815b73fb1c
|
data/lib/evernote_utils.rb
CHANGED
@@ -34,9 +34,10 @@ module ENUtils
|
|
34
34
|
@token = token
|
35
35
|
end
|
36
36
|
|
37
|
-
def
|
37
|
+
def find_notes(options={})
|
38
38
|
Note.where(self, options.reverse_merge(order: :updated))
|
39
39
|
end
|
40
|
+
alias notes find_notes
|
40
41
|
|
41
42
|
def find_note(guid, with_content: false,
|
42
43
|
with_resources_data: false,
|
@@ -47,31 +48,37 @@ module ENUtils
|
|
47
48
|
with_resources_recognition,
|
48
49
|
with_resources_alternate_data)
|
49
50
|
end
|
51
|
+
alias note find_note
|
50
52
|
|
51
53
|
def create_note(attrs)
|
52
54
|
Note.create(self, attrs)
|
53
55
|
end
|
54
56
|
|
55
|
-
def
|
57
|
+
def find_notebook(name=nil)
|
56
58
|
return nil unless name
|
57
59
|
Notebook.find_by_name(self, name)
|
58
60
|
end
|
61
|
+
alias notebook find_notebook
|
59
62
|
|
60
|
-
def
|
63
|
+
def find_notebooks(options={})
|
61
64
|
Notebook.where(self, options)
|
62
65
|
end
|
66
|
+
alias notebooks find_notebooks
|
63
67
|
|
64
68
|
def create_tag(attrs)
|
65
69
|
Tag.create(self, attrs)
|
66
70
|
end
|
67
71
|
|
68
|
-
def
|
72
|
+
def find_tag(name=nil)
|
69
73
|
return nil unless name
|
70
74
|
Tag.find_by_name(self, name)
|
71
75
|
end
|
76
|
+
alias tag find_tag
|
72
77
|
|
73
|
-
def
|
78
|
+
def find_tags(options={})
|
74
79
|
Tag.where(self, options)
|
75
80
|
end
|
81
|
+
alias tags find_tags
|
82
|
+
|
76
83
|
end
|
77
84
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evernote_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- memerelics
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evernote-thrift
|