uploadfuse 0.1.1 → 0.1.2

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
2
  SHA256:
3
- metadata.gz: 06bf922e554926e149b2820da83614ecdcfca08775e9b1940fe8e71d8e5e4bf1
4
- data.tar.gz: ba351c55d59d32c320abb6dd0819360d28e77222af54696b0b1b575fbaea1eed
3
+ metadata.gz: 8caf6cc2be29bc81634fb8add567ba5afebfbe74e4b468998f102f155436d408
4
+ data.tar.gz: e4bb9bf565c4686631c614747112fa56fe530967996bbed4f3a3d02353754ce3
5
5
  SHA512:
6
- metadata.gz: 8469ea05b071a0b36af9cd27fcce51da6473a3096bc5288ca552fc5dcf09e87de00e850852009b64c30932e9b8742be2a1ad8f2e41dbd6bb62e761339f487cc6
7
- data.tar.gz: 51e7aafba095e003bd0b6d197a7629b0072807ed2bb68ce612f73b45035156bc038f35a6cd7402936a23fe95a5d751ad346b5312f8e9b3585e484072f73783b2
6
+ metadata.gz: b99c4911e1110892fffcf4fde893a4ce259ff0d077c672ed2b78ac7b825fced67aceeb3a254330bd893aaced3ab0722f68477ffb5f5713286ca52ec19457f578
7
+ data.tar.gz: c5524c8c966beceecc789da825760e73f40d61bfa0a28c6b23c64c4a6c87ad126d7109a036870aaf93cb8f3c174d1de996751785b842b835b0b6426aed7424d5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- uploadfuse (0.1.1)
4
+ uploadfuse (0.1.2)
5
5
  faraday (~> 2.0)
6
6
  faraday-multipart (~> 1.0)
7
7
  marcel (~> 1.0)
data/README.md CHANGED
@@ -40,6 +40,9 @@ Firstly you'll need to create an API Access Token on your bucket page.
40
40
  # Upload a file from a URL
41
41
  @client.uploads.create_from_url url: "https://files.deanpcmad.com/abc.jpg"
42
42
  #=> #<UploadFuse::Upload token="5e85e4a8...
43
+
44
+ # Delete an Upload
45
+ @client.uploads.delete id: "abc123"
43
46
  ```
44
47
 
45
48
  ## Contributing
@@ -27,5 +27,10 @@ module UploadFuse
27
27
  Upload.new(response.body["data"]) if response.success?
28
28
  end
29
29
 
30
+ def delete(id:)
31
+ response = delete_request("uploads/#{id}")
32
+ response.success?
33
+ end
34
+
30
35
  end
31
36
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UploadFuse
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uploadfuse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Perry