carrierwave-base64 2.6.1 → 2.7.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
- SHA1:
3
- metadata.gz: abcbb4f3923aeaab3fe9826578380b8ac0834507
4
- data.tar.gz: 4e6a9110f48465cae3cd17934c7c6327610f59dc
2
+ SHA256:
3
+ metadata.gz: d46d2f9f96d23a40a168aa3a25f1d79475cac873e7b1e004153199aa12c11962
4
+ data.tar.gz: 77d81babfb99831edae4fc362010c13639a957b0ff56377420744f56de5eb029
5
5
  SHA512:
6
- metadata.gz: 7a63f9c999f435e3f0ab00eb526c9998538bdb722f5724c250e6761d32e8d9ab3ce4bcdbb16f1f97683b530c0517f482045b2bb5dea7fcf694556785bcad9699
7
- data.tar.gz: b4d47fcf52dc1a2cc6093d965780168de83ba07d12a36b2d5b8edb2f43363053e10a1433ed24a3568f2e6ac2e7c5ce83ff5eca655abc338f01c9cdf08cc3e5dd
6
+ metadata.gz: 8707ca4f1b52279e6c1f6a8eec3b576029fd1fd4641ecdf656e824afd697d7e04d94e54e9fc796df648f8626711d3f2a53cb3758f5cd04d8305f1bc20696114b
7
+ data.tar.gz: 856803d525d0d2b614ae21688e424de5c9f98ecad8dd1d39feb9509bed63d7f2fa3b68a80377bd0fbdb790f1f4c39a000bba5629aed6cded3f39fd523862988b
@@ -1,9 +1,11 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - 2.1.9
5
- - 2.2.5
6
- - 2.3.1
4
+ - 2.1.10
5
+ - 2.2.10
6
+ - 2.3.7
7
+ - 2.4.4
8
+ - 2.5.1
7
9
  - ruby-head
8
10
 
9
11
  matrix:
@@ -1,5 +1,9 @@
1
1
  # carrierwave-base64 changelog
2
2
 
3
+ ## 2.7.0
4
+
5
+ - Railtie is not required by default, so the gem can be used in non Rails app (@sleepingstu)
6
+
3
7
  ## 2.6.1
4
8
 
5
9
  This release fixes the issue that the public API of the gem was changed in 2.6.0, by switching from RFC 2045 to RFC 4648 standard for base64 strings.
@@ -1,6 +1,4 @@
1
- # coding: utf-8
2
-
3
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
4
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
3
 
6
4
  require 'carrierwave/base64/version'
@@ -24,14 +22,14 @@ Gem::Specification.new do |spec|
24
22
  spec.add_dependency 'carrierwave', '>= 0.8.0'
25
23
  spec.add_dependency 'mime-types', '~> 3.0'
26
24
 
27
- spec.add_development_dependency 'rails', '~> 4'
28
- spec.add_development_dependency 'sqlite3'
29
- spec.add_development_dependency 'mongoid'
30
- spec.add_development_dependency 'carrierwave-mongoid'
31
25
  spec.add_development_dependency 'bundler', '~> 1.7'
26
+ spec.add_development_dependency 'carrierwave-mongoid'
27
+ spec.add_development_dependency 'mongoid'
28
+ spec.add_development_dependency 'pry'
29
+ spec.add_development_dependency 'rails', '~> 4'
32
30
  spec.add_development_dependency 'rake', '~> 10.0'
33
31
  spec.add_development_dependency 'rspec', '~> 2.14'
34
- spec.add_development_dependency 'sham_rack'
35
- spec.add_development_dependency 'pry'
36
32
  spec.add_development_dependency 'rubocop'
33
+ spec.add_development_dependency 'sham_rack'
34
+ spec.add_development_dependency 'sqlite3'
37
35
  end
@@ -3,18 +3,9 @@ require 'carrierwave/base64/version'
3
3
  require 'carrierwave/base64/exceptions'
4
4
  require 'carrierwave/base64/base64_string_io'
5
5
  require 'carrierwave/base64/adapter'
6
+ require 'carrierwave/base64/railtie' if defined?(Rails)
6
7
 
7
8
  module Carrierwave
8
9
  module Base64
9
- class Railtie < Rails::Railtie
10
- ActiveSupport.on_load :active_record do
11
- ActiveRecord::Base.extend Carrierwave::Base64::Adapter
12
- end
13
-
14
- ActiveSupport.on_load :mongoid do
15
- Mongoid::Document::ClassMethods.send :include,
16
- Carrierwave::Base64::Adapter
17
- end
18
- end
19
10
  end
20
11
  end
@@ -0,0 +1,14 @@
1
+ module Carrierwave
2
+ module Base64
3
+ class Railtie < Rails::Railtie
4
+ ActiveSupport.on_load :active_record do
5
+ ActiveRecord::Base.extend Carrierwave::Base64::Adapter
6
+ end
7
+
8
+ ActiveSupport.on_load :mongoid do
9
+ Mongoid::Document::ClassMethods.send :include,
10
+ Carrierwave::Base64::Adapter
11
+ end
12
+ end
13
+ end
14
+ end
@@ -1,5 +1,5 @@
1
1
  module Carrierwave
2
2
  module Base64
3
- VERSION = '2.6.1'.freeze
3
+ VERSION = '2.7.0'.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.6.1
4
+ version: 2.7.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: 2017-10-16 00:00:00.000000000 Z
11
+ date: 2018-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave
@@ -39,21 +39,21 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rails
42
+ name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '4'
47
+ version: '1.7'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '4'
54
+ version: '1.7'
55
55
  - !ruby/object:Gem::Dependency
56
- name: sqlite3
56
+ name: carrierwave-mongoid
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: carrierwave-mongoid
84
+ name: pry
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -95,19 +95,19 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: bundler
98
+ name: rails
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.7'
103
+ version: '4'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.7'
110
+ version: '4'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -137,7 +137,7 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: '2.14'
139
139
  - !ruby/object:Gem::Dependency
140
- name: sham_rack
140
+ name: rubocop
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="
@@ -151,7 +151,7 @@ dependencies:
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: pry
154
+ name: sham_rack
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
@@ -165,7 +165,7 @@ dependencies:
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
- name: rubocop
168
+ name: sqlite3
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ">="
@@ -200,6 +200,7 @@ files:
200
200
  - lib/carrierwave/base64/adapter.rb
201
201
  - lib/carrierwave/base64/base64_string_io.rb
202
202
  - lib/carrierwave/base64/exceptions.rb
203
+ - lib/carrierwave/base64/railtie.rb
203
204
  - lib/carrierwave/base64/version.rb
204
205
  - spec/adapter_spec.rb
205
206
  - spec/base64_string_io_spec.rb
@@ -229,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
230
  version: '0'
230
231
  requirements: []
231
232
  rubyforge_project:
232
- rubygems_version: 2.6.11
233
+ rubygems_version: 2.7.3
233
234
  signing_key:
234
235
  specification_version: 4
235
236
  summary: Upload images encoded as base64 to carrierwave.