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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d032e99ce5a7ab784425d490fb650bc02a8e3326
4
- data.tar.gz: 8ae1855f19ba0ed58439c29676d60bf019f56e38
3
+ metadata.gz: d249b3b150b00ce5d437c1800800c7ccad72c8fb
4
+ data.tar.gz: 9c9b87841ced55ecc87b887b3de826af16100262
5
5
  SHA512:
6
- metadata.gz: 631c8be3c99323a21f79b4ba4eb1b800b991a34873b579dd061066ef18dde3a1370f302a6775c107c933e6eb8a503b20694616d75bdd8da28860055bb6fe1ee4
7
- data.tar.gz: d15751f539aa4310024de40c5534802cf36b66a4af4866a911100d71c3bab2a43a08a2a84f84a5515e9a502a8adaeb69ef20faee3738e663f1b074bf4df79ef9
6
+ metadata.gz: 6cf7446b85f54a298aae229b152382c2597fbde5b3ffb229bbe181aa3875bffce41affbddfa1cfdcee3f8351fca0a6298d3c482fe6beaf4736812312406c1b73
7
+ data.tar.gz: e6e6ac3219ac7116d0e8373e244eb63b8806cb2fbb141cdd1758f39a78d789d44333563060b36909dff0fd6c0bdcd16ecd01674ffa6aa087face8f17f6f1a523
@@ -1,7 +1,6 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - 1.9.3
5
4
  - 2.0.0
6
5
  - 2.1.5
7
6
  - 2.2.2
data/README.md CHANGED
@@ -7,6 +7,8 @@ Upload files encoded as base64 to carrierwave.
7
7
 
8
8
  This small gem can be useful for API's that interact with mobile devices.
9
9
 
10
+ As of version 2.2.0, this gem requires Ruby 2.0 or higher
11
+
10
12
  ## Installation
11
13
 
12
14
  Add the gem to your Gemfile:
@@ -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.11.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"
@@ -1,5 +1,5 @@
1
1
  module Carrierwave
2
2
  module Base64
3
- VERSION = "2.1.1"
3
+ VERSION = "2.2.0"
4
4
  end
5
5
  end
@@ -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.1.1
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: 2015-09-22 00:00:00.000000000 Z
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.11.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.11.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.4.5
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.