activestorage-nft 0.0.5 → 0.0.6

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: 1972440956f424c80c336dac03420a00992c94bdc6daea4a26320d9d01114281
4
- data.tar.gz: d5729065c466a6e72b50f9fe837e380ab222f0770399052d8568a6e8f9ade714
3
+ metadata.gz: ab1a36e3bb148bc264d1dd3ab814b245bd3a384af71ac177b2198a037cd53358
4
+ data.tar.gz: 9261e5eaa8b46e8b482ab6dd2cd3c07bf57c0de1d1844526b221b60355a785f0
5
5
  SHA512:
6
- metadata.gz: f91c7c080cd4c401efd5bf2ad3215b121eabad23d5f67e33fb08d5122f2029259d7a5625f133e62c92ec571d88165ee6d472d5e34f11e8535a8bd1aab5cab990
7
- data.tar.gz: 4346b3d021f1c34f730b71ea870becdf1120df6a3b990dd6994ff54cbb2f5056ce5e31c32b917a5e1abf42905762c985716b44015bdd40e9cd7985c874a8a18d
6
+ metadata.gz: 87af091394323642b27b47c5de5a1e03243a337b1417ed2b9ec1c9bd6601c3de56d4c26368cb8cf90abb5ba082e87afee3b1de00c48c79d06111c85fb21ffe44
7
+ data.tar.gz: 564d0deae594ad96c8b46d02ef446e2379fa86b5a63a62dbabecbff6f691489164ff8f6db455d2ec8bb5f9de195a02182b047e213681eec4093c340d1d1a47e4
data/Gemfile.lock CHANGED
@@ -1,9 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activestorage-nft (0.0.2)
4
+ activestorage-nft (0.0.6)
5
5
  http (~> 4.3)
6
- nft_storage (~> 1.0.0)
7
6
 
8
7
  GEM
9
8
  remote: https://rubygems.org/
@@ -13,8 +12,6 @@ GEM
13
12
  diff-lcs (1.3)
14
13
  domain_name (0.5.20190701)
15
14
  unf (>= 0.0.5, < 1.0.0)
16
- ethon (0.15.0)
17
- ffi (>= 1.15.0)
18
15
  ffi (1.15.4)
19
16
  ffi-compiler (1.0.1)
20
17
  ffi (>= 1.0.0)
@@ -29,8 +26,6 @@ GEM
29
26
  http-form_data (2.3.0)
30
27
  http-parser (1.2.3)
31
28
  ffi-compiler (>= 1.0, < 2.0)
32
- nft_storage (1.0.0)
33
- typhoeus (~> 1.0, >= 1.0.1)
34
29
  public_suffix (4.0.6)
35
30
  rake (12.3.3)
36
31
  rspec (3.9.0)
@@ -46,8 +41,6 @@ GEM
46
41
  diff-lcs (>= 1.2.0, < 2.0)
47
42
  rspec-support (~> 3.9.0)
48
43
  rspec-support (3.9.3)
49
- typhoeus (1.4.0)
50
- ethon (>= 0.9.0)
51
44
  unf (0.1.4)
52
45
  unf_ext
53
46
  unf_ext (0.0.8)
@@ -36,6 +36,14 @@ module ActiveStorage
36
36
  end
37
37
  end
38
38
 
39
+ def delete_prefixed(key)
40
+ # haha, no
41
+ end
42
+
43
+ def delete(key)
44
+ # nope
45
+ end
46
+
39
47
  def url(key, content_type: nil, filename: nil, expires_in: nil, disposition: nil)
40
48
  instrument :url, key: key do
41
49
  @client.build_file_url key, filename.to_s
@@ -1,5 +1,5 @@
1
1
  module ActiveStorage
2
2
  module NftService
3
- VERSION = '0.0.5'.freeze
3
+ VERSION = '0.0.6'.freeze
4
4
  end
5
5
  end
data/lib/nft/client.rb CHANGED
@@ -40,6 +40,10 @@ module Nft
40
40
  end
41
41
  end
42
42
 
43
+ def delete(key)
44
+ # haha, no.
45
+ end
46
+
43
47
  def file_exists?(cid)
44
48
  res = @http_client.auth("Bearer #{@api_key}").get(
45
49
  "https://api.nft.storage/check/#{cid}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activestorage-nft
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Buhrmester