carrierwave-qiniu 1.1.5 → 1.1.6

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: b66cfaca74f254535370d14bc5e9986cc4bbe580
4
- data.tar.gz: 112726a8efa7e6919c69006687acaaccd0ecd954
2
+ SHA256:
3
+ metadata.gz: 47eb1c55cfe096e539099c1edff84fc1a1f5bfa3b931150956cb8448b3bc5600
4
+ data.tar.gz: 261e356f4ada5881910344e0705afcaeef0abd9e89afd52bbf6ff2625632452e
5
5
  SHA512:
6
- metadata.gz: 13d32a9ae44a0674eafbf75c9671e521bff973f4074aae79ffc1361c2047dfb6d97c08cad347590b73bf5e171354643f07e0e1bcb9968d77f2a173741d23f513
7
- data.tar.gz: a938c77989f98d79bc75c72d1d967eff68d8bcda23e1d541e8b1d8ecf38f7a77958ef061375f899bc9b2abf313d1e1ad4fe9678dbe832248e232bc5f99432c42
6
+ metadata.gz: dec0c499538e460c55d7e592d266fa83026900149e4f2b32f9baf02a89b31e79e3effc47d4ef617e573937ec9910f886a0728e5644465ef423a077b73f83dfbc
7
+ data.tar.gz: 692d9b52765e1d917dae7075c205272ef692f109c2f88c21c1f268b99c09d8a68c9b134074a7f55931cf88bbc44b9d664592b1fa2eb531436e806316101db9ac
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
 
2
2
  ## CHANGE LOG
3
3
 
4
+ ### v1.1.6
5
+
6
+ - Add filename to storage qiniu file
7
+
8
+ https://github.com/huobazi/carrierwave-qiniu/pull/84
9
+
4
10
  ### v1.1.5
5
11
 
6
12
  - 解决未定义的 qiniu_delete_after_days 和 qiniu_persistent_pipeline 方法错误
data/Gemfile CHANGED
@@ -1,16 +1,16 @@
1
1
  #source 'https://rubygems.org'
2
- source 'https://gems.ruby-china.org'
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', '>=4.2.5'
9
- gem 'sqlite3', '>=1.3.6'
10
- gem 'carrierwave', '>=0.6.2'
11
- gem 'mini_magick', '>=3.4'
8
+ gem 'rails'
9
+ gem 'sqlite3'
10
+ gem 'carrierwave'
11
+ gem 'mini_magick'
12
12
  gem 'qiniu'
13
- gem 'rspec', '~> 2.11'
14
- gem 'mocha', '>=0.10.0'
13
+ gem 'rspec'
14
+ gem 'mocha'
15
15
  gem 'dotenv'
16
16
  end
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.5)](http://badge.fury.io/rb/carrierwave-qiniu)
3
+ [![Gem Version](https://badge.fury.io/rb/carrierwave-qiniu@2x.png?1.1.6)](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.5'
13
+ gem 'carrierwave-qiniu', '~> 1.1.6'
14
14
  # If you need to use locales other than English
15
15
  gem 'carrierwave-i18n'
16
16
 
@@ -20,7 +20,7 @@ And then execute:
20
20
 
21
21
  Or install it yourself as:
22
22
 
23
- $ gem install carrierwave-qiniu -v 1.1.5
23
+ $ gem install carrierwave-qiniu -v 1.1.6
24
24
 
25
25
  ## Usage
26
26
 
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Carrierwave
3
3
  module Qiniu
4
- VERSION = "1.1.5"
4
+ VERSION = "1.1.6"
5
5
  end
6
6
  end
@@ -196,6 +196,10 @@ module CarrierWave
196
196
  path.split('.').last
197
197
  end
198
198
 
199
+ def filename
200
+ ::File.basename(path)
201
+ end
202
+
199
203
  private
200
204
 
201
205
  def qiniu_connection
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-qiniu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marble Wu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-24 00:00:00.000000000 Z
11
+ date: 2019-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carrierwave
@@ -28,22 +28,22 @@ dependencies:
28
28
  name: qiniu
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '6.8'
34
31
  - - ">="
35
32
  - !ruby/object:Gem::Version
36
33
  version: 6.8.0
34
+ - - "~>"
35
+ - !ruby/object:Gem::Version
36
+ version: '6.8'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - "~>"
42
- - !ruby/object:Gem::Version
43
- version: '6.8'
44
41
  - - ">="
45
42
  - !ruby/object:Gem::Version
46
43
  version: 6.8.0
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '6.8'
47
47
  description: Qiniu Storage support for CarrierWave
48
48
  email:
49
49
  - huobazi@gmail.com
@@ -91,8 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  requirements: []
94
- rubyforge_project:
95
- rubygems_version: 2.4.6
94
+ rubygems_version: 3.0.2
96
95
  signing_key:
97
96
  specification_version: 4
98
97
  summary: Qiniu Storage support for CarrierWave