carrierwave-base64 1.8 → 1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/carrierwave/base64/adapter.rb +1 -0
- data/lib/carrierwave/base64/version.rb +1 -1
- data/spec/adapter_spec.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 667d430a78607af7c4c389f29b57efc591bf0d1f
|
4
|
+
data.tar.gz: 1ada94bc31e6632db7f035d09ca05d9151209c8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb34c349e9d3d2f965a7748465cc70a8819dd1351fa1bf083fc0deea9d18e90b9d5111202f214aa3895e912d9e9e273868ca01a5fb11ec91741c4fad876f1c0f
|
7
|
+
data.tar.gz: ef10caaf6e4f3a912589167a6918ddb25c444fa99c811c7fde5e79e048d1611b808ecb7d689cf7ef0590759df08a1c7e9073ac51bfb8188ce58590f0ca28d783
|
data/spec/adapter_spec.rb
CHANGED
@@ -28,5 +28,10 @@ RSpec.describe Carrierwave::Base64::Adapter do
|
|
28
28
|
subject.reload
|
29
29
|
expect(subject.image.current_path).to eq file_path("../uploads", "file.jpg")
|
30
30
|
end
|
31
|
+
|
32
|
+
it "marks the attribute as changed" do
|
33
|
+
subject.image = File.read(file_path("fixtures", "base64_image.fixture")).strip
|
34
|
+
expect(subject.changed?).to be_truthy
|
35
|
+
end
|
31
36
|
end
|
32
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave-base64
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.9'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yury Lebedev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carrierwave
|