fastlane-plugin-dropbox 0.2.0 → 0.2.1

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
- SHA1:
3
- metadata.gz: 9c56b82a82ac14332f51d316963e2d754f953d5f
4
- data.tar.gz: 2e6873044edb0257de75a9f8c43ff6d9f01888ea
2
+ SHA256:
3
+ metadata.gz: 9fb75b24901139d6abc08c1ff3d6ea563f17084ce23bd308dbe96f24c856c1c5
4
+ data.tar.gz: 86d25e5494a6043a63bb322aec67f930da9737145f057a6a2a16f54ebf0c9c41
5
5
  SHA512:
6
- metadata.gz: 1ad412c087e911833ff72a285e3814b79802243ff06aa277d8866a3a44859408691d3f3723ea1719884488e9969cdb48424a862e2ecdd471fa5025137ce7276b
7
- data.tar.gz: e370924eccc4c93bb911bcb33786a5088d379d38a83bdb474c361aa092eccb03063eb5ed49af6dc382647d4ee072d2b5abbc7d1f5d5df2bf82341550f587b5db
6
+ metadata.gz: 7ce42363dac0fb171e17286a15bee1fa3b57102c6303224461c1577c3426a2a37aa0a55344f327e5ddc39e762463773499be3322f9b8f5dd35d1b345a00a06ad
7
+ data.tar.gz: c49d606532c5a64a6e27a3183fdb82f85a10ccb81bb517ac7a9ceefae6b0344333b989b68d5dca5283417090c5791c96aa6c8bbd52fea309ca0184c73371b53d
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Fastlane Dropbox plugin
2
2
 
3
- [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-dropbox) [![Gem Version](https://badge.fury.io/rb/fastlane-plugin-dropbox.svg)](https://badge.fury.io/rb/fastlane-plugin-dropbox)
3
+ [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-dropbox) [![Gem Version](https://badge.fury.io/rb/fastlane-plugin-dropbox.svg)](https://badge.fury.io/rb/fastlane-plugin-dropbox) ![](https://github.com/ayoy/fastlane-plugin-dropbox/workflows/Ruby/badge.svg)
4
+
4
5
 
5
6
  ## Getting Started
6
7
 
@@ -14,6 +15,10 @@ fastlane add_plugin dropbox
14
15
 
15
16
  This plugin allows for uploading files to Dropbox from Fastlane, using provided Dropbox client application.
16
17
 
18
+ ## Requirements
19
+
20
+ This plugin relies on MacOS keychain (for storing your Dropbox access token), hence it would work only on MacOS at the moment.
21
+
17
22
  ## Setting up
18
23
 
19
24
  **Note:** Dropbox allows accessing their API only for authorized applications, so in order to use this plugin you must register a Dropbox app.
@@ -26,15 +31,43 @@ In order to register a Dropbox app you need to go to [Dropbox Developers](https:
26
31
 
27
32
  ## Example
28
33
 
34
+ ### Basic usage
35
+
36
+ dropbox(
37
+ file_path: '/some/local-path/to/file.txt',
38
+ dropbox_path: '/path/to/Dropbox/destination/folder',
39
+ app_key: 'your-dropbox-app-key',
40
+ app_secret: 'your-dropbox-app-secret'
41
+ )
42
+
43
+ The `dropbox_path` parameter is optional - if not provided, the file at `file_path` would be put in the Dropbox root directory.
44
+
45
+ ### Write modes
46
+
47
+ The default `write_mode` is `add`, which means that plugin will raise an error if the file already exists at the destination path. If you want to allow for overwriting, set the `write_mode` parameter like so:
48
+
49
+ dropbox(
50
+ file_path: '/some/local-path/to/file.txt',
51
+ dropbox_path: '/path/to/Dropbox/destination/folder',
52
+ write_mode: 'overwrite',
53
+ app_key: 'your-dropbox-app-key',
54
+ app_secret: 'your-dropbox-app-secret'
55
+ )
56
+
57
+ For the more fine-grained overwriting you can set the `update` write mode, and pass the current file revision to update:
58
+
29
59
  dropbox(
30
60
  file_path: '/some/local-path/to/file.txt',
31
61
  dropbox_path: '/path/to/Dropbox/destination/folder',
32
- write_mode: "update",
33
- update_rev: "file-revision-to-update",
62
+ write_mode: 'update',
63
+ update_rev: 'filerevisiontoupdate',
34
64
  app_key: 'your-dropbox-app-key',
35
65
  app_secret: 'your-dropbox-app-secret'
36
66
  )
37
67
 
68
+ The `update_rev` parameter is required for `update` write mode and ignored in other cases. Currently, if the current file revision on Dropbox doesn't match the provided revision, the plugin will fail (Dropbox API won't allow for the update).
69
+
70
+
38
71
  ## Run tests for this plugin
39
72
 
40
73
  To run both the tests, and code style validation, run
@@ -125,7 +125,7 @@ module Fastlane
125
125
  end
126
126
 
127
127
  def self.request_token(app_key, app_secret)
128
- sh("open 'https://www.dropbox.com/oauth2/authorize?response_type=code&require_role=work&client_id=#{app_key}'")
128
+ sh("open 'https://www.dropbox.com/oauth2/authorize?response_type=code&client_id=#{app_key}'")
129
129
  UI.message 'Please autorize fastlane Dropbox plugin to access your Dropbox account via your Dropbox app'
130
130
  authorization_code = UI.input('Once authorized, please paste the authorization code here: ')
131
131
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Dropbox
3
- VERSION = '0.2.0'.freeze
3
+ VERSION = '0.2.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-dropbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Kapusta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-08 00:00:00.000000000 Z
11
+ date: 2020-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dropbox_api
@@ -112,16 +112,16 @@ dependencies:
112
112
  name: rubocop
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '='
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 0.49.1
117
+ version: 0.79.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '='
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 0.49.1
124
+ version: 0.79.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: simplecov
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -167,8 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
- rubyforge_project:
171
- rubygems_version: 2.5.2
170
+ rubygems_version: 3.0.3
172
171
  signing_key:
173
172
  specification_version: 4
174
173
  summary: Uploads files to Dropbox