evernote 0.8.0 → 0.9.0
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.
- data/VERSION +1 -1
- data/evernote.gemspec +19 -7
- data/vendor/gen-rb/evernote/edam/errors_types.rb +6 -6
- data/vendor/gen-rb/evernote/edam/limits_constants.rb +12 -2
- data/vendor/gen-rb/evernote/edam/note_store.rb +698 -232
- data/vendor/gen-rb/evernote/edam/note_store_types.rb +104 -18
- data/vendor/gen-rb/evernote/edam/types_types.rb +97 -49
- data/vendor/gen-rb/evernote/edam/user_store.rb +21 -21
- data/vendor/gen-rb/evernote/edam/user_store_constants.rb +1 -1
- data/vendor/gen-rb/evernote/edam/user_store_types.rb +4 -4
- metadata +41 -17
@@ -169,16 +169,15 @@ require 'user_store_types'
|
|
169
169
|
# HELPER FUNCTIONS AND STRUCTURES
|
170
170
|
|
171
171
|
class CheckVersion_args
|
172
|
-
include ::Thrift::Struct
|
172
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
173
173
|
CLIENTNAME = 1
|
174
174
|
EDAMVERSIONMAJOR = 2
|
175
175
|
EDAMVERSIONMINOR = 3
|
176
176
|
|
177
|
-
::Thrift::Struct.field_accessor self, :clientName, :edamVersionMajor, :edamVersionMinor
|
178
177
|
FIELDS = {
|
179
178
|
CLIENTNAME => {:type => ::Thrift::Types::STRING, :name => 'clientName'},
|
180
179
|
EDAMVERSIONMAJOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMajor', :default => 1},
|
181
|
-
EDAMVERSIONMINOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMinor', :default =>
|
180
|
+
EDAMVERSIONMINOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMinor', :default => 17}
|
182
181
|
}
|
183
182
|
|
184
183
|
def struct_fields; FIELDS; end
|
@@ -186,13 +185,13 @@ require 'user_store_types'
|
|
186
185
|
def validate
|
187
186
|
end
|
188
187
|
|
188
|
+
::Thrift::Struct.generate_accessors self
|
189
189
|
end
|
190
190
|
|
191
191
|
class CheckVersion_result
|
192
|
-
include ::Thrift::Struct
|
192
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
193
193
|
SUCCESS = 0
|
194
194
|
|
195
|
-
::Thrift::Struct.field_accessor self, :success
|
196
195
|
FIELDS = {
|
197
196
|
SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'}
|
198
197
|
}
|
@@ -202,16 +201,16 @@ require 'user_store_types'
|
|
202
201
|
def validate
|
203
202
|
end
|
204
203
|
|
204
|
+
::Thrift::Struct.generate_accessors self
|
205
205
|
end
|
206
206
|
|
207
207
|
class Authenticate_args
|
208
|
-
include ::Thrift::Struct
|
208
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
209
209
|
USERNAME = 1
|
210
210
|
PASSWORD = 2
|
211
211
|
CONSUMERKEY = 3
|
212
212
|
CONSUMERSECRET = 4
|
213
213
|
|
214
|
-
::Thrift::Struct.field_accessor self, :username, :password, :consumerKey, :consumerSecret
|
215
214
|
FIELDS = {
|
216
215
|
USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username'},
|
217
216
|
PASSWORD => {:type => ::Thrift::Types::STRING, :name => 'password'},
|
@@ -224,15 +223,15 @@ require 'user_store_types'
|
|
224
223
|
def validate
|
225
224
|
end
|
226
225
|
|
226
|
+
::Thrift::Struct.generate_accessors self
|
227
227
|
end
|
228
228
|
|
229
229
|
class Authenticate_result
|
230
|
-
include ::Thrift::Struct
|
230
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
231
231
|
SUCCESS = 0
|
232
232
|
USEREXCEPTION = 1
|
233
233
|
SYSTEMEXCEPTION = 2
|
234
234
|
|
235
|
-
::Thrift::Struct.field_accessor self, :success, :userException, :systemException
|
236
235
|
FIELDS = {
|
237
236
|
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::AuthenticationResult},
|
238
237
|
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
@@ -244,13 +243,13 @@ require 'user_store_types'
|
|
244
243
|
def validate
|
245
244
|
end
|
246
245
|
|
246
|
+
::Thrift::Struct.generate_accessors self
|
247
247
|
end
|
248
248
|
|
249
249
|
class RefreshAuthentication_args
|
250
|
-
include ::Thrift::Struct
|
250
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
251
251
|
AUTHENTICATIONTOKEN = 1
|
252
252
|
|
253
|
-
::Thrift::Struct.field_accessor self, :authenticationToken
|
254
253
|
FIELDS = {
|
255
254
|
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
|
256
255
|
}
|
@@ -260,15 +259,15 @@ require 'user_store_types'
|
|
260
259
|
def validate
|
261
260
|
end
|
262
261
|
|
262
|
+
::Thrift::Struct.generate_accessors self
|
263
263
|
end
|
264
264
|
|
265
265
|
class RefreshAuthentication_result
|
266
|
-
include ::Thrift::Struct
|
266
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
267
267
|
SUCCESS = 0
|
268
268
|
USEREXCEPTION = 1
|
269
269
|
SYSTEMEXCEPTION = 2
|
270
270
|
|
271
|
-
::Thrift::Struct.field_accessor self, :success, :userException, :systemException
|
272
271
|
FIELDS = {
|
273
272
|
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::AuthenticationResult},
|
274
273
|
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
@@ -280,13 +279,13 @@ require 'user_store_types'
|
|
280
279
|
def validate
|
281
280
|
end
|
282
281
|
|
282
|
+
::Thrift::Struct.generate_accessors self
|
283
283
|
end
|
284
284
|
|
285
285
|
class GetUser_args
|
286
|
-
include ::Thrift::Struct
|
286
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
287
287
|
AUTHENTICATIONTOKEN = 1
|
288
288
|
|
289
|
-
::Thrift::Struct.field_accessor self, :authenticationToken
|
290
289
|
FIELDS = {
|
291
290
|
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
|
292
291
|
}
|
@@ -296,15 +295,15 @@ require 'user_store_types'
|
|
296
295
|
def validate
|
297
296
|
end
|
298
297
|
|
298
|
+
::Thrift::Struct.generate_accessors self
|
299
299
|
end
|
300
300
|
|
301
301
|
class GetUser_result
|
302
|
-
include ::Thrift::Struct
|
302
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
303
303
|
SUCCESS = 0
|
304
304
|
USEREXCEPTION = 1
|
305
305
|
SYSTEMEXCEPTION = 2
|
306
306
|
|
307
|
-
::Thrift::Struct.field_accessor self, :success, :userException, :systemException
|
308
307
|
FIELDS = {
|
309
308
|
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::Type::User},
|
310
309
|
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException},
|
@@ -316,13 +315,13 @@ require 'user_store_types'
|
|
316
315
|
def validate
|
317
316
|
end
|
318
317
|
|
318
|
+
::Thrift::Struct.generate_accessors self
|
319
319
|
end
|
320
320
|
|
321
321
|
class GetPublicUserInfo_args
|
322
|
-
include ::Thrift::Struct
|
322
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
323
323
|
USERNAME = 1
|
324
324
|
|
325
|
-
::Thrift::Struct.field_accessor self, :username
|
326
325
|
FIELDS = {
|
327
326
|
USERNAME => {:type => ::Thrift::Types::STRING, :name => 'username'}
|
328
327
|
}
|
@@ -332,16 +331,16 @@ require 'user_store_types'
|
|
332
331
|
def validate
|
333
332
|
end
|
334
333
|
|
334
|
+
::Thrift::Struct.generate_accessors self
|
335
335
|
end
|
336
336
|
|
337
337
|
class GetPublicUserInfo_result
|
338
|
-
include ::Thrift::Struct
|
338
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
339
339
|
SUCCESS = 0
|
340
340
|
NOTFOUNDEXCEPTION = 1
|
341
341
|
SYSTEMEXCEPTION = 2
|
342
342
|
USEREXCEPTION = 3
|
343
343
|
|
344
|
-
::Thrift::Struct.field_accessor self, :success, :notFoundException, :systemException, :userException
|
345
344
|
FIELDS = {
|
346
345
|
SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::PublicUserInfo},
|
347
346
|
NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException},
|
@@ -354,6 +353,7 @@ require 'user_store_types'
|
|
354
353
|
def validate
|
355
354
|
end
|
356
355
|
|
356
|
+
::Thrift::Struct.generate_accessors self
|
357
357
|
end
|
358
358
|
|
359
359
|
end
|
@@ -32,13 +32,12 @@ module Evernote
|
|
32
32
|
# </dd>
|
33
33
|
# </dl>
|
34
34
|
class PublicUserInfo
|
35
|
-
include ::Thrift::Struct
|
35
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
36
36
|
USERID = 1
|
37
37
|
SHARDID = 2
|
38
38
|
PRIVILEGE = 3
|
39
39
|
USERNAME = 4
|
40
40
|
|
41
|
-
::Thrift::Struct.field_accessor self, :userId, :shardId, :privilege, :username
|
42
41
|
FIELDS = {
|
43
42
|
USERID => {:type => ::Thrift::Types::I32, :name => 'userId'},
|
44
43
|
SHARDID => {:type => ::Thrift::Types::STRING, :name => 'shardId'},
|
@@ -56,6 +55,7 @@ module Evernote
|
|
56
55
|
end
|
57
56
|
end
|
58
57
|
|
58
|
+
::Thrift::Struct.generate_accessors self
|
59
59
|
end
|
60
60
|
|
61
61
|
# When an authentication (or re-authentication) is performed, this structure
|
@@ -92,14 +92,13 @@ module Evernote
|
|
92
92
|
# </dd>
|
93
93
|
# </dl>
|
94
94
|
class AuthenticationResult
|
95
|
-
include ::Thrift::Struct
|
95
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
96
96
|
CURRENTTIME = 1
|
97
97
|
AUTHENTICATIONTOKEN = 2
|
98
98
|
EXPIRATION = 3
|
99
99
|
USER = 4
|
100
100
|
PUBLICUSERINFO = 5
|
101
101
|
|
102
|
-
::Thrift::Struct.field_accessor self, :currentTime, :authenticationToken, :expiration, :user, :publicUserInfo
|
103
102
|
FIELDS = {
|
104
103
|
CURRENTTIME => {:type => ::Thrift::Types::I64, :name => 'currentTime'},
|
105
104
|
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'},
|
@@ -116,6 +115,7 @@ module Evernote
|
|
116
115
|
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field expiration is unset!') unless @expiration
|
117
116
|
end
|
118
117
|
|
118
|
+
::Thrift::Struct.generate_accessors self
|
119
119
|
end
|
120
120
|
|
121
121
|
end
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evernote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 59
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 9
|
9
|
+
- 0
|
10
|
+
version: 0.9.0
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Chris Sepic
|
@@ -9,39 +15,51 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
18
|
+
date: 2011-01-23 00:00:00 -06:00
|
13
19
|
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: thrift_client
|
17
|
-
|
18
|
-
|
19
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
20
26
|
requirements:
|
21
27
|
- - ">="
|
22
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
23
32
|
version: "0"
|
24
|
-
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
25
35
|
- !ruby/object:Gem::Dependency
|
26
36
|
name: rspec
|
27
|
-
|
28
|
-
|
29
|
-
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
30
40
|
requirements:
|
31
41
|
- - ">="
|
32
42
|
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
33
46
|
version: "0"
|
34
|
-
|
47
|
+
type: :development
|
48
|
+
version_requirements: *id002
|
35
49
|
- !ruby/object:Gem::Dependency
|
36
50
|
name: yard
|
37
|
-
|
38
|
-
|
39
|
-
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
40
54
|
requirements:
|
41
55
|
- - ">="
|
42
56
|
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
43
60
|
version: "0"
|
44
|
-
|
61
|
+
type: :development
|
62
|
+
version_requirements: *id003
|
45
63
|
description:
|
46
64
|
email: chris.sepic@gmail.com
|
47
65
|
executables: []
|
@@ -91,21 +109,27 @@ rdoc_options:
|
|
91
109
|
require_paths:
|
92
110
|
- lib
|
93
111
|
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
+
none: false
|
94
113
|
requirements:
|
95
114
|
- - ">="
|
96
115
|
- !ruby/object:Gem::Version
|
116
|
+
hash: 3
|
117
|
+
segments:
|
118
|
+
- 0
|
97
119
|
version: "0"
|
98
|
-
version:
|
99
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
100
122
|
requirements:
|
101
123
|
- - ">="
|
102
124
|
- !ruby/object:Gem::Version
|
125
|
+
hash: 3
|
126
|
+
segments:
|
127
|
+
- 0
|
103
128
|
version: "0"
|
104
|
-
version:
|
105
129
|
requirements: []
|
106
130
|
|
107
131
|
rubyforge_project:
|
108
|
-
rubygems_version: 1.3.
|
132
|
+
rubygems_version: 1.3.7
|
109
133
|
signing_key:
|
110
134
|
specification_version: 3
|
111
135
|
summary: High level wrapper for the Evernote API
|