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: b25641f38a9b51d8a5d6f9ef06afe444f938b123
4
- data.tar.gz: c4d94af2825f02f3c16d52dd3628a56e729dcfd5
3
+ metadata.gz: 694250a7e21f60cf628d50c57a9132ea8c03d7cb
4
+ data.tar.gz: e01e25c34e6dceafe7dac8f672e6dbbf4cde5aa4
5
5
  SHA512:
6
- metadata.gz: 67212c4d802e8b9e652a81c3586763e7d4f5d10e6074620d34d7201a1cf0211708ab806326c0793280a733bb81842402171c44e8de4be57b1d4499b1f0306fa9
7
- data.tar.gz: e871e33fe82b58a8fd5705b55de4f97ece4388a1bd4d7a47ea2cbd7e71fe4d88971921fd900d78668e21abd7e0babc2674615aaa62f236a39ea3b8c09bf0fc3d
6
+ metadata.gz: a85e37d2878bf63574449fd861945c5534fc3c6211fed40fa80ff6b79b72d798f9277bfafe81fac8948444752800d3508822241ebb8bb81f7b160f93b722b951
7
+ data.tar.gz: 35867294df0fa272d1e0ff37201d609615d863604fdbdf1053e8ba1b593d3c3a710547458cf8c1ce8bf7af718ca270cdd92abb41714f4eb0b30c99fcaef38a90
@@ -1,4 +1,4 @@
1
- require 'singleton'
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
- @entity = find_result.entity
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
@@ -1,4 +1,4 @@
1
- require "singleton"
1
+ require 'singleton'
2
2
 
3
3
  module Evertils
4
4
  module Common
@@ -84,7 +84,7 @@ module Evertils
84
84
  #
85
85
  # @since 0.3.3
86
86
  def created=(date)
87
- date = DateTime.now unless date
87
+ date ||= Date.now
88
88
  created_on = (date.to_time.to_i.to_s + "000").to_i
89
89
 
90
90
  @note.created = created_on
@@ -1,5 +1,5 @@
1
1
  module Evertils
2
2
  module Common
3
- VERSION = '0.3.4.1'.freeze
3
+ VERSION = '0.3.5'.freeze
4
4
  end
5
5
  end
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.1
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-26 00:00:00.000000000 Z
11
+ date: 2017-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake