fastlane-plugin-fileio_upload 0.2.0 → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7afc9769c142a957ba71cea751f89f85d122d86ea464adcaa2d3136990458d4
4
- data.tar.gz: b4240b4d4ffff0f1a4f51f07b26b77023c40a994eb1f382c1251cabf77742d83
3
+ metadata.gz: 1f8b68a5d2300b47b2976059ce41bb8b27910706ecfd43d904df2104ef3122d2
4
+ data.tar.gz: d2df16cd2f6b190affcc617b98234f5baf5f0093d7e558402e97aba60a46768e
5
5
  SHA512:
6
- metadata.gz: 883da6dacf01bab64b0ed2924d55778bc1e70f33ce4b1e7cac3a75a6cc103a00df74fdc535129cfd00b1deca464fb7cae35e7069bdf0b4458dc8cbd70c3f6031
7
- data.tar.gz: 32371bd9af932acfc907edc4ccd33242a921e0cb91e4d1aac8587d5ef03d59889c6aa600c754b4d28d977ce65a1bef0b2e154f8fd017504d17b68535f3c65722
6
+ metadata.gz: a98147072cbdf64ed2174880ad6ad642c3247f0f1a2e5e85a4be7e669dfb3a5e44f67bcf690e3012a3c5360738f97d90800936cacb619240e4179dbe37387339
7
+ data.tar.gz: 8b201fb0774cfa0960722a1671048392e32484ea7d049e69c852daec6f343baec9bf84300dc55cca9376951cb732c17dc017568d091135b155216272361f00d3
data/README.md CHANGED
@@ -31,6 +31,17 @@ fileio_upload(
31
31
  )
32
32
  ```
33
33
 
34
+ You can also do something with handle the response:
35
+
36
+ ```ruby
37
+ upload_result = fileio_upload(file: "file.zip", apiKey: ENV["FILEIO_API_TOKEN"])
38
+
39
+ if (upload_result["success"]) then
40
+ link = upload_result["link"]
41
+ else
42
+ UI.error("Uploading the file failed!")
43
+ end
44
+ ```
34
45
  ## Example
35
46
 
36
47
  Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module FileioUpload
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-fileio_upload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Bancarel
@@ -10,6 +10,20 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2022-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rest-client
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement