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.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.rubocop.yml +14 -0
- data/.rubocop_todo.yml +442 -0
- data/Gemfile +5 -1
- data/TODO.md +16 -7
- data/api_coverage.md +7 -7
- data/docs/DropboxApi.html +4 -4
- data/docs/DropboxApi/Authenticator.html +3 -3
- data/docs/DropboxApi/ChunkedUploader.html +3 -3
- data/docs/DropboxApi/Client.html +212 -26
- data/docs/DropboxApi/ConnectionBuilder.html +3 -3
- data/docs/DropboxApi/Endpoints.html +3 -3
- data/docs/DropboxApi/Endpoints/Auth.html +3 -3
- data/docs/DropboxApi/Endpoints/Auth/TokenRevoke.html +3 -3
- data/docs/DropboxApi/Endpoints/Base.html +3 -3
- data/docs/DropboxApi/Endpoints/ContentDownload.html +3 -3
- data/docs/DropboxApi/Endpoints/ContentUpload.html +3 -3
- data/docs/DropboxApi/Endpoints/Files.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/Copy.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/CopyReferenceGet.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/CopyReferenceSave.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/CreateFileRequest.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/CreateFolder.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/Delete.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/Download.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/GetMetadata.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/GetPreview.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/GetTemporaryLink.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/GetThumbnail.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/GetThumbnailBatch.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/ListFolder.html +30 -11
- data/docs/DropboxApi/Endpoints/Files/ListFolderContinue.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/ListFolderGetLatestCursor.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/ListFolderLongpoll.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/ListRevisions.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/Move.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/PermanentlyDelete.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/Restore.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/SaveUrl.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/SaveUrlCheckJobStatus.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/Search.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/Upload.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/UploadSessionAppendV2.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/UploadSessionFinish.html +3 -3
- data/docs/DropboxApi/Endpoints/Files/UploadSessionStart.html +3 -3
- data/docs/DropboxApi/Endpoints/Rpc.html +4 -4
- data/docs/DropboxApi/Endpoints/RpcContent.html +3 -3
- data/docs/DropboxApi/Endpoints/RpcNotify.html +3 -3
- data/docs/DropboxApi/Endpoints/Sharing.html +5 -5
- data/docs/DropboxApi/Endpoints/Sharing/AddFileMember.html +3 -3
- data/docs/DropboxApi/Endpoints/Sharing/AddFolderMember.html +3 -3
- data/docs/DropboxApi/Endpoints/Sharing/CreateSharedLinkWithSettings.html +103 -12
- data/docs/DropboxApi/Endpoints/Sharing/GetSharedLinkMetadata.html +3 -3
- data/docs/DropboxApi/Endpoints/Sharing/ListFileMembers.html +3 -3
- data/docs/DropboxApi/Endpoints/Sharing/ListFolderMembers.html +3 -3
- data/docs/DropboxApi/Endpoints/Sharing/ListSharedLinks.html +3 -3
- data/docs/DropboxApi/Endpoints/Sharing/RevokeSharedLink.html +293 -0
- data/docs/DropboxApi/Endpoints/Sharing/ShareFolder.html +3 -3
- data/docs/DropboxApi/Endpoints/Sharing/UnshareFile.html +3 -3
- data/docs/DropboxApi/Endpoints/Users.html +3 -3
- data/docs/DropboxApi/Endpoints/Users/GetAccount.html +3 -3
- data/docs/DropboxApi/Endpoints/Users/GetAccountBatch.html +3 -3
- data/docs/DropboxApi/Endpoints/Users/GetCurrentAccount.html +3 -3
- data/docs/DropboxApi/Endpoints/Users/GetSpaceUsage.html +3 -3
- data/docs/DropboxApi/Errors.html +5 -5
- data/docs/DropboxApi/Errors/AddFileMemberError.html +3 -3
- data/docs/DropboxApi/Errors/AddFolderMemberError.html +3 -3
- data/docs/DropboxApi/Errors/AddMemberSelectorError.html +3 -3
- data/docs/DropboxApi/Errors/AlreadySharedError.html +3 -3
- data/docs/DropboxApi/Errors/BadPathError.html +3 -3
- data/docs/DropboxApi/Errors/BasicError.html +4 -4
- data/docs/DropboxApi/Errors/CantCopySharedFolderError.html +3 -3
- data/docs/DropboxApi/Errors/CantMoveFolderIntoItselfError.html +3 -3
- data/docs/DropboxApi/Errors/CantNestSharedFolderError.html +3 -3
- data/docs/DropboxApi/Errors/CantShareOutsideTeamError.html +3 -3
- data/docs/DropboxApi/Errors/ContainsSharedFolderError.html +3 -3
- data/docs/DropboxApi/Errors/ConversionError.html +3 -3
- data/docs/DropboxApi/Errors/CreateFileRequestError.html +3 -3
- data/docs/DropboxApi/Errors/CreateFolderError.html +3 -3
- data/docs/DropboxApi/Errors/CreateSharedLinkWithSettingsError.html +3 -3
- data/docs/DropboxApi/Errors/CursorClosedError.html +3 -3
- data/docs/DropboxApi/Errors/CursorNotClosedError.html +3 -3
- data/docs/DropboxApi/Errors/DeleteError.html +3 -3
- data/docs/DropboxApi/Errors/DisallowedNameError.html +3 -3
- data/docs/DropboxApi/Errors/DisallowedSharedLinkPolicyError.html +3 -3
- data/docs/DropboxApi/Errors/DownloadError.html +3 -3
- data/docs/DropboxApi/Errors/DownloadFailedError.html +3 -3
- data/docs/DropboxApi/Errors/EmailUnverifiedError.html +3 -3
- data/docs/DropboxApi/Errors/FileAncestorConflictError.html +3 -3
- data/docs/DropboxApi/Errors/FileConflictError.html +3 -3
- data/docs/DropboxApi/Errors/FileMemberActionError.html +3 -3
- data/docs/DropboxApi/Errors/FolderConflictError.html +3 -3
- data/docs/DropboxApi/Errors/GetAccountError.html +3 -3
- data/docs/DropboxApi/Errors/GetCopyReferenceError.html +3 -3
- data/docs/DropboxApi/Errors/GetMetadataError.html +3 -3
- data/docs/DropboxApi/Errors/GroupDeletedError.html +3 -3
- data/docs/DropboxApi/Errors/GroupNotOnTeamError.html +3 -3
- data/docs/DropboxApi/Errors/HttpError.html +3 -3
- data/docs/DropboxApi/Errors/InProgressError.html +3 -3
- data/docs/DropboxApi/Errors/InsideAppFolderError.html +3 -3
- data/docs/DropboxApi/Errors/InsideOsxPackageError.html +3 -3
- data/docs/DropboxApi/Errors/InsidePublicFolderError.html +3 -3
- data/docs/DropboxApi/Errors/InsideSharedFolderError.html +3 -3
- data/docs/DropboxApi/Errors/InsufficientPlanError.html +3 -3
- data/docs/DropboxApi/Errors/InsufficientSpaceError.html +3 -3
- data/docs/DropboxApi/Errors/InternalError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidCommentError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidCopyReferenceError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidCursorError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidDropboxIdError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidEmailError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidFileError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidIdError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidMemberError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidPathError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidRevisionError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidSettingsError.html +3 -3
- data/docs/DropboxApi/Errors/InvalidUrlError.html +3 -3
- data/docs/DropboxApi/Errors/IsAppFolderError.html +3 -3
- data/docs/DropboxApi/Errors/IsFileError.html +3 -3
- data/docs/DropboxApi/Errors/IsFolderError.html +3 -3
- data/docs/DropboxApi/Errors/IsOsxPackageError.html +3 -3
- data/docs/DropboxApi/Errors/IsPublicFolderError.html +3 -3
- data/docs/DropboxApi/Errors/ListFolderContinueError.html +3 -3
- data/docs/DropboxApi/Errors/ListFolderError.html +3 -3
- data/docs/DropboxApi/Errors/ListFolderLongpollError.html +3 -3
- data/docs/DropboxApi/Errors/ListRevisionsError.html +3 -3
- data/docs/DropboxApi/Errors/ListSharedLinksError.html +3 -3
- data/docs/DropboxApi/Errors/LookupError.html +3 -3
- data/docs/DropboxApi/Errors/MalformedPathError.html +3 -3
- data/docs/DropboxApi/Errors/NoAccountError.html +3 -3
- data/docs/DropboxApi/Errors/NoPermissionError.html +3 -3
- data/docs/DropboxApi/Errors/NoWritePermissionError.html +3 -3
- data/docs/DropboxApi/Errors/NotAMemberError.html +3 -3
- data/docs/DropboxApi/Errors/NotFileError.html +3 -3
- data/docs/DropboxApi/Errors/NotFolderError.html +3 -3
- data/docs/DropboxApi/Errors/NotFoundError.html +3 -3
- data/docs/DropboxApi/Errors/PollError.html +3 -3
- data/docs/DropboxApi/Errors/PreviewError.html +3 -3
- data/docs/DropboxApi/Errors/RateLimitError.html +3 -3
- data/docs/DropboxApi/Errors/RelocationError.html +3 -3
- data/docs/DropboxApi/Errors/RestoreError.html +3 -3
- data/docs/DropboxApi/Errors/RestrictedContentError.html +3 -3
- data/docs/DropboxApi/Errors/RevokeSharedLinkError.html +164 -0
- data/docs/DropboxApi/Errors/SaveCopyReferenceError.html +3 -3
- data/docs/DropboxApi/Errors/SaveUrlError.html +3 -3
- data/docs/DropboxApi/Errors/SearchError.html +3 -3
- data/docs/DropboxApi/Errors/SettingsError.html +3 -3
- data/docs/DropboxApi/Errors/ShareFolderError.html +3 -3
- data/docs/DropboxApi/Errors/SharePathError.html +3 -3
- data/docs/DropboxApi/Errors/SharedFolderAccessError.html +3 -3
- data/docs/DropboxApi/Errors/SharedLinkAccessDeniedError.html +3 -3
- data/docs/DropboxApi/Errors/SharedLinkAlreadyExistsError.html +3 -3
- data/docs/DropboxApi/Errors/SharedLinkError.html +3 -3
- data/docs/DropboxApi/Errors/SharedLinkMalformedError.html +143 -0
- data/docs/DropboxApi/Errors/SharedLinkNotFoundError.html +3 -3
- data/docs/DropboxApi/Errors/SharingFileAccessError.html +3 -3
- data/docs/DropboxApi/Errors/SharingUserError.html +3 -3
- data/docs/DropboxApi/Errors/TeamFolderError.html +3 -3
- data/docs/DropboxApi/Errors/TeamPolicyDisallowsMemberPolicyError.html +3 -3
- data/docs/DropboxApi/Errors/ThumbnailBatchError.html +3 -3
- data/docs/DropboxApi/Errors/ThumbnailError.html +3 -3
- data/docs/DropboxApi/Errors/TooManyFilesError.html +3 -3
- data/docs/DropboxApi/Errors/TooManyMembersError.html +3 -3
- data/docs/DropboxApi/Errors/TooManyPendingInvitesError.html +3 -3
- data/docs/DropboxApi/Errors/TooManyRequestsError.html +3 -3
- data/docs/DropboxApi/Errors/TooManySharedFolderTargetsError.html +3 -3
- data/docs/DropboxApi/Errors/TooManyWriteOperationsError.html +3 -3
- data/docs/DropboxApi/Errors/UnmountedError.html +3 -3
- data/docs/DropboxApi/Errors/UnshareFileError.html +3 -3
- data/docs/DropboxApi/Errors/UnsupportedContentError.html +3 -3
- data/docs/DropboxApi/Errors/UnsupportedExtensionError.html +3 -3
- data/docs/DropboxApi/Errors/UnsupportedImageError.html +3 -3
- data/docs/DropboxApi/Errors/UnsupportedLinkTypeError.html +3 -3
- data/docs/DropboxApi/Errors/UnverifiedDropboxId.html +3 -3
- data/docs/DropboxApi/Errors/UploadError.html +3 -3
- data/docs/DropboxApi/Errors/UploadSessionFinishError.html +3 -3
- data/docs/DropboxApi/Errors/UploadSessionLookupError.html +3 -3
- data/docs/DropboxApi/Errors/UploadSessionOffsetError.html +3 -3
- data/docs/DropboxApi/Errors/UploadWriteFailedError.html +3 -3
- data/docs/DropboxApi/Errors/WriteConflictError.html +3 -3
- data/docs/DropboxApi/Errors/WriteError.html +3 -3
- data/docs/DropboxApi/Metadata.html +3 -3
- data/docs/DropboxApi/Metadata/AccessLevel.html +3 -3
- data/docs/DropboxApi/Metadata/AddFileMemberResult.html +3 -3
- data/docs/DropboxApi/Metadata/AddMember.html +3 -3
- data/docs/DropboxApi/Metadata/Base.html +3 -3
- data/docs/DropboxApi/Metadata/BasicAccount.html +3 -3
- data/docs/DropboxApi/Metadata/CommitInfo.html +3 -3
- data/docs/DropboxApi/Metadata/Deleted.html +3 -3
- data/docs/DropboxApi/Metadata/Dimensions.html +3 -3
- data/docs/DropboxApi/Metadata/Field.html +3 -3
- data/docs/DropboxApi/Metadata/File.html +3 -3
- data/docs/DropboxApi/Metadata/FileLinkMetadata.html +3 -3
- data/docs/DropboxApi/Metadata/FileMemberAction.html +3 -3
- data/docs/DropboxApi/Metadata/FileRequest.html +3 -3
- data/docs/DropboxApi/Metadata/Folder.html +3 -3
- data/docs/DropboxApi/Metadata/FolderLinkMetadata.html +3 -3
- data/docs/DropboxApi/Metadata/FolderSharingInfo.html +3 -3
- data/docs/DropboxApi/Metadata/LinkPermissions.html +3 -3
- data/docs/DropboxApi/Metadata/Location.html +3 -3
- data/docs/DropboxApi/Metadata/MediaInfo.html +3 -3
- data/docs/DropboxApi/Metadata/MediaMetadata.html +3 -3
- data/docs/DropboxApi/Metadata/Member.html +3 -3
- data/docs/DropboxApi/Metadata/MemberAction.html +3 -3
- data/docs/DropboxApi/Metadata/MemberActionList.html +3 -3
- data/docs/DropboxApi/Metadata/MemberPermission.html +3 -3
- data/docs/DropboxApi/Metadata/MemberPermissionList.html +3 -3
- data/docs/DropboxApi/Metadata/Name.html +3 -3
- data/docs/DropboxApi/Metadata/ParentFolderAccessInfo.html +3 -3
- data/docs/DropboxApi/Metadata/PhotoMetadata.html +3 -3
- data/docs/DropboxApi/Metadata/Resource.html +3 -3
- data/docs/DropboxApi/Metadata/SharedFolder.html +3 -3
- data/docs/DropboxApi/Metadata/SharedFolderPolicy.html +3 -3
- data/docs/DropboxApi/Metadata/SharedLink.html +3 -3
- data/docs/DropboxApi/Metadata/SharedLinkMetadata.html +3 -3
- data/docs/DropboxApi/Metadata/SpaceAllocation.html +3 -3
- data/docs/DropboxApi/Metadata/SpaceUsage.html +3 -3
- data/docs/DropboxApi/Metadata/Tag.html +3 -3
- data/docs/DropboxApi/Metadata/Team.html +3 -3
- data/docs/DropboxApi/Metadata/TeamMemberInfo.html +3 -3
- data/docs/DropboxApi/Metadata/ThumbnailBatchResultData.html +3 -3
- data/docs/DropboxApi/Metadata/ThumbnailBatchResultEntry.html +3 -3
- data/docs/DropboxApi/Metadata/UploadSessionCursor.html +3 -3
- data/docs/DropboxApi/Metadata/VideoMetadata.html +3 -3
- data/docs/DropboxApi/Metadata/WriteMode.html +3 -3
- data/docs/DropboxApi/MiddleWare.html +3 -3
- data/docs/DropboxApi/MiddleWare/DecodeResult.html +3 -3
- data/docs/DropboxApi/MiddleWare/Stack.html +3 -3
- data/docs/DropboxApi/OptionsValidator.html +4 -4
- data/docs/DropboxApi/ResultBuilder.html +3 -3
- data/docs/DropboxApi/Results.html +3 -3
- data/docs/DropboxApi/Results/AddFileMemberResultList.html +3 -3
- data/docs/DropboxApi/Results/Base.html +3 -3
- data/docs/DropboxApi/Results/BasicAccountBatch.html +3 -3
- data/docs/DropboxApi/Results/GetCopyReferenceResult.html +3 -3
- data/docs/DropboxApi/Results/GetTemporaryLinkResult.html +3 -3
- data/docs/DropboxApi/Results/GetThumbnailBatchResult.html +3 -3
- data/docs/DropboxApi/Results/ListFolderGetLatestCursorResult.html +3 -3
- data/docs/DropboxApi/Results/ListFolderLongpollResult.html +3 -3
- data/docs/DropboxApi/Results/ListFolderResult.html +3 -3
- data/docs/DropboxApi/Results/ListRevisionsResult.html +3 -3
- data/docs/DropboxApi/Results/ListSharedLinksResult.html +3 -3
- data/docs/DropboxApi/Results/SaveCopyReferenceResult.html +3 -3
- data/docs/DropboxApi/Results/SaveUrlJobStatus.html +3 -3
- data/docs/DropboxApi/Results/SaveUrlResult.html +3 -3
- data/docs/DropboxApi/Results/Search.html +3 -3
- data/docs/DropboxApi/Results/Search/Match.html +3 -3
- data/docs/DropboxApi/Results/SearchResult.html +3 -3
- data/docs/DropboxApi/Results/ShareFolderLaunch.html +3 -3
- data/docs/DropboxApi/Results/SharedFileMembers.html +3 -3
- data/docs/DropboxApi/Results/SharedFolderMembers.html +3 -3
- data/docs/DropboxApi/Results/UploadSessionStart.html +3 -3
- data/docs/DropboxApi/Results/VoidResult.html +3 -3
- data/docs/DropboxScaffoldBuilder.html +3 -3
- data/docs/_index.html +29 -8
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +3 -3
- data/docs/file.api_coverage.html +3 -3
- data/docs/file.rails_setup.html +3 -3
- data/docs/frames.html +1 -1
- data/docs/index.html +3 -3
- data/docs/method_list.html +230 -214
- data/docs/top-level-namespace.html +3 -3
- data/dropbox_api.gemspec +1 -3
- data/lib/dropbox_api.rb +16 -1
- data/lib/dropbox_api/endpoints/base.rb +3 -1
- data/lib/dropbox_api/endpoints/file_requests/create_file_request.rb +2 -2
- data/lib/dropbox_api/endpoints/files/copy_batch.rb +35 -0
- data/lib/dropbox_api/endpoints/files/copy_batch_check.rb +20 -0
- data/lib/dropbox_api/endpoints/files/create_folder_batch.rb +40 -0
- data/lib/dropbox_api/endpoints/files/create_folder_batch_check.rb +21 -0
- data/lib/dropbox_api/endpoints/files/delete_batch.rb +22 -0
- data/lib/dropbox_api/endpoints/files/delete_batch_check.rb +20 -0
- data/lib/dropbox_api/endpoints/files/upload.rb +1 -1
- data/lib/dropbox_api/endpoints/sharing/create_shared_link_with_settings.rb +1 -1
- data/lib/dropbox_api/errors/create_folder_batch_error.rb +7 -0
- data/lib/dropbox_api/errors/delete_error.rb +3 -2
- data/lib/dropbox_api/errors/relocation_batch_entry_error.rb +9 -0
- data/lib/dropbox_api/results/copy_batch_result.rb +14 -0
- data/lib/dropbox_api/results/create_folder_batch_result.rb +20 -0
- data/lib/dropbox_api/results/create_folder_batch_result_entry.rb +19 -0
- data/lib/dropbox_api/results/delete_batch_result.rb +20 -0
- data/lib/dropbox_api/results/delete_batch_result_entry.rb +15 -0
- data/lib/dropbox_api/results/relocation_batch_result.rb +20 -0
- data/lib/dropbox_api/results/relocation_batch_result_entry.rb +15 -0
- data/lib/dropbox_api/version.rb +1 -1
- data/yardoc/rspec.rb +5 -5
- metadata +37 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4a729a8dedd13ee6ac189e6503b7006908bd43aac727fec0d073cced4d59995c
|
4
|
+
data.tar.gz: 4c6fcb7eaf15e1368def2a50cbad7fe546ffb6eb3fdff9c1bcd2700b58f814c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b825030bd21ab762fd197b4d4477236779e4036fcbcdf22f13b69835af0de42d431acd577d57dc06655fb5ec13f7b0ba6c211d05f9e92a45a658fb491ccb54ac
|
7
|
+
data.tar.gz: 5534e3b03f2aeb5d264962f366f711063b5826e4998541b4f50b4ebb2bcfdcbb5bff0209f501f1514f3401f3856565ca0b63f17f3973f66dc071ca2071171a59
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,442 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2019-03-25 19:43:51 +0100 using RuboCop version 0.66.0.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 3
|
10
|
+
# Cop supports --auto-correct.
|
11
|
+
# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
|
12
|
+
# SupportedStyles: case, end
|
13
|
+
Layout/CaseIndentation:
|
14
|
+
Exclude:
|
15
|
+
- 'lib/dropbox_api/metadata/member.rb'
|
16
|
+
|
17
|
+
# Offense count: 2
|
18
|
+
# Cop supports --auto-correct.
|
19
|
+
Layout/EmptyLineAfterGuardClause:
|
20
|
+
Exclude:
|
21
|
+
- 'lib/dropbox_api/metadata/field.rb'
|
22
|
+
- 'yardoc/rspec.rb'
|
23
|
+
|
24
|
+
# Offense count: 2
|
25
|
+
# Cop supports --auto-correct.
|
26
|
+
Layout/EmptyLineAfterMagicComment:
|
27
|
+
Exclude:
|
28
|
+
- 'dropbox_api.gemspec'
|
29
|
+
- 'spec/endpoints/files/upload_session_append_v2_spec.rb'
|
30
|
+
|
31
|
+
# Offense count: 2
|
32
|
+
# Cop supports --auto-correct.
|
33
|
+
Layout/EmptyLinesAroundArguments:
|
34
|
+
Exclude:
|
35
|
+
- 'spec/endpoints/files/upload_spec.rb'
|
36
|
+
- 'spec/endpoints/sharing/add_folder_member_spec.rb'
|
37
|
+
|
38
|
+
# Offense count: 3
|
39
|
+
# Cop supports --auto-correct.
|
40
|
+
# Configuration parameters: EnforcedStyle.
|
41
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
42
|
+
Layout/EmptyLinesAroundBlockBody:
|
43
|
+
Exclude:
|
44
|
+
- 'spec/endpoints/files/upload_spec.rb'
|
45
|
+
- 'spec/endpoints/sharing/add_folder_member_spec.rb'
|
46
|
+
- 'spec/metadata/file_spec.rb'
|
47
|
+
|
48
|
+
# Offense count: 1
|
49
|
+
# Cop supports --auto-correct.
|
50
|
+
# Configuration parameters: EnforcedStyle.
|
51
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
|
52
|
+
Layout/EmptyLinesAroundClassBody:
|
53
|
+
Exclude:
|
54
|
+
- 'lib/dropbox_api/endpoints/files/get_thumbnail_batch.rb'
|
55
|
+
|
56
|
+
# Offense count: 1
|
57
|
+
# Cop supports --auto-correct.
|
58
|
+
# Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
|
59
|
+
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
60
|
+
Layout/EndAlignment:
|
61
|
+
Exclude:
|
62
|
+
- 'lib/dropbox_api/metadata/member.rb'
|
63
|
+
|
64
|
+
# Offense count: 36
|
65
|
+
# Cop supports --auto-correct.
|
66
|
+
# Configuration parameters: IndentationWidth.
|
67
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
68
|
+
Layout/IndentArray:
|
69
|
+
EnforcedStyle: consistent
|
70
|
+
|
71
|
+
# Offense count: 1
|
72
|
+
# Cop supports --auto-correct.
|
73
|
+
# Configuration parameters: IndentationWidth.
|
74
|
+
Layout/IndentAssignment:
|
75
|
+
Exclude:
|
76
|
+
- 'spec/support/vcr.rb'
|
77
|
+
|
78
|
+
# Offense count: 96
|
79
|
+
# Cop supports --auto-correct.
|
80
|
+
# Configuration parameters: IndentationWidth.
|
81
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
82
|
+
Layout/IndentHash:
|
83
|
+
EnforcedStyle: consistent
|
84
|
+
|
85
|
+
# Offense count: 2
|
86
|
+
# Cop supports --auto-correct.
|
87
|
+
Layout/LeadingCommentSpace:
|
88
|
+
Exclude:
|
89
|
+
- 'spec/endpoints/auth/token_revoke_spec.rb'
|
90
|
+
- 'spec/endpoints/files/upload_session_append_v2_spec.rb'
|
91
|
+
|
92
|
+
# Offense count: 6
|
93
|
+
# Cop supports --auto-correct.
|
94
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
95
|
+
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
96
|
+
Layout/MultilineMethodCallIndentation:
|
97
|
+
Exclude:
|
98
|
+
- 'spec/endpoints/sharing/get_shared_link_metadata_spec.rb'
|
99
|
+
|
100
|
+
# Offense count: 2
|
101
|
+
# Cop supports --auto-correct.
|
102
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
103
|
+
# SupportedStyles: space, no_space
|
104
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
105
|
+
Layout/SpaceInsideBlockBraces:
|
106
|
+
Exclude:
|
107
|
+
- 'yardoc/endpoint_handler.rb'
|
108
|
+
|
109
|
+
# Offense count: 22
|
110
|
+
# Cop supports --auto-correct.
|
111
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
112
|
+
# SupportedStyles: space, no_space, compact
|
113
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
114
|
+
Layout/SpaceInsideHashLiteralBraces:
|
115
|
+
Exclude:
|
116
|
+
- 'lib/dropbox_api/endpoints/files/download.rb'
|
117
|
+
- 'lib/dropbox_api/endpoints/files/get_preview.rb'
|
118
|
+
- 'lib/dropbox_api/endpoints/files/get_temporary_link.rb'
|
119
|
+
- 'lib/dropbox_api/metadata/shared_link.rb'
|
120
|
+
- 'spec/metadata/shared_link_spec.rb'
|
121
|
+
- 'spec/metadata/write_mode_spec.rb'
|
122
|
+
- 'yardoc/rspec.rb'
|
123
|
+
|
124
|
+
# Offense count: 7
|
125
|
+
# Cop supports --auto-correct.
|
126
|
+
# Configuration parameters: EnforcedStyle.
|
127
|
+
# SupportedStyles: final_newline, final_blank_line
|
128
|
+
Layout/TrailingBlankLines:
|
129
|
+
Exclude:
|
130
|
+
- 'lib/dropbox_api/endpoints/files/copy_batch_check.rb'
|
131
|
+
- 'lib/dropbox_api/endpoints/sharing/revoke_shared_link.rb'
|
132
|
+
- 'lib/dropbox_api/errors/relocation_batch_entry_error.rb'
|
133
|
+
- 'lib/dropbox_api/errors/revoke_shared_link_error.rb'
|
134
|
+
- 'lib/dropbox_api/results/copy_batch_check_result.rb'
|
135
|
+
- 'lib/dropbox_api/results/copy_batch_result.rb'
|
136
|
+
- 'spec/endpoints/files/copy_batch_check_spec.rb'
|
137
|
+
|
138
|
+
# Offense count: 9
|
139
|
+
# Cop supports --auto-correct.
|
140
|
+
# Configuration parameters: AllowInHeredoc.
|
141
|
+
Layout/TrailingWhitespace:
|
142
|
+
Exclude:
|
143
|
+
- 'lib/dropbox_api/endpoints/files/copy_batch_check.rb'
|
144
|
+
- 'lib/dropbox_api/endpoints/files/list_folder.rb'
|
145
|
+
- 'lib/dropbox_api/endpoints/sharing/revoke_shared_link.rb'
|
146
|
+
- 'lib/dropbox_api/metadata/media_metadata.rb'
|
147
|
+
- 'lib/dropbox_api/metadata/member_permission.rb'
|
148
|
+
|
149
|
+
# Offense count: 1
|
150
|
+
Lint/AmbiguousBlockAssociation:
|
151
|
+
Exclude:
|
152
|
+
- 'spec/endpoints/files/upload_spec.rb'
|
153
|
+
|
154
|
+
# Offense count: 3
|
155
|
+
Lint/AmbiguousOperator:
|
156
|
+
Exclude:
|
157
|
+
- 'spec/endpoints/sharing/list_shared_links_spec.rb'
|
158
|
+
|
159
|
+
# Offense count: 1
|
160
|
+
Lint/HandleExceptions:
|
161
|
+
Exclude:
|
162
|
+
- 'yardoc/rspec.rb'
|
163
|
+
|
164
|
+
# Offense count: 2
|
165
|
+
# Cop supports --auto-correct.
|
166
|
+
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
167
|
+
Lint/UnusedBlockArgument:
|
168
|
+
Exclude:
|
169
|
+
- 'lib/dropbox_api/metadata/base.rb'
|
170
|
+
- 'spec/support/rake_tasks.rb'
|
171
|
+
|
172
|
+
# Offense count: 1
|
173
|
+
# Cop supports --auto-correct.
|
174
|
+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
175
|
+
Lint/UnusedMethodArgument:
|
176
|
+
Exclude:
|
177
|
+
- 'yardoc/helpers/html_helper.rb'
|
178
|
+
|
179
|
+
# Offense count: 13
|
180
|
+
Lint/UselessAssignment:
|
181
|
+
Exclude:
|
182
|
+
- 'spec/endpoints/auth/token_revoke_spec.rb'
|
183
|
+
- 'spec/endpoints/files/download_spec.rb'
|
184
|
+
- 'spec/endpoints/files/restore_spec.rb'
|
185
|
+
- 'spec/endpoints/files/save_url_spec.rb'
|
186
|
+
- 'spec/endpoints/sharing/add_folder_member_spec.rb'
|
187
|
+
- 'spec/endpoints/sharing/revoke_shared_link_spec.rb'
|
188
|
+
- 'spec/endpoints/sharing/unshare_file_spec.rb'
|
189
|
+
- 'spec/metadata/shared_link_spec.rb'
|
190
|
+
- 'spec/support/vcr.rb'
|
191
|
+
|
192
|
+
# Offense count: 5
|
193
|
+
Metrics/AbcSize:
|
194
|
+
Max: 45
|
195
|
+
|
196
|
+
# Offense count: 24
|
197
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
198
|
+
# ExcludedMethods: refine
|
199
|
+
Metrics/BlockLength:
|
200
|
+
Max: 130
|
201
|
+
|
202
|
+
# Offense count: 2
|
203
|
+
Metrics/CyclomaticComplexity:
|
204
|
+
Max: 10
|
205
|
+
|
206
|
+
# Offense count: 8
|
207
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
208
|
+
Metrics/MethodLength:
|
209
|
+
Max: 25
|
210
|
+
|
211
|
+
# Offense count: 2
|
212
|
+
Metrics/PerceivedComplexity:
|
213
|
+
Max: 10
|
214
|
+
|
215
|
+
# Offense count: 1
|
216
|
+
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
217
|
+
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
218
|
+
Naming/MemoizedInstanceVariableName:
|
219
|
+
Exclude:
|
220
|
+
- 'lib/dropbox_api/results/list_shared_links_result.rb'
|
221
|
+
|
222
|
+
# Offense count: 5
|
223
|
+
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
|
224
|
+
# NamePrefix: is_, has_, have_
|
225
|
+
# NamePrefixBlacklist: is_, has_, have_
|
226
|
+
# NameWhitelist: is_a?
|
227
|
+
# MethodDefinitionMacros: define_method, define_singleton_method
|
228
|
+
Naming/PredicateName:
|
229
|
+
Exclude:
|
230
|
+
- 'spec/**/*'
|
231
|
+
- 'lib/dropbox_api/result_builder.rb'
|
232
|
+
- 'lib/dropbox_api/results/list_folder_result.rb'
|
233
|
+
- 'lib/dropbox_api/results/list_revisions_result.rb'
|
234
|
+
- 'lib/dropbox_api/results/list_shared_links_result.rb'
|
235
|
+
- 'lib/dropbox_api/results/search_result.rb'
|
236
|
+
|
237
|
+
# Offense count: 1
|
238
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
239
|
+
# AllowedNames: io, id, to, by, on, in, at, ip, db
|
240
|
+
Naming/UncommunicativeMethodParamName:
|
241
|
+
Exclude:
|
242
|
+
- 'lib/dropbox_api/metadata/upload_session_cursor.rb'
|
243
|
+
|
244
|
+
# Offense count: 2
|
245
|
+
# Cop supports --auto-correct.
|
246
|
+
# Configuration parameters: AutoCorrect.
|
247
|
+
Performance/TimesMap:
|
248
|
+
Exclude:
|
249
|
+
- 'spec/endpoints/files/upload_spec.rb'
|
250
|
+
|
251
|
+
# Offense count: 53
|
252
|
+
# Cop supports --auto-correct.
|
253
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners.
|
254
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
255
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
256
|
+
# FunctionalMethods: let, let!, subject, watch
|
257
|
+
# IgnoredMethods: lambda, proc, it
|
258
|
+
Style/BlockDelimiters:
|
259
|
+
Enabled: false
|
260
|
+
|
261
|
+
# Offense count: 58
|
262
|
+
# Cop supports --auto-correct.
|
263
|
+
# Configuration parameters: EnforcedStyle.
|
264
|
+
# SupportedStyles: braces, no_braces, context_dependent
|
265
|
+
Style/BracesAroundHashParameters:
|
266
|
+
Enabled: false
|
267
|
+
|
268
|
+
# Offense count: 1
|
269
|
+
Style/CaseEquality:
|
270
|
+
Exclude:
|
271
|
+
- 'lib/dropbox_api/results/copy_batch_check_result.rb'
|
272
|
+
|
273
|
+
# Offense count: 1
|
274
|
+
# Cop supports --auto-correct.
|
275
|
+
# Configuration parameters: Keywords.
|
276
|
+
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
|
277
|
+
Style/CommentAnnotation:
|
278
|
+
Exclude:
|
279
|
+
- 'lib/dropbox_api/endpoints/content_download.rb'
|
280
|
+
|
281
|
+
# Offense count: 1
|
282
|
+
# Cop supports --auto-correct.
|
283
|
+
# Configuration parameters: EnforcedStyle.
|
284
|
+
# SupportedStyles: compact, expanded
|
285
|
+
Style/EmptyMethod:
|
286
|
+
Exclude:
|
287
|
+
- 'lib/dropbox_api/metadata/shared_link.rb'
|
288
|
+
|
289
|
+
# Offense count: 2
|
290
|
+
# Cop supports --auto-correct.
|
291
|
+
Style/Encoding:
|
292
|
+
Exclude:
|
293
|
+
- 'dropbox_api.gemspec'
|
294
|
+
- 'spec/endpoints/files/upload_session_append_v2_spec.rb'
|
295
|
+
|
296
|
+
# Offense count: 5
|
297
|
+
# Cop supports --auto-correct.
|
298
|
+
Style/ExpandPathArguments:
|
299
|
+
Exclude:
|
300
|
+
- 'Rakefile'
|
301
|
+
- 'dropbox_api.gemspec'
|
302
|
+
- 'spec/spec_helper.rb'
|
303
|
+
- 'spec/support/dropbox_scaffold_builder.rb'
|
304
|
+
- 'spec/support/rake_tasks.rb'
|
305
|
+
|
306
|
+
# Offense count: 3
|
307
|
+
# Configuration parameters: MinBodyLength.
|
308
|
+
Style/GuardClause:
|
309
|
+
Exclude:
|
310
|
+
- 'lib/dropbox_api/endpoints/base.rb'
|
311
|
+
- 'lib/dropbox_api/metadata/tag.rb'
|
312
|
+
- 'lib/dropbox_api/metadata/write_mode.rb'
|
313
|
+
|
314
|
+
# Offense count: 8
|
315
|
+
# Cop supports --auto-correct.
|
316
|
+
Style/IfUnlessModifier:
|
317
|
+
Exclude:
|
318
|
+
- 'lib/dropbox_api/metadata/shared_link.rb'
|
319
|
+
- 'lib/dropbox_api/metadata/write_mode.rb'
|
320
|
+
- 'lib/dropbox_api/options_validator.rb'
|
321
|
+
- 'yardoc/endpoint_handler.rb'
|
322
|
+
|
323
|
+
# Offense count: 1
|
324
|
+
# Cop supports --auto-correct.
|
325
|
+
# Configuration parameters: InverseMethods, InverseBlocks.
|
326
|
+
Style/InverseMethods:
|
327
|
+
Exclude:
|
328
|
+
- 'lib/dropbox_api/metadata/base.rb'
|
329
|
+
|
330
|
+
# Offense count: 1
|
331
|
+
Style/MultilineBlockChain:
|
332
|
+
Exclude:
|
333
|
+
- 'lib/dropbox_api/metadata/base.rb'
|
334
|
+
|
335
|
+
# Offense count: 8
|
336
|
+
# Cop supports --auto-correct.
|
337
|
+
# Configuration parameters: EnforcedStyle.
|
338
|
+
# SupportedStyles: literals, strict
|
339
|
+
Style/MutableConstant:
|
340
|
+
Exclude:
|
341
|
+
- 'lib/dropbox_api/errors/too_many_requests_error.rb'
|
342
|
+
- 'lib/dropbox_api/errors/write_conflict_error.rb'
|
343
|
+
- 'lib/dropbox_api/errors/write_error.rb'
|
344
|
+
- 'lib/dropbox_api/metadata/access_level.rb'
|
345
|
+
- 'lib/dropbox_api/metadata/member_action.rb'
|
346
|
+
- 'lib/dropbox_api/metadata/shared_link.rb'
|
347
|
+
- 'lib/dropbox_api/metadata/write_mode.rb'
|
348
|
+
- 'spec/support/dropbox_scaffold_builder.rb'
|
349
|
+
|
350
|
+
# Offense count: 4
|
351
|
+
# Cop supports --auto-correct.
|
352
|
+
# Configuration parameters: Whitelist.
|
353
|
+
# Whitelist: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
|
354
|
+
Style/NestedParenthesizedCalls:
|
355
|
+
Exclude:
|
356
|
+
- 'spec/endpoints/content_upload_spec.rb'
|
357
|
+
- 'spec/endpoints/sharing/list_shared_links_spec.rb'
|
358
|
+
|
359
|
+
# Offense count: 10
|
360
|
+
# Cop supports --auto-correct.
|
361
|
+
# Configuration parameters: Strict.
|
362
|
+
Style/NumericLiterals:
|
363
|
+
MinDigits: 11
|
364
|
+
|
365
|
+
# Offense count: 1
|
366
|
+
# Cop supports --auto-correct.
|
367
|
+
Style/ParallelAssignment:
|
368
|
+
Exclude:
|
369
|
+
- 'lib/dropbox_api/middleware/stack.rb'
|
370
|
+
|
371
|
+
# Offense count: 7
|
372
|
+
# Cop supports --auto-correct.
|
373
|
+
# Configuration parameters: PreferredDelimiters.
|
374
|
+
Style/PercentLiteralDelimiters:
|
375
|
+
Exclude:
|
376
|
+
- 'spec/endpoints/sharing/add_file_member_spec.rb'
|
377
|
+
- 'spec/endpoints/sharing/list_shared_links_spec.rb'
|
378
|
+
- 'spec/endpoints/users/get_account_batch_spec.rb'
|
379
|
+
- 'spec/metadata/file_spec.rb'
|
380
|
+
- 'spec/metadata/member_action_list_spec.rb'
|
381
|
+
|
382
|
+
# Offense count: 3
|
383
|
+
# Cop supports --auto-correct.
|
384
|
+
# Configuration parameters: AllowMultipleReturnValues.
|
385
|
+
Style/RedundantReturn:
|
386
|
+
Exclude:
|
387
|
+
- 'lib/dropbox_api/endpoints/content_download.rb'
|
388
|
+
- 'lib/dropbox_api/endpoints/content_upload.rb'
|
389
|
+
- 'lib/dropbox_api/endpoints/rpc.rb'
|
390
|
+
|
391
|
+
# Offense count: 887
|
392
|
+
# Cop supports --auto-correct.
|
393
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
394
|
+
# SupportedStyles: single_quotes, double_quotes
|
395
|
+
Style/StringLiterals:
|
396
|
+
Enabled: false
|
397
|
+
|
398
|
+
# Offense count: 6
|
399
|
+
# Cop supports --auto-correct.
|
400
|
+
# Configuration parameters: EnforcedStyle.
|
401
|
+
# SupportedStyles: single_quotes, double_quotes
|
402
|
+
Style/StringLiteralsInInterpolation:
|
403
|
+
Exclude:
|
404
|
+
- 'lib/dropbox_api/metadata/thumbnail_batch_result_entry.rb'
|
405
|
+
- 'lib/dropbox_api/metadata/write_mode.rb'
|
406
|
+
- 'lib/dropbox_api/results/copy_batch_check_result.rb'
|
407
|
+
- 'lib/dropbox_api/results/save_url_job_status.rb'
|
408
|
+
|
409
|
+
# Offense count: 24
|
410
|
+
# Cop supports --auto-correct.
|
411
|
+
# Configuration parameters: MinSize.
|
412
|
+
# SupportedStyles: percent, brackets
|
413
|
+
Style/SymbolArray:
|
414
|
+
EnforcedStyle: brackets
|
415
|
+
|
416
|
+
# Offense count: 1
|
417
|
+
# Cop supports --auto-correct.
|
418
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
419
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
420
|
+
Style/TrailingCommaInHashLiteral:
|
421
|
+
Exclude:
|
422
|
+
- 'lib/dropbox_api/errors/share_path_error.rb'
|
423
|
+
|
424
|
+
# Offense count: 1
|
425
|
+
# Cop supports --auto-correct.
|
426
|
+
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
|
427
|
+
# Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
|
428
|
+
Style/TrivialAccessors:
|
429
|
+
Exclude:
|
430
|
+
- 'lib/dropbox_api/middleware/stack.rb'
|
431
|
+
|
432
|
+
# Offense count: 1
|
433
|
+
# Cop supports --auto-correct.
|
434
|
+
Style/UnneededInterpolation:
|
435
|
+
Exclude:
|
436
|
+
- 'lib/dropbox_api/results/copy_batch_check_result.rb'
|
437
|
+
|
438
|
+
# Offense count: 147
|
439
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
440
|
+
# URISchemes: http, https
|
441
|
+
Metrics/LineLength:
|
442
|
+
Max: 190
|