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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 134ba5f46359569f492531369197e78de71f48eabc0efef27c60b9f2a9b2a4fd
4
- data.tar.gz: 28edd6a34bfb58f3fe796c697a0c58855a65f117c489a4d427711b88386b2df0
3
+ metadata.gz: d5f21ffc94cb1b9d60698ca150060999dfc3c2e01f347698bb8f0c8e108bf460
4
+ data.tar.gz: a7d8bddbdbc14473c7eb7d0f8c4d50a4e8db12e72dbb320df3f97025ad08cd90
5
5
  SHA512:
6
- metadata.gz: 161578c01372d753f3fe15558bc0f2b446e2cdbab75272c48c72bb3ce3e0a94c67616544b712efafc74eac6a7e0e18f69367712e5a37e87a769723177479c0c8
7
- data.tar.gz: a65784b410afe987d821589a631cf16e4b78795b6e07cebf6b6a4252c5631dc35eaca8a1da8ea2cbe4bf37d3308965bd5ed3a6dafe0c57de37a49489d8e11d4d
6
+ metadata.gz: '08454bc3fc53e14b98b69d1a6feee2d57505d26cc61f7b43e52174300704e441faaea4a2710da524ab7136197d5c396de6f53110d66edb4b0a1d89d7cb1339cb'
7
+ data.tar.gz: 9802fca3c1bcc63a72b3effeca88044df1d1022854a5be72f9da865fb1acea768c57160896ea9930c0eece74c8301120c19fc09c2f1df8867ab530bca5b91a33
@@ -4,3 +4,9 @@ before_install:
4
4
  rvm:
5
5
  - '2.5'
6
6
  - '2.6'
7
+ - '2.7'
8
+
9
+ matrix:
10
+ exclude:
11
+ rvm: '2.7'
12
+ gemfile: gemfiles/Gemfile.activerecord52
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{asset_cloud}
5
- s.version = "2.6.0"
5
+ s.version = "2.6.1"
6
6
 
7
7
  s.authors = %w(Shopify)
8
8
  s.summary = %q{An abstraction layer around arbitrary and diverse asset stores.}
@@ -17,7 +17,7 @@ module AssetCloud
17
17
  bucket.create_file(
18
18
  data,
19
19
  absolute_key(key),
20
- options
20
+ **options,
21
21
  )
22
22
  end
23
23
 
@@ -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
- it "#write writes a file into the bucket" do
42
- local_path = "#{directory}/products/key.txt"
43
- key = 'test/key.txt'
44
- expect_any_instance_of(MockGCSBucket).to(receive(:create_file).with(
45
- local_path,
46
- "s#{@cloud.url}/#{key}",
47
- {}
48
- ))
49
-
50
- @bucket.write(key, local_path)
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.0
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-22 00:00:00.000000000 Z
11
+ date: 2020-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport