carrierwave-aliyun-oss 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/carrierwave/aliyun/version.rb +1 -1
- data/lib/carrierwave/storage/aliyun.rb +1 -1
- data/spec/aliyun_spec.rb +3 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5297c05d9c5cbeb0251bc7c54081a6607bafcc28
|
4
|
+
data.tar.gz: 4193d7f0ad7045fb487634cdc2c5296746fa3b8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8cfd8778a486ebe5cc4545f83085ea6228df34112c4135fb7716c46aca1e6d75aaef6c41dd66d450eac379ab6fb8ad73827f19feab80129c93a41390ce85b6b
|
7
|
+
data.tar.gz: 9c0702135254757ecc9527e83fb4af9be29e634055c2ef2b121b360c8aa3e69b18774f3a60226c178ecc4e36acbb7b6e1e207ea88092ed47baa20cec8a90c3a4
|
data/Gemfile.lock
CHANGED
data/spec/aliyun_spec.rb
CHANGED
@@ -25,10 +25,9 @@ describe "Aliyun" do
|
|
25
25
|
|
26
26
|
it "should get" do
|
27
27
|
content = ""
|
28
|
-
obj = @connection.get("a/a.jpg"){|chunk| content
|
29
|
-
expect(content.length).to
|
30
|
-
expect(
|
31
|
-
expect(obj.headers).not_to be_empty
|
28
|
+
obj = @connection.get("a/a.jpg"){|chunk| content << chunk}
|
29
|
+
expect(content.length).to eq(obj.size)
|
30
|
+
expect(open(@connection.path_to_url("a/a.jpg")){|f| f.read}).to eq(content)
|
32
31
|
end
|
33
32
|
|
34
33
|
it "should put with / prefix" do
|