carrierwave-base64 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/README.md +2 -0
- data/carrierwave-base64.gemspec +1 -1
- data/lib/carrierwave/base64/version.rb +1 -1
- data/spec/adapter_spec.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d249b3b150b00ce5d437c1800800c7ccad72c8fb
|
4
|
+
data.tar.gz: 9c9b87841ced55ecc87b887b3de826af16100262
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cf7446b85f54a298aae229b152382c2597fbde5b3ffb229bbe181aa3875bffce41affbddfa1cfdcee3f8351fca0a6298d3c482fe6beaf4736812312406c1b73
|
7
|
+
data.tar.gz: e6e6ac3219ac7116d0e8373e244eb63b8806cb2fbb141cdd1758f39a78d789d44333563060b36909dff0fd6c0bdcd16ecd01674ffa6aa087face8f17f6f1a523
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
data/carrierwave-base64.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "carrierwave", [">= 0.8.0", "< 0.
|
22
|
+
spec.add_dependency "carrierwave", [">= 0.8.0", "< 0.12.0"]
|
23
23
|
|
24
24
|
spec.add_development_dependency "rails", ">= 3.2.0"
|
25
25
|
spec.add_development_dependency "sqlite3"
|
data/spec/adapter_spec.rb
CHANGED
@@ -34,5 +34,19 @@ RSpec.describe Carrierwave::Base64::Adapter do
|
|
34
34
|
subject.image = File.read(file_path("fixtures", "base64_image.fixture")).strip
|
35
35
|
expect(subject.changed?).to be_truthy
|
36
36
|
end
|
37
|
+
|
38
|
+
context "stored uploads exist for the field" do
|
39
|
+
before :each do
|
40
|
+
subject.image = File.read(file_path("fixtures", "base64_image.fixture")).strip
|
41
|
+
subject.save!
|
42
|
+
subject.reload
|
43
|
+
end
|
44
|
+
|
45
|
+
it "removes persisted files when remove_ with the field name attribute is set to true" do
|
46
|
+
subject.remove_image = true
|
47
|
+
subject.save!
|
48
|
+
expect(subject.reload.image.file).to be_nil
|
49
|
+
end
|
50
|
+
end
|
37
51
|
end
|
38
52
|
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: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yury Lebedev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carrierwave
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 0.8.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.12.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 0.8.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
32
|
+
version: 0.12.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rails
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
174
|
version: '0'
|
175
175
|
requirements: []
|
176
176
|
rubyforge_project:
|
177
|
-
rubygems_version: 2.
|
177
|
+
rubygems_version: 2.5.1
|
178
178
|
signing_key:
|
179
179
|
specification_version: 4
|
180
180
|
summary: Upload images encoded as base64 to carrierwave.
|