carrierwave-base64 2.8.0 → 2.8.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: c9da0e56ae6151c3068b895309bd70f9bfba959b28785b8fafde064bfecc9047
4
- data.tar.gz: b723fcc95905b624fdc54394129bd9629b8bc1aa781061fc992f6f2ec3405d6f
3
+ metadata.gz: f3fd587fb2650c73746c8554db4ccb5fbd86517c6cce72b152777cb6f5f012ce
4
+ data.tar.gz: ad801ed1363f0e1ff315a781982c3d92f470de92b4272e37b6a82082eff9691b
5
5
  SHA512:
6
- metadata.gz: ccb2e7e949025a1eb37ba1bea875219ea269b561f6783f44203ba3085f9e2455913f9e01eb540e54165d0f4e5cc371cae4009dc367a2a278d9f65b6d26c01dc0
7
- data.tar.gz: a429b36e280b49ac842bcf26ccf73c096cce0a3a67129ee97a3c92fd391a38ffb3486220c947a9a243e8d7db7a4997b81cfad9b36d0e3c974ad451d6f1b71286
6
+ metadata.gz: 1d8c6b0256d1ff5dfb11fd3ddd2f3b8a0cd4c3c2f1e936b06449ad97e42b40a3cbfb53b3d7426b6db007a5df1682b160de4e7913a5412b66db43450547fae409
7
+ data.tar.gz: ea9520561c344f379293eb601b5db03a25c02c9a32741e6a049b2eb022a7f0daf130f5e3d9bb8625302ff7c08bd82784926df2a834b3e2387f7c26055d31a650
data/README.md CHANGED
@@ -69,9 +69,7 @@ mount_base64_uploader :image, ImageUploader, file_name: -> { 'userpic' }
69
69
 
70
70
  ## Data format
71
71
 
72
- The string with the encoded data, should be prefixed with Data URI scheme format.
73
-
74
- Keep in mind, that the content type specified in this string, would be used to identified the file extension. So if you have some custom content type uploaded, don't forget to register a Mime Type for it.
72
+ File extention for the uploaded file is identified automatically based on the file contents. If it can't be identified automaticaly, it falls back to the content-type, specified in the data string.
75
73
 
76
74
  ```
77
75
  data:image/jpeg;base64,(base64 encoded data)
data/Rakefile CHANGED
@@ -1,8 +1 @@
1
1
  require 'bundler/gem_tasks'
2
-
3
- require 'rspec/core/rake_task'
4
-
5
- desc 'Run all examples'
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- task default: [:spec]
@@ -23,12 +23,12 @@ Gem::Specification.new do |spec|
23
23
  spec.add_dependency 'mime-types', '~> 3.0'
24
24
  spec.add_dependency 'mimemagic', '~> 0.3.2'
25
25
 
26
- spec.add_development_dependency 'bundler', '~> 1.7'
26
+ spec.add_development_dependency 'bundler', '~> 2.1'
27
27
  spec.add_development_dependency 'carrierwave-mongoid'
28
28
  spec.add_development_dependency 'mongoid'
29
29
  spec.add_development_dependency 'pry'
30
30
  spec.add_development_dependency 'rails', '~> 5'
31
- spec.add_development_dependency 'rake', '~> 10.0'
31
+ spec.add_development_dependency 'rake', '~> 12.3.3'
32
32
  spec.add_development_dependency 'rspec', '~> 2.14'
33
33
  spec.add_development_dependency 'rubocop'
34
34
  spec.add_development_dependency 'sham_rack'
@@ -1,5 +1,5 @@
1
1
  module Carrierwave
2
2
  module Base64
3
- VERSION = '2.8.0'.freeze
3
+ VERSION = '2.8.1'.freeze
4
4
  end
5
5
  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.8.0
4
+ version: 2.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Lebedev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-29 00:00:00.000000000 Z
11
+ date: 2020-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.7'
61
+ version: '2.1'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.7'
68
+ version: '2.1'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: carrierwave-mongoid
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '10.0'
131
+ version: 12.3.3
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '10.0'
138
+ version: 12.3.3
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rspec
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -262,8 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
262
262
  - !ruby/object:Gem::Version
263
263
  version: '0'
264
264
  requirements: []
265
- rubyforge_project:
266
- rubygems_version: 2.7.6
265
+ rubygems_version: 3.1.2
267
266
  signing_key:
268
267
  specification_version: 4
269
268
  summary: Upload images encoded as base64 to carrierwave.