asset_cloud 2.6.0 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -0
- data/asset_cloud.gemspec +1 -1
- data/lib/asset_cloud/buckets/gcs_bucket.rb +1 -1
- data/spec/gcs_bucket_spec.rb +23 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5f21ffc94cb1b9d60698ca150060999dfc3c2e01f347698bb8f0c8e108bf460
|
4
|
+
data.tar.gz: a7d8bddbdbc14473c7eb7d0f8c4d50a4e8db12e72dbb320df3f97025ad08cd90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08454bc3fc53e14b98b69d1a6feee2d57505d26cc61f7b43e52174300704e441faaea4a2710da524ab7136197d5c396de6f53110d66edb4b0a1d89d7cb1339cb'
|
7
|
+
data.tar.gz: 9802fca3c1bcc63a72b3effeca88044df1d1022854a5be72f9da865fb1acea768c57160896ea9930c0eece74c8301120c19fc09c2f1df8867ab530bca5b91a33
|
data/.travis.yml
CHANGED
data/asset_cloud.gemspec
CHANGED
data/spec/gcs_bucket_spec.rb
CHANGED
@@ -38,16 +38,29 @@ describe AssetCloud::GCSBucket do
|
|
38
38
|
expect(file.class).to(eq(Google::Cloud::Storage::File))
|
39
39
|
end
|
40
40
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
41
|
+
if RUBY_VERSION >= '2.7'
|
42
|
+
it "#write writes a file into the bucket" do
|
43
|
+
local_path = "#{directory}/products/key.txt"
|
44
|
+
key = 'test/key.txt'
|
45
|
+
expect_any_instance_of(MockGCSBucket).to(receive(:create_file).with(
|
46
|
+
local_path,
|
47
|
+
"s#{@cloud.url}/#{key}",
|
48
|
+
))
|
49
|
+
|
50
|
+
@bucket.write(key, local_path)
|
51
|
+
end
|
52
|
+
else
|
53
|
+
it "#write writes a file into the bucket" do
|
54
|
+
local_path = "#{directory}/products/key.txt"
|
55
|
+
key = 'test/key.txt'
|
56
|
+
expect_any_instance_of(MockGCSBucket).to(receive(:create_file).with(
|
57
|
+
local_path,
|
58
|
+
"s#{@cloud.url}/#{key}",
|
59
|
+
{}
|
60
|
+
))
|
61
|
+
|
62
|
+
@bucket.write(key, local_path)
|
63
|
+
end
|
51
64
|
end
|
52
65
|
|
53
66
|
it "#write writes a file into the bucket with metadata" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asset_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|