dropbox_api 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (290) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +1 -0
  3. data/.rubocop.yml +14 -0
  4. data/.rubocop_todo.yml +442 -0
  5. data/Gemfile +5 -1
  6. data/TODO.md +16 -7
  7. data/api_coverage.md +7 -7
  8. data/docs/DropboxApi.html +4 -4
  9. data/docs/DropboxApi/Authenticator.html +3 -3
  10. data/docs/DropboxApi/ChunkedUploader.html +3 -3
  11. data/docs/DropboxApi/Client.html +212 -26
  12. data/docs/DropboxApi/ConnectionBuilder.html +3 -3
  13. data/docs/DropboxApi/Endpoints.html +3 -3
  14. data/docs/DropboxApi/Endpoints/Auth.html +3 -3
  15. data/docs/DropboxApi/Endpoints/Auth/TokenRevoke.html +3 -3
  16. data/docs/DropboxApi/Endpoints/Base.html +3 -3
  17. data/docs/DropboxApi/Endpoints/ContentDownload.html +3 -3
  18. data/docs/DropboxApi/Endpoints/ContentUpload.html +3 -3
  19. data/docs/DropboxApi/Endpoints/Files.html +3 -3
  20. data/docs/DropboxApi/Endpoints/Files/Copy.html +3 -3
  21. data/docs/DropboxApi/Endpoints/Files/CopyReferenceGet.html +3 -3
  22. data/docs/DropboxApi/Endpoints/Files/CopyReferenceSave.html +3 -3
  23. data/docs/DropboxApi/Endpoints/Files/CreateFileRequest.html +3 -3
  24. data/docs/DropboxApi/Endpoints/Files/CreateFolder.html +3 -3
  25. data/docs/DropboxApi/Endpoints/Files/Delete.html +3 -3
  26. data/docs/DropboxApi/Endpoints/Files/Download.html +3 -3
  27. data/docs/DropboxApi/Endpoints/Files/GetMetadata.html +3 -3
  28. data/docs/DropboxApi/Endpoints/Files/GetPreview.html +3 -3
  29. data/docs/DropboxApi/Endpoints/Files/GetTemporaryLink.html +3 -3
  30. data/docs/DropboxApi/Endpoints/Files/GetThumbnail.html +3 -3
  31. data/docs/DropboxApi/Endpoints/Files/GetThumbnailBatch.html +3 -3
  32. data/docs/DropboxApi/Endpoints/Files/ListFolder.html +30 -11
  33. data/docs/DropboxApi/Endpoints/Files/ListFolderContinue.html +3 -3
  34. data/docs/DropboxApi/Endpoints/Files/ListFolderGetLatestCursor.html +3 -3
  35. data/docs/DropboxApi/Endpoints/Files/ListFolderLongpoll.html +3 -3
  36. data/docs/DropboxApi/Endpoints/Files/ListRevisions.html +3 -3
  37. data/docs/DropboxApi/Endpoints/Files/Move.html +3 -3
  38. data/docs/DropboxApi/Endpoints/Files/PermanentlyDelete.html +3 -3
  39. data/docs/DropboxApi/Endpoints/Files/Restore.html +3 -3
  40. data/docs/DropboxApi/Endpoints/Files/SaveUrl.html +3 -3
  41. data/docs/DropboxApi/Endpoints/Files/SaveUrlCheckJobStatus.html +3 -3
  42. data/docs/DropboxApi/Endpoints/Files/Search.html +3 -3
  43. data/docs/DropboxApi/Endpoints/Files/Upload.html +3 -3
  44. data/docs/DropboxApi/Endpoints/Files/UploadSessionAppendV2.html +3 -3
  45. data/docs/DropboxApi/Endpoints/Files/UploadSessionFinish.html +3 -3
  46. data/docs/DropboxApi/Endpoints/Files/UploadSessionStart.html +3 -3
  47. data/docs/DropboxApi/Endpoints/Rpc.html +4 -4
  48. data/docs/DropboxApi/Endpoints/RpcContent.html +3 -3
  49. data/docs/DropboxApi/Endpoints/RpcNotify.html +3 -3
  50. data/docs/DropboxApi/Endpoints/Sharing.html +5 -5
  51. data/docs/DropboxApi/Endpoints/Sharing/AddFileMember.html +3 -3
  52. data/docs/DropboxApi/Endpoints/Sharing/AddFolderMember.html +3 -3
  53. data/docs/DropboxApi/Endpoints/Sharing/CreateSharedLinkWithSettings.html +103 -12
  54. data/docs/DropboxApi/Endpoints/Sharing/GetSharedLinkMetadata.html +3 -3
  55. data/docs/DropboxApi/Endpoints/Sharing/ListFileMembers.html +3 -3
  56. data/docs/DropboxApi/Endpoints/Sharing/ListFolderMembers.html +3 -3
  57. data/docs/DropboxApi/Endpoints/Sharing/ListSharedLinks.html +3 -3
  58. data/docs/DropboxApi/Endpoints/Sharing/RevokeSharedLink.html +293 -0
  59. data/docs/DropboxApi/Endpoints/Sharing/ShareFolder.html +3 -3
  60. data/docs/DropboxApi/Endpoints/Sharing/UnshareFile.html +3 -3
  61. data/docs/DropboxApi/Endpoints/Users.html +3 -3
  62. data/docs/DropboxApi/Endpoints/Users/GetAccount.html +3 -3
  63. data/docs/DropboxApi/Endpoints/Users/GetAccountBatch.html +3 -3
  64. data/docs/DropboxApi/Endpoints/Users/GetCurrentAccount.html +3 -3
  65. data/docs/DropboxApi/Endpoints/Users/GetSpaceUsage.html +3 -3
  66. data/docs/DropboxApi/Errors.html +5 -5
  67. data/docs/DropboxApi/Errors/AddFileMemberError.html +3 -3
  68. data/docs/DropboxApi/Errors/AddFolderMemberError.html +3 -3
  69. data/docs/DropboxApi/Errors/AddMemberSelectorError.html +3 -3
  70. data/docs/DropboxApi/Errors/AlreadySharedError.html +3 -3
  71. data/docs/DropboxApi/Errors/BadPathError.html +3 -3
  72. data/docs/DropboxApi/Errors/BasicError.html +4 -4
  73. data/docs/DropboxApi/Errors/CantCopySharedFolderError.html +3 -3
  74. data/docs/DropboxApi/Errors/CantMoveFolderIntoItselfError.html +3 -3
  75. data/docs/DropboxApi/Errors/CantNestSharedFolderError.html +3 -3
  76. data/docs/DropboxApi/Errors/CantShareOutsideTeamError.html +3 -3
  77. data/docs/DropboxApi/Errors/ContainsSharedFolderError.html +3 -3
  78. data/docs/DropboxApi/Errors/ConversionError.html +3 -3
  79. data/docs/DropboxApi/Errors/CreateFileRequestError.html +3 -3
  80. data/docs/DropboxApi/Errors/CreateFolderError.html +3 -3
  81. data/docs/DropboxApi/Errors/CreateSharedLinkWithSettingsError.html +3 -3
  82. data/docs/DropboxApi/Errors/CursorClosedError.html +3 -3
  83. data/docs/DropboxApi/Errors/CursorNotClosedError.html +3 -3
  84. data/docs/DropboxApi/Errors/DeleteError.html +3 -3
  85. data/docs/DropboxApi/Errors/DisallowedNameError.html +3 -3
  86. data/docs/DropboxApi/Errors/DisallowedSharedLinkPolicyError.html +3 -3
  87. data/docs/DropboxApi/Errors/DownloadError.html +3 -3
  88. data/docs/DropboxApi/Errors/DownloadFailedError.html +3 -3
  89. data/docs/DropboxApi/Errors/EmailUnverifiedError.html +3 -3
  90. data/docs/DropboxApi/Errors/FileAncestorConflictError.html +3 -3
  91. data/docs/DropboxApi/Errors/FileConflictError.html +3 -3
  92. data/docs/DropboxApi/Errors/FileMemberActionError.html +3 -3
  93. data/docs/DropboxApi/Errors/FolderConflictError.html +3 -3
  94. data/docs/DropboxApi/Errors/GetAccountError.html +3 -3
  95. data/docs/DropboxApi/Errors/GetCopyReferenceError.html +3 -3
  96. data/docs/DropboxApi/Errors/GetMetadataError.html +3 -3
  97. data/docs/DropboxApi/Errors/GroupDeletedError.html +3 -3
  98. data/docs/DropboxApi/Errors/GroupNotOnTeamError.html +3 -3
  99. data/docs/DropboxApi/Errors/HttpError.html +3 -3
  100. data/docs/DropboxApi/Errors/InProgressError.html +3 -3
  101. data/docs/DropboxApi/Errors/InsideAppFolderError.html +3 -3
  102. data/docs/DropboxApi/Errors/InsideOsxPackageError.html +3 -3
  103. data/docs/DropboxApi/Errors/InsidePublicFolderError.html +3 -3
  104. data/docs/DropboxApi/Errors/InsideSharedFolderError.html +3 -3
  105. data/docs/DropboxApi/Errors/InsufficientPlanError.html +3 -3
  106. data/docs/DropboxApi/Errors/InsufficientSpaceError.html +3 -3
  107. data/docs/DropboxApi/Errors/InternalError.html +3 -3
  108. data/docs/DropboxApi/Errors/InvalidCommentError.html +3 -3
  109. data/docs/DropboxApi/Errors/InvalidCopyReferenceError.html +3 -3
  110. data/docs/DropboxApi/Errors/InvalidCursorError.html +3 -3
  111. data/docs/DropboxApi/Errors/InvalidDropboxIdError.html +3 -3
  112. data/docs/DropboxApi/Errors/InvalidEmailError.html +3 -3
  113. data/docs/DropboxApi/Errors/InvalidFileError.html +3 -3
  114. data/docs/DropboxApi/Errors/InvalidIdError.html +3 -3
  115. data/docs/DropboxApi/Errors/InvalidMemberError.html +3 -3
  116. data/docs/DropboxApi/Errors/InvalidPathError.html +3 -3
  117. data/docs/DropboxApi/Errors/InvalidRevisionError.html +3 -3
  118. data/docs/DropboxApi/Errors/InvalidSettingsError.html +3 -3
  119. data/docs/DropboxApi/Errors/InvalidUrlError.html +3 -3
  120. data/docs/DropboxApi/Errors/IsAppFolderError.html +3 -3
  121. data/docs/DropboxApi/Errors/IsFileError.html +3 -3
  122. data/docs/DropboxApi/Errors/IsFolderError.html +3 -3
  123. data/docs/DropboxApi/Errors/IsOsxPackageError.html +3 -3
  124. data/docs/DropboxApi/Errors/IsPublicFolderError.html +3 -3
  125. data/docs/DropboxApi/Errors/ListFolderContinueError.html +3 -3
  126. data/docs/DropboxApi/Errors/ListFolderError.html +3 -3
  127. data/docs/DropboxApi/Errors/ListFolderLongpollError.html +3 -3
  128. data/docs/DropboxApi/Errors/ListRevisionsError.html +3 -3
  129. data/docs/DropboxApi/Errors/ListSharedLinksError.html +3 -3
  130. data/docs/DropboxApi/Errors/LookupError.html +3 -3
  131. data/docs/DropboxApi/Errors/MalformedPathError.html +3 -3
  132. data/docs/DropboxApi/Errors/NoAccountError.html +3 -3
  133. data/docs/DropboxApi/Errors/NoPermissionError.html +3 -3
  134. data/docs/DropboxApi/Errors/NoWritePermissionError.html +3 -3
  135. data/docs/DropboxApi/Errors/NotAMemberError.html +3 -3
  136. data/docs/DropboxApi/Errors/NotFileError.html +3 -3
  137. data/docs/DropboxApi/Errors/NotFolderError.html +3 -3
  138. data/docs/DropboxApi/Errors/NotFoundError.html +3 -3
  139. data/docs/DropboxApi/Errors/PollError.html +3 -3
  140. data/docs/DropboxApi/Errors/PreviewError.html +3 -3
  141. data/docs/DropboxApi/Errors/RateLimitError.html +3 -3
  142. data/docs/DropboxApi/Errors/RelocationError.html +3 -3
  143. data/docs/DropboxApi/Errors/RestoreError.html +3 -3
  144. data/docs/DropboxApi/Errors/RestrictedContentError.html +3 -3
  145. data/docs/DropboxApi/Errors/RevokeSharedLinkError.html +164 -0
  146. data/docs/DropboxApi/Errors/SaveCopyReferenceError.html +3 -3
  147. data/docs/DropboxApi/Errors/SaveUrlError.html +3 -3
  148. data/docs/DropboxApi/Errors/SearchError.html +3 -3
  149. data/docs/DropboxApi/Errors/SettingsError.html +3 -3
  150. data/docs/DropboxApi/Errors/ShareFolderError.html +3 -3
  151. data/docs/DropboxApi/Errors/SharePathError.html +3 -3
  152. data/docs/DropboxApi/Errors/SharedFolderAccessError.html +3 -3
  153. data/docs/DropboxApi/Errors/SharedLinkAccessDeniedError.html +3 -3
  154. data/docs/DropboxApi/Errors/SharedLinkAlreadyExistsError.html +3 -3
  155. data/docs/DropboxApi/Errors/SharedLinkError.html +3 -3
  156. data/docs/DropboxApi/Errors/SharedLinkMalformedError.html +143 -0
  157. data/docs/DropboxApi/Errors/SharedLinkNotFoundError.html +3 -3
  158. data/docs/DropboxApi/Errors/SharingFileAccessError.html +3 -3
  159. data/docs/DropboxApi/Errors/SharingUserError.html +3 -3
  160. data/docs/DropboxApi/Errors/TeamFolderError.html +3 -3
  161. data/docs/DropboxApi/Errors/TeamPolicyDisallowsMemberPolicyError.html +3 -3
  162. data/docs/DropboxApi/Errors/ThumbnailBatchError.html +3 -3
  163. data/docs/DropboxApi/Errors/ThumbnailError.html +3 -3
  164. data/docs/DropboxApi/Errors/TooManyFilesError.html +3 -3
  165. data/docs/DropboxApi/Errors/TooManyMembersError.html +3 -3
  166. data/docs/DropboxApi/Errors/TooManyPendingInvitesError.html +3 -3
  167. data/docs/DropboxApi/Errors/TooManyRequestsError.html +3 -3
  168. data/docs/DropboxApi/Errors/TooManySharedFolderTargetsError.html +3 -3
  169. data/docs/DropboxApi/Errors/TooManyWriteOperationsError.html +3 -3
  170. data/docs/DropboxApi/Errors/UnmountedError.html +3 -3
  171. data/docs/DropboxApi/Errors/UnshareFileError.html +3 -3
  172. data/docs/DropboxApi/Errors/UnsupportedContentError.html +3 -3
  173. data/docs/DropboxApi/Errors/UnsupportedExtensionError.html +3 -3
  174. data/docs/DropboxApi/Errors/UnsupportedImageError.html +3 -3
  175. data/docs/DropboxApi/Errors/UnsupportedLinkTypeError.html +3 -3
  176. data/docs/DropboxApi/Errors/UnverifiedDropboxId.html +3 -3
  177. data/docs/DropboxApi/Errors/UploadError.html +3 -3
  178. data/docs/DropboxApi/Errors/UploadSessionFinishError.html +3 -3
  179. data/docs/DropboxApi/Errors/UploadSessionLookupError.html +3 -3
  180. data/docs/DropboxApi/Errors/UploadSessionOffsetError.html +3 -3
  181. data/docs/DropboxApi/Errors/UploadWriteFailedError.html +3 -3
  182. data/docs/DropboxApi/Errors/WriteConflictError.html +3 -3
  183. data/docs/DropboxApi/Errors/WriteError.html +3 -3
  184. data/docs/DropboxApi/Metadata.html +3 -3
  185. data/docs/DropboxApi/Metadata/AccessLevel.html +3 -3
  186. data/docs/DropboxApi/Metadata/AddFileMemberResult.html +3 -3
  187. data/docs/DropboxApi/Metadata/AddMember.html +3 -3
  188. data/docs/DropboxApi/Metadata/Base.html +3 -3
  189. data/docs/DropboxApi/Metadata/BasicAccount.html +3 -3
  190. data/docs/DropboxApi/Metadata/CommitInfo.html +3 -3
  191. data/docs/DropboxApi/Metadata/Deleted.html +3 -3
  192. data/docs/DropboxApi/Metadata/Dimensions.html +3 -3
  193. data/docs/DropboxApi/Metadata/Field.html +3 -3
  194. data/docs/DropboxApi/Metadata/File.html +3 -3
  195. data/docs/DropboxApi/Metadata/FileLinkMetadata.html +3 -3
  196. data/docs/DropboxApi/Metadata/FileMemberAction.html +3 -3
  197. data/docs/DropboxApi/Metadata/FileRequest.html +3 -3
  198. data/docs/DropboxApi/Metadata/Folder.html +3 -3
  199. data/docs/DropboxApi/Metadata/FolderLinkMetadata.html +3 -3
  200. data/docs/DropboxApi/Metadata/FolderSharingInfo.html +3 -3
  201. data/docs/DropboxApi/Metadata/LinkPermissions.html +3 -3
  202. data/docs/DropboxApi/Metadata/Location.html +3 -3
  203. data/docs/DropboxApi/Metadata/MediaInfo.html +3 -3
  204. data/docs/DropboxApi/Metadata/MediaMetadata.html +3 -3
  205. data/docs/DropboxApi/Metadata/Member.html +3 -3
  206. data/docs/DropboxApi/Metadata/MemberAction.html +3 -3
  207. data/docs/DropboxApi/Metadata/MemberActionList.html +3 -3
  208. data/docs/DropboxApi/Metadata/MemberPermission.html +3 -3
  209. data/docs/DropboxApi/Metadata/MemberPermissionList.html +3 -3
  210. data/docs/DropboxApi/Metadata/Name.html +3 -3
  211. data/docs/DropboxApi/Metadata/ParentFolderAccessInfo.html +3 -3
  212. data/docs/DropboxApi/Metadata/PhotoMetadata.html +3 -3
  213. data/docs/DropboxApi/Metadata/Resource.html +3 -3
  214. data/docs/DropboxApi/Metadata/SharedFolder.html +3 -3
  215. data/docs/DropboxApi/Metadata/SharedFolderPolicy.html +3 -3
  216. data/docs/DropboxApi/Metadata/SharedLink.html +3 -3
  217. data/docs/DropboxApi/Metadata/SharedLinkMetadata.html +3 -3
  218. data/docs/DropboxApi/Metadata/SpaceAllocation.html +3 -3
  219. data/docs/DropboxApi/Metadata/SpaceUsage.html +3 -3
  220. data/docs/DropboxApi/Metadata/Tag.html +3 -3
  221. data/docs/DropboxApi/Metadata/Team.html +3 -3
  222. data/docs/DropboxApi/Metadata/TeamMemberInfo.html +3 -3
  223. data/docs/DropboxApi/Metadata/ThumbnailBatchResultData.html +3 -3
  224. data/docs/DropboxApi/Metadata/ThumbnailBatchResultEntry.html +3 -3
  225. data/docs/DropboxApi/Metadata/UploadSessionCursor.html +3 -3
  226. data/docs/DropboxApi/Metadata/VideoMetadata.html +3 -3
  227. data/docs/DropboxApi/Metadata/WriteMode.html +3 -3
  228. data/docs/DropboxApi/MiddleWare.html +3 -3
  229. data/docs/DropboxApi/MiddleWare/DecodeResult.html +3 -3
  230. data/docs/DropboxApi/MiddleWare/Stack.html +3 -3
  231. data/docs/DropboxApi/OptionsValidator.html +4 -4
  232. data/docs/DropboxApi/ResultBuilder.html +3 -3
  233. data/docs/DropboxApi/Results.html +3 -3
  234. data/docs/DropboxApi/Results/AddFileMemberResultList.html +3 -3
  235. data/docs/DropboxApi/Results/Base.html +3 -3
  236. data/docs/DropboxApi/Results/BasicAccountBatch.html +3 -3
  237. data/docs/DropboxApi/Results/GetCopyReferenceResult.html +3 -3
  238. data/docs/DropboxApi/Results/GetTemporaryLinkResult.html +3 -3
  239. data/docs/DropboxApi/Results/GetThumbnailBatchResult.html +3 -3
  240. data/docs/DropboxApi/Results/ListFolderGetLatestCursorResult.html +3 -3
  241. data/docs/DropboxApi/Results/ListFolderLongpollResult.html +3 -3
  242. data/docs/DropboxApi/Results/ListFolderResult.html +3 -3
  243. data/docs/DropboxApi/Results/ListRevisionsResult.html +3 -3
  244. data/docs/DropboxApi/Results/ListSharedLinksResult.html +3 -3
  245. data/docs/DropboxApi/Results/SaveCopyReferenceResult.html +3 -3
  246. data/docs/DropboxApi/Results/SaveUrlJobStatus.html +3 -3
  247. data/docs/DropboxApi/Results/SaveUrlResult.html +3 -3
  248. data/docs/DropboxApi/Results/Search.html +3 -3
  249. data/docs/DropboxApi/Results/Search/Match.html +3 -3
  250. data/docs/DropboxApi/Results/SearchResult.html +3 -3
  251. data/docs/DropboxApi/Results/ShareFolderLaunch.html +3 -3
  252. data/docs/DropboxApi/Results/SharedFileMembers.html +3 -3
  253. data/docs/DropboxApi/Results/SharedFolderMembers.html +3 -3
  254. data/docs/DropboxApi/Results/UploadSessionStart.html +3 -3
  255. data/docs/DropboxApi/Results/VoidResult.html +3 -3
  256. data/docs/DropboxScaffoldBuilder.html +3 -3
  257. data/docs/_index.html +29 -8
  258. data/docs/class_list.html +1 -1
  259. data/docs/file.README.html +3 -3
  260. data/docs/file.api_coverage.html +3 -3
  261. data/docs/file.rails_setup.html +3 -3
  262. data/docs/frames.html +1 -1
  263. data/docs/index.html +3 -3
  264. data/docs/method_list.html +230 -214
  265. data/docs/top-level-namespace.html +3 -3
  266. data/dropbox_api.gemspec +1 -3
  267. data/lib/dropbox_api.rb +16 -1
  268. data/lib/dropbox_api/endpoints/base.rb +3 -1
  269. data/lib/dropbox_api/endpoints/file_requests/create_file_request.rb +2 -2
  270. data/lib/dropbox_api/endpoints/files/copy_batch.rb +35 -0
  271. data/lib/dropbox_api/endpoints/files/copy_batch_check.rb +20 -0
  272. data/lib/dropbox_api/endpoints/files/create_folder_batch.rb +40 -0
  273. data/lib/dropbox_api/endpoints/files/create_folder_batch_check.rb +21 -0
  274. data/lib/dropbox_api/endpoints/files/delete_batch.rb +22 -0
  275. data/lib/dropbox_api/endpoints/files/delete_batch_check.rb +20 -0
  276. data/lib/dropbox_api/endpoints/files/upload.rb +1 -1
  277. data/lib/dropbox_api/endpoints/sharing/create_shared_link_with_settings.rb +1 -1
  278. data/lib/dropbox_api/errors/create_folder_batch_error.rb +7 -0
  279. data/lib/dropbox_api/errors/delete_error.rb +3 -2
  280. data/lib/dropbox_api/errors/relocation_batch_entry_error.rb +9 -0
  281. data/lib/dropbox_api/results/copy_batch_result.rb +14 -0
  282. data/lib/dropbox_api/results/create_folder_batch_result.rb +20 -0
  283. data/lib/dropbox_api/results/create_folder_batch_result_entry.rb +19 -0
  284. data/lib/dropbox_api/results/delete_batch_result.rb +20 -0
  285. data/lib/dropbox_api/results/delete_batch_result_entry.rb +15 -0
  286. data/lib/dropbox_api/results/relocation_batch_result.rb +20 -0
  287. data/lib/dropbox_api/results/relocation_batch_result_entry.rb +15 -0
  288. data/lib/dropbox_api/version.rb +1 -1
  289. data/yardoc/rspec.rb +5 -5
  290. metadata +37 -18
@@ -0,0 +1,15 @@
1
+ module DropboxApi::Results
2
+ class RelocationBatchResultEntry < DropboxApi::Results::Base
3
+ def self.new(result_data)
4
+ case result_data['.tag']
5
+ when 'success'
6
+ DropboxApi::Metadata::Resource.new result_data['success']
7
+ when 'failure'
8
+ DropboxApi::Errors::RelocationBatchEntryError
9
+ .build('File or folder operation failed', result_data['failure'])
10
+ else
11
+ raise NotImplementedError, "Unknown result type: #{result_data['.tag']}"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,3 +1,3 @@
1
1
  module DropboxApi
2
- VERSION = '0.1.16'.freeze
2
+ VERSION = '0.1.17'.freeze
3
3
  end
@@ -11,7 +11,7 @@ class RSpecDescribeHandler < YARD::Handlers::Ruby::Base
11
11
  end
12
12
  obj = {:spec => owner ? (owner[:spec] || "") : ""}
13
13
  obj[:spec] += objname
14
- parse_block(statement.last.last, owner: obj)
14
+ parse_block(statement.last.last, :owner => obj)
15
15
  rescue YARD::Handlers::NamespaceMissingError
16
16
  end
17
17
  end
@@ -26,10 +26,10 @@ class RSpecItHandler < YARD::Handlers::Ruby::Base
26
26
 
27
27
  obj[:specifications] ||= []
28
28
  obj[:specifications] << {
29
- name: statement.parameters.first.jump(:string_content).source,
30
- file: statement.file,
31
- line: statement.line,
32
- source: statement.last.last.source
29
+ :name => statement.parameters.first.jump(:string_content).source,
30
+ :file => statement.file,
31
+ :line => statement.line,
32
+ :source => statement.last.last.source
33
33
  }
34
34
  end
35
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dropbox_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesús Burgos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-16 00:00:00.000000000 Z
11
+ date: 2019-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: oauth2
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '1.1'
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '1.1'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: faraday
99
85
  requirement: !ruby/object:Gem::Requirement
@@ -114,6 +100,20 @@ dependencies:
114
100
  - - "<="
115
101
  - !ruby/object:Gem::Version
116
102
  version: 0.15.4
103
+ - !ruby/object:Gem::Dependency
104
+ name: oauth2
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '1.1'
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '1.1'
117
117
  description:
118
118
  email:
119
119
  - jburmac@gmail.com
@@ -123,6 +123,8 @@ extra_rdoc_files: []
123
123
  files:
124
124
  - ".gitignore"
125
125
  - ".rspec"
126
+ - ".rubocop.yml"
127
+ - ".rubocop_todo.yml"
126
128
  - ".travis.yml"
127
129
  - ".yardopts"
128
130
  - CHANGES.md
@@ -185,6 +187,7 @@ files:
185
187
  - docs/DropboxApi/Endpoints/Sharing/ListFileMembers.html
186
188
  - docs/DropboxApi/Endpoints/Sharing/ListFolderMembers.html
187
189
  - docs/DropboxApi/Endpoints/Sharing/ListSharedLinks.html
190
+ - docs/DropboxApi/Endpoints/Sharing/RevokeSharedLink.html
188
191
  - docs/DropboxApi/Endpoints/Sharing/ShareFolder.html
189
192
  - docs/DropboxApi/Endpoints/Sharing/UnshareFile.html
190
193
  - docs/DropboxApi/Endpoints/Users.html
@@ -271,6 +274,7 @@ files:
271
274
  - docs/DropboxApi/Errors/RelocationError.html
272
275
  - docs/DropboxApi/Errors/RestoreError.html
273
276
  - docs/DropboxApi/Errors/RestrictedContentError.html
277
+ - docs/DropboxApi/Errors/RevokeSharedLinkError.html
274
278
  - docs/DropboxApi/Errors/SaveCopyReferenceError.html
275
279
  - docs/DropboxApi/Errors/SaveUrlError.html
276
280
  - docs/DropboxApi/Errors/SearchError.html
@@ -281,6 +285,7 @@ files:
281
285
  - docs/DropboxApi/Errors/SharedLinkAccessDeniedError.html
282
286
  - docs/DropboxApi/Errors/SharedLinkAlreadyExistsError.html
283
287
  - docs/DropboxApi/Errors/SharedLinkError.html
288
+ - docs/DropboxApi/Errors/SharedLinkMalformedError.html
284
289
  - docs/DropboxApi/Errors/SharedLinkNotFoundError.html
285
290
  - docs/DropboxApi/Errors/SharingFileAccessError.html
286
291
  - docs/DropboxApi/Errors/SharingUserError.html
@@ -409,10 +414,16 @@ files:
409
414
  - lib/dropbox_api/endpoints/content_upload.rb
410
415
  - lib/dropbox_api/endpoints/file_requests/create_file_request.rb
411
416
  - lib/dropbox_api/endpoints/files/copy.rb
417
+ - lib/dropbox_api/endpoints/files/copy_batch.rb
418
+ - lib/dropbox_api/endpoints/files/copy_batch_check.rb
412
419
  - lib/dropbox_api/endpoints/files/copy_reference_get.rb
413
420
  - lib/dropbox_api/endpoints/files/copy_reference_save.rb
414
421
  - lib/dropbox_api/endpoints/files/create_folder.rb
422
+ - lib/dropbox_api/endpoints/files/create_folder_batch.rb
423
+ - lib/dropbox_api/endpoints/files/create_folder_batch_check.rb
415
424
  - lib/dropbox_api/endpoints/files/delete.rb
425
+ - lib/dropbox_api/endpoints/files/delete_batch.rb
426
+ - lib/dropbox_api/endpoints/files/delete_batch_check.rb
416
427
  - lib/dropbox_api/endpoints/files/download.rb
417
428
  - lib/dropbox_api/endpoints/files/get_metadata.rb
418
429
  - lib/dropbox_api/endpoints/files/get_preview.rb
@@ -458,6 +469,7 @@ files:
458
469
  - lib/dropbox_api/errors/already_shared_error.rb
459
470
  - lib/dropbox_api/errors/basic_error.rb
460
471
  - lib/dropbox_api/errors/create_file_request_error.rb
472
+ - lib/dropbox_api/errors/create_folder_batch_error.rb
461
473
  - lib/dropbox_api/errors/create_folder_error.rb
462
474
  - lib/dropbox_api/errors/create_shared_link_with_settings_error.rb
463
475
  - lib/dropbox_api/errors/delete_error.rb
@@ -475,6 +487,7 @@ files:
475
487
  - lib/dropbox_api/errors/lookup_error.rb
476
488
  - lib/dropbox_api/errors/poll_error.rb
477
489
  - lib/dropbox_api/errors/preview_error.rb
490
+ - lib/dropbox_api/errors/relocation_batch_entry_error.rb
478
491
  - lib/dropbox_api/errors/relocation_error.rb
479
492
  - lib/dropbox_api/errors/restore_error.rb
480
493
  - lib/dropbox_api/errors/revoke_shared_link_error.rb
@@ -549,6 +562,11 @@ files:
549
562
  - lib/dropbox_api/results/add_file_member_result_list.rb
550
563
  - lib/dropbox_api/results/base.rb
551
564
  - lib/dropbox_api/results/basic_account_batch.rb
565
+ - lib/dropbox_api/results/copy_batch_result.rb
566
+ - lib/dropbox_api/results/create_folder_batch_result.rb
567
+ - lib/dropbox_api/results/create_folder_batch_result_entry.rb
568
+ - lib/dropbox_api/results/delete_batch_result.rb
569
+ - lib/dropbox_api/results/delete_batch_result_entry.rb
552
570
  - lib/dropbox_api/results/get_copy_reference_result.rb
553
571
  - lib/dropbox_api/results/get_temporary_link_result.rb
554
572
  - lib/dropbox_api/results/get_thumbnail_batch_result.rb
@@ -557,6 +575,8 @@ files:
557
575
  - lib/dropbox_api/results/list_folder_result.rb
558
576
  - lib/dropbox_api/results/list_revisions_result.rb
559
577
  - lib/dropbox_api/results/list_shared_links_result.rb
578
+ - lib/dropbox_api/results/relocation_batch_result.rb
579
+ - lib/dropbox_api/results/relocation_batch_result_entry.rb
560
580
  - lib/dropbox_api/results/save_copy_reference_result.rb
561
581
  - lib/dropbox_api/results/save_url_job_status.rb
562
582
  - lib/dropbox_api/results/save_url_result.rb
@@ -596,8 +616,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
596
616
  - !ruby/object:Gem::Version
597
617
  version: '0'
598
618
  requirements: []
599
- rubyforge_project:
600
- rubygems_version: 2.6.11
619
+ rubygems_version: 3.0.3
601
620
  signing_key:
602
621
  specification_version: 4
603
622
  summary: Library for communicating with Dropbox API v2