stashify-google-cloud-storage 2.0.0 → 3.0.0

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: 11a1b4e3d6271334339801df4cc14ab52dd9ea133353403dcaeb67fa404f7bd7
4
- data.tar.gz: feb8d7a492fbd7b977f7aebcfda8278e672e61901d29668b8b4d2910254f3d04
3
+ metadata.gz: 750d4b6d827c4d277ac656444a240c85965c878639c7325237e45f913f1abd59
4
+ data.tar.gz: c0250df28f855b1ca9021f76342443ee1ea6d87c819fd1a71c0f9104f9d5d35e
5
5
  SHA512:
6
- metadata.gz: b1118fa70a4dd0cf35d74da52ba73e67546c34bed51c51d7b68faf754e567ea4bec6b55d523d965947a03275092e94c36e4e9468ebe892a3b9c285cca554fa02
7
- data.tar.gz: 975cba75a181ee2de498ffb4c0a9c05d56c3a28aa0e746c515d99cfc6587a648fe5c3fcdaa270726acb16098f192ebca8702d6947dfa5d48e06654b2d3c1e9aa
6
+ metadata.gz: ce690f10bbfedaa4495ce5a05dd13177987abbe2f0a4de51c952d37ef956ffb21e17594098c3349bd212bee5a4138f06d7c58c1e0e09146b8646d455470ae876
7
+ data.tar.gz: f0b44a9d62d003f591dc72513ed0caba827e5a5f77fc626df5de29d8fc1601f0b6cd1795a94120b2f8a4250d0e6f3e7bc211da8264682c18ad576c5721455334
data/Gemfile.lock CHANGED
@@ -3,7 +3,7 @@ PATH
3
3
  specs:
4
4
  stashify-google-cloud-storage (2.0.0)
5
5
  google-cloud-storage (~> 1.44.0)
6
- stashify (~> 2.1.1)
6
+ stashify (~> 3.0.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -127,7 +127,7 @@ GEM
127
127
  rspec-expectations (3.12.2)
128
128
  diff-lcs (>= 1.2.0, < 2.0)
129
129
  rspec-support (~> 3.12.0)
130
- rspec-mocks (3.12.4)
130
+ rspec-mocks (3.12.5)
131
131
  diff-lcs (>= 1.2.0, < 2.0)
132
132
  rspec-support (~> 3.12.0)
133
133
  rspec-support (3.12.0)
@@ -151,7 +151,7 @@ GEM
151
151
  faraday (>= 0.17.5, < 3.a)
152
152
  jwt (>= 1.5, < 3.0)
153
153
  multi_json (~> 1.10)
154
- stashify (2.1.1)
154
+ stashify (3.0.0)
155
155
  thor (1.2.1)
156
156
  trailblazer-option (0.1.2)
157
157
  uber (0.1.0)
@@ -16,17 +16,6 @@ module Stashify
16
16
  super(path: path)
17
17
  end
18
18
 
19
- def write_file(file)
20
- @bucket.create_file(
21
- StringIO.new(file.contents),
22
- path_of(file.name),
23
- )
24
- end
25
-
26
- def delete_file(name)
27
- @bucket.file(path_of(name)).delete
28
- end
29
-
30
19
  def files
31
20
  @bucket.files.map do |gcloud_file|
32
21
  find(::Regexp.last_match(1)) if gcloud_file.name =~ %r{^#{Regexp.escape(path)}/([^/]*)(/.*)?$}
@@ -15,6 +15,17 @@ module Stashify
15
15
  def contents
16
16
  @bucket.file(path).download.string
17
17
  end
18
+
19
+ def write(contents)
20
+ @bucket.create_file(
21
+ StringIO.new(contents),
22
+ path,
23
+ )
24
+ end
25
+
26
+ def delete
27
+ @bucket.file(path).delete
28
+ end
18
29
  end
19
30
  end
20
31
  end
@@ -4,7 +4,7 @@ module Stashify
4
4
  module Google
5
5
  module Cloud
6
6
  module Storage
7
- VERSION = "2.0.0"
7
+ VERSION = "3.0.0"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stashify-google-cloud-storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lambda Null
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.1.1
33
+ version: 3.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.1.1
40
+ version: 3.0.0
41
41
  description: Interact with Google Cloud Storage using the common building blocks provided
42
42
  by Stashify
43
43
  email: