carrierwave-qiniu 1.1.8 → 1.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
  SHA256:
3
- metadata.gz: 26e9ac6a7fc4b16de529b49ceda0a7e397e6cbffb5dee7dd5e22b8781a9e93e6
4
- data.tar.gz: 445d456bfed1453e6daa4f0aae75bd540c67ccab359e7968c876c22fea74197a
3
+ metadata.gz: 88ad15a88d231142af19a674cb9b98a3d59fa043983627e8e05019f9437c4edf
4
+ data.tar.gz: 920e9ce74941e1fea40653adc4dd6e206563da0685ea603d12dd17a62919baeb
5
5
  SHA512:
6
- metadata.gz: 2a9df16d1a6b680815907f80b38f75b5fe199bcc72e0ce536bd58f91bf9d1429fdcc44146ce1ee53bd11ca3489f6f4156d60e0d365183b631609728dd042be63
7
- data.tar.gz: 37c437d0f628abd9178ac1fb701a215ee7e4038a983be6e9990215aad010fa650c3dce9013e9ca482fccb990dc5c22aa3a8f429ca25acffd946430141321bf57
6
+ metadata.gz: df7664665d316e856e66222267d81539cde36b2c926fd4bb3be9e3a9eb96dbfa0752c78829e353657ee665529fa7c36d19f4cb805115dfed2c3a168201b08b64
7
+ data.tar.gz: 378869166a509fc117a2134fb565e4eca59d81dd9e7dc579fdf9c30598b9d155acfb094401b73b25f8afd93a5bcdf08dfd510c1aa71525553046d4b9e4789bd4
@@ -1,6 +1,10 @@
1
1
 
2
2
  ## CHANGE LOG
3
3
 
4
+ ### v1.2.0
5
+
6
+ - Fit to carrierwave 2.0 (支持 CarrierWave 2.0)
7
+
4
8
  ### v1.1.8
5
9
 
6
10
  - Fix warning in ruby 2.7.
data/Gemfile CHANGED
@@ -1,16 +1,16 @@
1
1
  #source 'https://rubygems.org'
2
- source 'https://gems.ruby-china.com'
2
+ source "https://gems.ruby-china.com"
3
3
 
4
4
  # Specify your gem's dependencies in carrierwave-qiniu.gemspec
5
5
  gemspec
6
6
 
7
7
  group :test do
8
- gem 'rails', '~> 6.0.0'
9
- gem 'sqlite3'
10
- gem 'carrierwave', '~> 1.3', '>= 1.3.1'
11
- gem 'mini_magick'
12
- gem 'qiniu', '~> 6.9'
13
- gem 'rspec'
14
- gem 'mocha'
15
- gem 'dotenv'
8
+ gem "rails", "~> 6.0.0"
9
+ gem "sqlite3"
10
+ gem "carrierwave", ">= 1"
11
+ gem "mini_magick"
12
+ gem "qiniu", "~> 6.9"
13
+ gem "rspec"
14
+ gem "mocha"
15
+ gem "dotenv"
16
16
  end
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- carrierwave-qiniu (1.1.7)
5
- carrierwave (~> 1.0)
4
+ carrierwave-qiniu (1.2.0)
5
+ carrierwave (>= 1)
6
6
  qiniu (~> 6.9, >= 6.9.0)
7
7
 
8
8
  GEM
@@ -63,11 +63,16 @@ GEM
63
63
  minitest (~> 5.1)
64
64
  tzinfo (~> 1.1)
65
65
  zeitwerk (~> 2.1, >= 2.1.8)
66
+ addressable (2.7.0)
67
+ public_suffix (>= 2.0.2, < 5.0)
66
68
  builder (3.2.3)
67
- carrierwave (1.3.1)
68
- activemodel (>= 4.0.0)
69
- activesupport (>= 4.0.0)
70
- mime-types (>= 1.16)
69
+ carrierwave (2.0.2)
70
+ activemodel (>= 5.0.0)
71
+ activesupport (>= 5.0.0)
72
+ addressable (~> 2.6)
73
+ image_processing (~> 1.1)
74
+ mimemagic (>= 0.3.0)
75
+ mini_mime (>= 0.1.3)
71
76
  concurrent-ruby (1.1.5)
72
77
  crass (1.0.4)
73
78
  diff-lcs (1.3)
@@ -75,13 +80,17 @@ GEM
75
80
  unf (>= 0.0.5, < 1.0.0)
76
81
  dotenv (2.7.5)
77
82
  erubi (1.8.0)
83
+ ffi (1.12.1)
78
84
  globalid (0.4.2)
79
85
  activesupport (>= 4.2.0)
80
86
  http-accept (1.7.0)
81
87
  http-cookie (1.0.3)
82
88
  domain_name (~> 0.5)
83
- i18n (1.6.0)
89
+ i18n (1.8.2)
84
90
  concurrent-ruby (~> 1.0)
91
+ image_processing (1.10.3)
92
+ mini_magick (>= 4.9.5, < 5)
93
+ ruby-vips (>= 2.0.17, < 3)
85
94
  loofah (2.2.3)
86
95
  crass (~> 1.0.2)
87
96
  nokogiri (>= 1.5.9)
@@ -91,20 +100,21 @@ GEM
91
100
  mimemagic (~> 0.3.2)
92
101
  metaclass (0.0.4)
93
102
  method_source (0.9.2)
94
- mime-types (3.3)
103
+ mime-types (3.3.1)
95
104
  mime-types-data (~> 3.2015)
96
- mime-types-data (3.2019.0904)
105
+ mime-types-data (3.2019.1009)
97
106
  mimemagic (0.3.3)
98
107
  mini_magick (4.9.5)
99
108
  mini_mime (1.0.2)
100
109
  mini_portile2 (2.4.0)
101
- minitest (5.11.3)
110
+ minitest (5.14.0)
102
111
  mocha (1.9.0)
103
112
  metaclass (~> 0.0.1)
104
113
  netrc (0.11.0)
105
114
  nio4r (2.5.1)
106
115
  nokogiri (1.10.4)
107
116
  mini_portile2 (~> 2.4.0)
117
+ public_suffix (4.0.3)
108
118
  qiniu (6.9.0)
109
119
  mime-types (~> 3.1)
110
120
  rest-client (~> 2.0)
@@ -156,6 +166,8 @@ GEM
156
166
  diff-lcs (>= 1.2.0, < 2.0)
157
167
  rspec-support (~> 3.8.0)
158
168
  rspec-support (3.8.2)
169
+ ruby-vips (2.0.17)
170
+ ffi (~> 1.9)
159
171
  sprockets (3.7.2)
160
172
  concurrent-ruby (~> 1.0)
161
173
  rack (> 1, < 3)
@@ -166,7 +178,7 @@ GEM
166
178
  sqlite3 (1.4.1)
167
179
  thor (0.20.3)
168
180
  thread_safe (0.3.6)
169
- tzinfo (1.2.5)
181
+ tzinfo (1.2.6)
170
182
  thread_safe (~> 0.1)
171
183
  unf (0.1.4)
172
184
  unf_ext
@@ -174,13 +186,13 @@ GEM
174
186
  websocket-driver (0.7.1)
175
187
  websocket-extensions (>= 0.1.0)
176
188
  websocket-extensions (0.1.4)
177
- zeitwerk (2.1.10)
189
+ zeitwerk (2.2.2)
178
190
 
179
191
  PLATFORMS
180
192
  ruby
181
193
 
182
194
  DEPENDENCIES
183
- carrierwave (~> 1.3, >= 1.3.1)
195
+ carrierwave (>= 1)
184
196
  carrierwave-qiniu!
185
197
  dotenv
186
198
  mini_magick
@@ -191,4 +203,4 @@ DEPENDENCIES
191
203
  sqlite3
192
204
 
193
205
  BUNDLED WITH
194
- 2.1.2
206
+ 2.1.4
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Carrierwave::Qiniu
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/carrierwave-qiniu@2x.png?1.1.7)](http://badge.fury.io/rb/carrierwave-qiniu)
3
+ [![Gem Version](https://badge.fury.io/rb/carrierwave-qiniu@2x.png?1.1.8)](http://badge.fury.io/rb/carrierwave-qiniu)
4
4
 
5
5
  This gem adds storage support for [Qiniu](http://qiniutek.com) to [Carrierwave](https://github.com/jnicklas/carrierwave)
6
6
 
@@ -10,7 +10,7 @@ example: https://github.com/huobazi/carrierwave-qiniu-example
10
10
 
11
11
  Add the following to your application's Gemfile:
12
12
 
13
- gem 'carrierwave-qiniu', '~> 1.1.7'
13
+ gem 'carrierwave-qiniu', '~> 1.1.8'
14
14
  gem 'carrierwave-i18n' # If you need to use locales other than English
15
15
 
16
16
  And then execute:
@@ -19,7 +19,7 @@ And then execute:
19
19
 
20
20
  Or install it yourself as:
21
21
 
22
- $ gem install carrierwave-qiniu -v 1.1.7
22
+ $ gem install carrierwave-qiniu -v 1.1.8
23
23
 
24
24
  ## Usage
25
25
 
@@ -17,6 +17,6 @@ Gem::Specification.new do |gem|
17
17
  gem.version = Carrierwave::Qiniu::VERSION
18
18
 
19
19
 
20
- gem.add_dependency "carrierwave" , "~> 1.0"
20
+ gem.add_dependency "carrierwave" , ">= 1"
21
21
  gem.add_dependency "qiniu", "~> 6.9", ">= 6.9.0"
22
22
  end
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Carrierwave
3
3
  module Qiniu
4
- VERSION = "1.1.8"
4
+ VERSION = "1.2.0"
5
5
  end
6
6
  end
@@ -1,31 +1,30 @@
1
1
  # encoding: utf-8
2
- require 'carrierwave'
3
- require 'qiniu'
4
- require 'qiniu/http'
2
+ require "carrierwave"
3
+ require "qiniu"
4
+ require "qiniu/http"
5
5
 
6
6
  module CarrierWave
7
7
  module Storage
8
8
  class Qiniu < Abstract
9
-
10
9
  class Connection
11
- def initialize(options={})
10
+ def initialize(options = {})
12
11
  @qiniu_bucket_domain = options[:qiniu_bucket_domain]
13
12
  @qiniu_bucket = options[:qiniu_bucket]
14
13
  @qiniu_bucket_private = options[:qiniu_bucket_private] || false
15
14
  @qiniu_access_key = options[:qiniu_access_key]
16
15
  @qiniu_secret_key = options[:qiniu_secret_key]
17
- @qiniu_block_size = options[:qiniu_block_size] || 1024*1024*4
16
+ @qiniu_block_size = options[:qiniu_block_size] || 1024 * 1024 * 4
18
17
  @qiniu_protocol = options[:qiniu_protocol] || "http"
19
- @qiniu_persistent_ops = options[:qiniu_persistent_ops] || options[:qiniu_async_ops] || ''
20
- @qiniu_persistent_pipeline = options[:qiniu_persistent_pipeline] || ''
21
- @qiniu_persistent_notify_url = options[:qiniu_persistent_notify_url] || ''
18
+ @qiniu_persistent_ops = options[:qiniu_persistent_ops] || options[:qiniu_async_ops] || ""
19
+ @qiniu_persistent_pipeline = options[:qiniu_persistent_pipeline] || ""
20
+ @qiniu_persistent_notify_url = options[:qiniu_persistent_notify_url] || ""
22
21
  @qiniu_can_overwrite = options[:qiniu_can_overwrite] || false
23
22
  @qiniu_expires_in = options[:qiniu_expires_in] || options[:expires_in] || 3600
24
23
  @qiniu_up_host = options[:qiniu_up_host]
25
24
  @qiniu_private_url_expires_in = options[:qiniu_private_url_expires_in] || 3600
26
- @qiniu_callback_url = options[:qiniu_callback_url] || ''
27
- @qiniu_callback_body = options[:qiniu_callback_body] || ''
28
- @qiniu_style_separator = options[:qiniu_style_separator] || '-'
25
+ @qiniu_callback_url = options[:qiniu_callback_url] || ""
26
+ @qiniu_callback_body = options[:qiniu_callback_body] || ""
27
+ @qiniu_style_separator = options[:qiniu_style_separator] || "-"
29
28
  @qiniu_delete_after_days = options[:qiniu_delete_after_days] || 0
30
29
  init
31
30
  end
@@ -41,11 +40,11 @@ module CarrierWave
41
40
  nil
42
41
  )
43
42
 
44
- put_policy.callback_url = @qiniu_callback_url if @qiniu_callback_url.present?
45
- put_policy.callback_body = @qiniu_callback_body if @qiniu_callback_body.present?
46
- put_policy.persistent_ops = @qiniu_persistent_ops || @qiniu_async_ops
43
+ put_policy.callback_url = @qiniu_callback_url if @qiniu_callback_url.present?
44
+ put_policy.callback_body = @qiniu_callback_body if @qiniu_callback_body.present?
45
+ put_policy.persistent_ops = @qiniu_persistent_ops || @qiniu_async_ops
47
46
  put_policy.persistent_notify_url = @qiniu_persistent_notify_url if @qiniu_persistent_notify_url.present?
48
- put_policy.persistent_pipeline = @persistent_pipeline
47
+ put_policy.persistent_pipeline = @persistent_pipeline
49
48
 
50
49
  resp_code, resp_body, resp_headers =
51
50
  ::Qiniu::Storage.upload_with_put_policy(
@@ -53,12 +52,12 @@ module CarrierWave
53
52
  file.path,
54
53
  key,
55
54
  nil,
56
- bucket: @qiniu_bucket
57
- )
55
+ bucket: @qiniu_bucket,
56
+ )
58
57
 
59
- if resp_code < 200 or resp_code >= 300
60
- raise ::CarrierWave::UploadError, "Upload failed, status code: #{resp_code}, response: #{resp_body}"
61
- end
58
+ if resp_code < 200 or resp_code >= 300
59
+ raise ::CarrierWave::UploadError, "Upload failed, status code: #{resp_code}, response: #{resp_body}"
60
+ end
62
61
  end
63
62
 
64
63
  #
@@ -84,18 +83,14 @@ module CarrierWave
84
83
  end
85
84
 
86
85
  def get(path)
87
- code, result, _ = ::Qiniu::HTTP.get( download_url(path) )
86
+ code, result, _ = ::Qiniu::HTTP.get(download_url(path))
88
87
  code == 200 ? result : nil
89
88
  end
90
89
 
91
90
  def download_url(path)
92
91
  encode_path = path_escape(path)
93
92
  primitive_url = "#{@qiniu_protocol}://#{@qiniu_bucket_domain}/#{encode_path}"
94
- @qiniu_bucket_private ? \
95
- ::Qiniu::Auth.authorize_download_url(primitive_url, :expires_in => @qiniu_private_url_expires_in) \
96
- : \
97
- primitive_url
98
-
93
+ @qiniu_bucket_private ? ::Qiniu::Auth.authorize_download_url(primitive_url, :expires_in => @qiniu_private_url_expires_in) : primitive_url
99
94
  end
100
95
 
101
96
  private
@@ -110,25 +105,21 @@ module CarrierWave
110
105
  options = {
111
106
  :access_key => @qiniu_access_key,
112
107
  :secret_key => @qiniu_secret_key,
113
- :user_agent => UserAgent
108
+ :user_agent => UserAgent,
114
109
  }
115
110
  options[:block_size] = @qiniu_block_size if @qiniu_block_size
116
- options[:up_host] = @qiniu_up_host if @qiniu_up_host
111
+ options[:up_host] = @qiniu_up_host if @qiniu_up_host
117
112
 
118
113
  ::Qiniu.establish_connection! options
119
-
120
114
  end
121
115
 
122
116
  #fix chinese file name, same as encodeURIComponent in js but preserve slash '/'
123
117
  def path_escape(value)
124
- #CGI.escape(value)#.gsub("%2F", "/")
125
118
  ::URI::DEFAULT_PARSER.escape value
126
119
  end
127
-
128
120
  end
129
121
 
130
122
  class File
131
-
132
123
  def initialize(uploader, path)
133
124
  @uploader, @path = uploader, path
134
125
  end
@@ -176,7 +167,6 @@ module CarrierWave
176
167
  qiniu_connection.delete(@path)
177
168
 
178
169
  qiniu_connection.copy(origin_path, @path)
179
-
180
170
  end
181
171
 
182
172
  ##
@@ -191,15 +181,15 @@ module CarrierWave
191
181
  end
192
182
 
193
183
  def content_type
194
- file_info['mimeType'] || 'application/octet-stream'.freeze
184
+ file_info["mimeType"] || "application/octet-stream".freeze
195
185
  end
196
186
 
197
187
  def size
198
- file_info['fsize'] || 0
188
+ file_info["fsize"] || 0
199
189
  end
200
190
 
201
191
  def extension
202
- path.split('.').last
192
+ path.split(".").last
203
193
  end
204
194
 
205
195
  def filename
@@ -210,30 +200,30 @@ module CarrierWave
210
200
 
211
201
  def qiniu_connection
212
202
  @qiniu_connection ||= begin
213
- config = {
214
- :qiniu_access_key => @uploader.qiniu_access_key,
215
- :qiniu_secret_key => @uploader.qiniu_secret_key,
216
- :qiniu_bucket => @uploader.qiniu_bucket,
217
- :qiniu_bucket_domain => @uploader.qiniu_bucket_domain,
218
- :qiniu_bucket_private => @uploader.qiniu_bucket_private,
219
- :qiniu_block_size => @uploader.qiniu_block_size,
220
- :qiniu_protocol => @uploader.qiniu_protocol,
221
- :qiniu_expires_in => @uploader.qiniu_expires_in,
222
- :qiniu_up_host => @uploader.qiniu_up_host,
223
- :qiniu_private_url_expires_in => @uploader.qiniu_private_url_expires_in,
224
- :qiniu_callback_url => @uploader.qiniu_callback_url,
225
- :qiniu_callback_body => @uploader.qiniu_callback_body,
226
- :qiniu_persistent_notify_url => @uploader.qiniu_persistent_notify_url,
227
- :qiniu_persistent_pipeline => @uploader.qiniu_persistent_pipeline,
228
- :qiniu_style_separator => @uploader.qiniu_style_separator,
229
- :qiniu_delete_after_days => @uploader.qiniu_delete_after_days
230
- }
231
-
232
- config[:qiniu_persistent_ops] = Array(@uploader.qiniu_persistent_ops || @uploader.qiniu_async_ops).join(';') rescue ''
233
- config[:qiniu_can_overwrite] = @uploader.try :qiniu_can_overwrite rescue false
234
-
235
- Connection.new config
236
- end
203
+ config = {
204
+ :qiniu_access_key => @uploader.qiniu_access_key,
205
+ :qiniu_secret_key => @uploader.qiniu_secret_key,
206
+ :qiniu_bucket => @uploader.qiniu_bucket,
207
+ :qiniu_bucket_domain => @uploader.qiniu_bucket_domain,
208
+ :qiniu_bucket_private => @uploader.qiniu_bucket_private,
209
+ :qiniu_block_size => @uploader.qiniu_block_size,
210
+ :qiniu_protocol => @uploader.qiniu_protocol,
211
+ :qiniu_expires_in => @uploader.qiniu_expires_in,
212
+ :qiniu_up_host => @uploader.qiniu_up_host,
213
+ :qiniu_private_url_expires_in => @uploader.qiniu_private_url_expires_in,
214
+ :qiniu_callback_url => @uploader.qiniu_callback_url,
215
+ :qiniu_callback_body => @uploader.qiniu_callback_body,
216
+ :qiniu_persistent_notify_url => @uploader.qiniu_persistent_notify_url,
217
+ :qiniu_persistent_pipeline => @uploader.qiniu_persistent_pipeline,
218
+ :qiniu_style_separator => @uploader.qiniu_style_separator,
219
+ :qiniu_delete_after_days => @uploader.qiniu_delete_after_days,
220
+ }
221
+
222
+ config[:qiniu_persistent_ops] = Array(@uploader.qiniu_persistent_ops || @uploader.qiniu_async_ops).join(";") rescue ""
223
+ config[:qiniu_can_overwrite] = @uploader.try :qiniu_can_overwrite rescue false
224
+
225
+ Connection.new config
226
+ end
237
227
  end
238
228
 
239
229
  def file_info
@@ -251,7 +241,6 @@ module CarrierWave
251
241
  @path
252
242
  end
253
243
  end
254
-
255
244
  end
256
245
 
257
246
  def store!(file)
@@ -264,10 +253,19 @@ module CarrierWave
264
253
  f
265
254
  end
266
255
 
256
+ def cache!(file)
257
+ f = ::CarrierWave::Storage::Qiniu::File.new(uploader, uploader.cache_path(uploader.filename))
258
+ f.store(file)
259
+ f
260
+ end
261
+
267
262
  def retrieve!(identifier)
268
263
  ::CarrierWave::Storage::Qiniu::File.new(uploader, uploader.store_path(identifier))
269
264
  end
270
265
 
266
+ def retrieve_from_cache!(identifier)
267
+ ::CarrierWave::Storage::Qiniu::File.new(uploader, uploader.cache_path(identifier))
268
+ end
271
269
  end
272
270
  end
273
271
  end
@@ -4,31 +4,28 @@ require "rails"
4
4
  require "active_record"
5
5
  require "carrierwave"
6
6
  require "carrierwave/orm/activerecord"
7
- require 'dotenv'
8
- require 'mini_magick'
7
+ require "dotenv"
8
+ require "mini_magick"
9
9
 
10
10
  $LOAD_PATH.unshift(File.dirname(__FILE__))
11
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__),"..","lib"))
11
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
12
12
 
13
13
  require "carrierwave-qiniu"
14
14
 
15
-
16
15
  module Rails
17
- class <<self
16
+ class << self
18
17
  def root
19
- [File.expand_path(__FILE__).split('/')[0..-3].join('/'),"spec"].join("/")
18
+ [File.expand_path(__FILE__).split("/")[0..-3].join("/"), "spec"].join("/")
20
19
  end
21
20
  end
22
21
  end
23
22
 
24
-
25
23
  the_gem = Gem::Specification.find_by_name("carrierwave")
26
24
  the_gem_root = the_gem.gem_dir
27
25
  the_gem_lib = the_gem_root + "/lib"
28
26
  the_gem_locale = the_gem_lib + "/carrierwave/locale/en.yml"
29
27
  I18n.load_path << the_gem_locale
30
28
 
31
-
32
29
  Dotenv.load
33
30
 
34
31
  ActiveRecord::Migration.verbose = false
@@ -37,23 +34,21 @@ if [ActiveRecord::VERSION::MAJOR, ActiveRecord::VERSION::MINOR] == [4, 2]
37
34
  ActiveRecord::Base.raise_in_transactional_callbacks = true
38
35
  end
39
36
 
40
-
41
37
  # 测试的时候载入环境变量
42
38
  # 或者在根目录下新建 `.env` 文件,包含 <key>=<value>
43
39
  ::CarrierWave.configure do |config|
44
40
  config.storage = :qiniu
45
- config.qiniu_access_key = ENV['qiniu_access_key']
46
- config.qiniu_secret_key = ENV['qiniu_secret_key']
41
+ config.cache_storage = :file
42
+ config.qiniu_access_key = ENV["qiniu_access_key"]
43
+ config.qiniu_secret_key = ENV["qiniu_secret_key"]
47
44
 
48
- config.qiniu_bucket = ENV['qiniu_bucket']
49
- config.qiniu_bucket_domain = ENV['qiniu_bucket_domain']
45
+ config.qiniu_bucket = ENV["qiniu_bucket"]
46
+ config.qiniu_bucket_domain = ENV["qiniu_bucket_domain"]
50
47
  end
51
48
 
52
49
  def load_file(fname)
53
- File.open([Rails.root,fname].join("/"))
50
+ File.open([Rails.root, fname].join("/"))
54
51
  end
55
52
 
56
-
57
53
  RSpec.configure do |config|
58
-
59
54
  end
@@ -59,7 +59,6 @@ describe "CarrierWave Qiniu" do
59
59
  end
60
60
 
61
61
  class Photo < ActiveRecord::Base
62
-
63
62
  mount_uploader :image, PhotoUploader
64
63
  end
65
64
 
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-qiniu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marble Wu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-30 00:00:00.000000000 Z
11
+ date: 2020-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: qiniu
29
29
  requirement: !ruby/object:Gem::Requirement