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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57c0d166e80d636e51953b16e20e5f7db48dea6b
4
- data.tar.gz: 0400c84673459939b503b9b4316a7e67280b18f4
3
+ metadata.gz: 2faaba96960e89af8e66e05c8b6a96a55c4c7e67
4
+ data.tar.gz: 5352db47e5c6f9443b5c8c6b4a043c4b044c13fd
5
5
  SHA512:
6
- metadata.gz: 4054c7b549b4e451b2072d07916ca79038c47d7c5aeff611b77b608612ddd7867b1e943cb3bc0ba36dfe3827a282eccb954f89db0c67c6d0336fb75acd27fc71
7
- data.tar.gz: 5c269300936d85b1569f481cc08f0795376e4fad743973a1c784d0978cbb1f7359e93f3d2db880c1a67e6bba834e7618b81df65220395d9320ede2129edabf9c
6
+ metadata.gz: 693db0339ea26100288270937e375fd18ed50ad3b8daf01c9c495f2f68f653b30e75898f008bd7486951d5524fe8e30586bf790206b486422713302810369900
7
+ data.tar.gz: 8f7568085a17f217e01e0f94906550aaa32e28237f77a35e9b2b6fd430260367074e363b027f13fd4128dbe467eed0040e1719f486d6da00007d61815b73fb1c
@@ -34,9 +34,10 @@ module ENUtils
34
34
  @token = token
35
35
  end
36
36
 
37
- def notes(options={})
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 notebook(name=nil)
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 notebooks(options={})
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 tag(name=nil)
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 tags(options={})
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
@@ -1,3 +1,3 @@
1
1
  module ENUtils
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  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.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-05 00:00:00.000000000 Z
11
+ date: 2016-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evernote-thrift