activestorage_qiniu 0.1.9 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e68c12764193b4951801d033ce8694e1e4b9bc4d629dc7075ac3cd80a00ed57e
4
- data.tar.gz: 8d802e023594ae828cd95f3185d907853bd037b21c3de338b2a7ce0b6a7e912b
3
+ metadata.gz: 66dd8ccc4e92df60e083a59af68e0d9c6af449f30905fcd5d0bfbcad646a9376
4
+ data.tar.gz: 5c1b62fe52270d329f007b17a0fa0821be07995e2faacba6cf78aa400b1ca22b
5
5
  SHA512:
6
- metadata.gz: c3ada0a19066d24b4669e472331103fcee46bcd1f6c21e7c10a128a52e8ea8a1a240a7d542edd906b1b89658395145fff800680dc88cc602ef3004c8c1e81676
7
- data.tar.gz: 95ccd5d22f7fb1dfdb4a9c5c2a52a5d79698d79a53229e11c91f090f258b5aef34075943f39b4dd92f1d789bc45a84d93cd032942c7a4617f113a3e3f517a81c
6
+ metadata.gz: f7fabebadd0ba37fe9e8334dd78637df4a030464f0d77433e16a7a2710a45f1cd8cc7ac8553ca0071b6eedabf79dcb577fb8e5ae3b8a1e9ffe12fd23f4438303
7
+ data.tar.gz: a879fe519784c504edd5c8fe5f358967f79a563951161a3479c56d841a8e86274120853180d1ee9a8548002fc6bc2e7feb262fe07b6af195b121cf081b64c04f
@@ -1,116 +1,116 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activestorage_qiniu (0.1.7)
4
+ activestorage_qiniu (0.2.0)
5
5
  qiniu (~> 6.9)
6
- rails (~> 5.2)
6
+ rails (>= 5.1.6.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (5.2.0)
12
- actionpack (= 5.2.0)
11
+ actioncable (5.2.2.1)
12
+ actionpack (= 5.2.2.1)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (>= 0.6.1)
15
- actionmailer (5.2.0)
16
- actionpack (= 5.2.0)
17
- actionview (= 5.2.0)
18
- activejob (= 5.2.0)
15
+ actionmailer (5.2.2.1)
16
+ actionpack (= 5.2.2.1)
17
+ actionview (= 5.2.2.1)
18
+ activejob (= 5.2.2.1)
19
19
  mail (~> 2.5, >= 2.5.4)
20
20
  rails-dom-testing (~> 2.0)
21
- actionpack (5.2.0)
22
- actionview (= 5.2.0)
23
- activesupport (= 5.2.0)
21
+ actionpack (5.2.2.1)
22
+ actionview (= 5.2.2.1)
23
+ activesupport (= 5.2.2.1)
24
24
  rack (~> 2.0)
25
25
  rack-test (>= 0.6.3)
26
26
  rails-dom-testing (~> 2.0)
27
27
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.2.0)
29
- activesupport (= 5.2.0)
28
+ actionview (5.2.2.1)
29
+ activesupport (= 5.2.2.1)
30
30
  builder (~> 3.1)
31
31
  erubi (~> 1.4)
32
32
  rails-dom-testing (~> 2.0)
33
33
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.2.0)
35
- activesupport (= 5.2.0)
34
+ activejob (5.2.2.1)
35
+ activesupport (= 5.2.2.1)
36
36
  globalid (>= 0.3.6)
37
- activemodel (5.2.0)
38
- activesupport (= 5.2.0)
39
- activerecord (5.2.0)
40
- activemodel (= 5.2.0)
41
- activesupport (= 5.2.0)
37
+ activemodel (5.2.2.1)
38
+ activesupport (= 5.2.2.1)
39
+ activerecord (5.2.2.1)
40
+ activemodel (= 5.2.2.1)
41
+ activesupport (= 5.2.2.1)
42
42
  arel (>= 9.0)
43
- activestorage (5.2.0)
44
- actionpack (= 5.2.0)
45
- activerecord (= 5.2.0)
43
+ activestorage (5.2.2.1)
44
+ actionpack (= 5.2.2.1)
45
+ activerecord (= 5.2.2.1)
46
46
  marcel (~> 0.3.1)
47
- activesupport (5.2.0)
47
+ activesupport (5.2.2.1)
48
48
  concurrent-ruby (~> 1.0, >= 1.0.2)
49
49
  i18n (>= 0.7, < 2)
50
50
  minitest (~> 5.1)
51
51
  tzinfo (~> 1.1)
52
52
  arel (9.0.0)
53
53
  builder (3.2.3)
54
- concurrent-ruby (1.0.5)
54
+ concurrent-ruby (1.1.5)
55
55
  crass (1.0.4)
56
56
  domain_name (0.5.20180417)
57
57
  unf (>= 0.0.5, < 1.0.0)
58
- erubi (1.7.1)
59
- globalid (0.4.1)
58
+ erubi (1.8.0)
59
+ globalid (0.4.2)
60
60
  activesupport (>= 4.2.0)
61
61
  http-cookie (1.0.3)
62
62
  domain_name (~> 0.5)
63
- i18n (1.0.1)
63
+ i18n (1.6.0)
64
64
  concurrent-ruby (~> 1.0)
65
- loofah (2.2.2)
65
+ loofah (2.2.3)
66
66
  crass (~> 1.0.2)
67
67
  nokogiri (>= 1.5.9)
68
- mail (2.7.0)
68
+ mail (2.7.1)
69
69
  mini_mime (>= 0.1.1)
70
- marcel (0.3.2)
70
+ marcel (0.3.3)
71
71
  mimemagic (~> 0.3.2)
72
- method_source (0.9.0)
73
- mime-types (3.1)
72
+ method_source (0.9.2)
73
+ mime-types (3.2.2)
74
74
  mime-types-data (~> 3.2015)
75
- mime-types-data (3.2016.0521)
76
- mimemagic (0.3.2)
77
- mini_mime (1.0.0)
78
- mini_portile2 (2.3.0)
75
+ mime-types-data (3.2018.0812)
76
+ mimemagic (0.3.3)
77
+ mini_mime (1.0.1)
78
+ mini_portile2 (2.4.0)
79
79
  minitest (5.11.3)
80
80
  netrc (0.11.0)
81
81
  nio4r (2.3.1)
82
- nokogiri (1.8.4)
83
- mini_portile2 (~> 2.3.0)
82
+ nokogiri (1.10.1)
83
+ mini_portile2 (~> 2.4.0)
84
84
  qiniu (6.9.0)
85
85
  mime-types (~> 3.1)
86
86
  rest-client (~> 2.0)
87
- rack (2.0.5)
88
- rack-test (1.0.0)
87
+ rack (2.0.6)
88
+ rack-test (1.1.0)
89
89
  rack (>= 1.0, < 3)
90
- rails (5.2.0)
91
- actioncable (= 5.2.0)
92
- actionmailer (= 5.2.0)
93
- actionpack (= 5.2.0)
94
- actionview (= 5.2.0)
95
- activejob (= 5.2.0)
96
- activemodel (= 5.2.0)
97
- activerecord (= 5.2.0)
98
- activestorage (= 5.2.0)
99
- activesupport (= 5.2.0)
90
+ rails (5.2.2.1)
91
+ actioncable (= 5.2.2.1)
92
+ actionmailer (= 5.2.2.1)
93
+ actionpack (= 5.2.2.1)
94
+ actionview (= 5.2.2.1)
95
+ activejob (= 5.2.2.1)
96
+ activemodel (= 5.2.2.1)
97
+ activerecord (= 5.2.2.1)
98
+ activestorage (= 5.2.2.1)
99
+ activesupport (= 5.2.2.1)
100
100
  bundler (>= 1.3.0)
101
- railties (= 5.2.0)
101
+ railties (= 5.2.2.1)
102
102
  sprockets-rails (>= 2.0.0)
103
103
  rails-dom-testing (2.0.3)
104
104
  activesupport (>= 4.2.0)
105
105
  nokogiri (>= 1.6)
106
106
  rails-html-sanitizer (1.0.4)
107
107
  loofah (~> 2.2, >= 2.2.2)
108
- railties (5.2.0)
109
- actionpack (= 5.2.0)
110
- activesupport (= 5.2.0)
108
+ railties (5.2.2.1)
109
+ actionpack (= 5.2.2.1)
110
+ activesupport (= 5.2.2.1)
111
111
  method_source
112
112
  rake (>= 0.8.7)
113
- thor (>= 0.18.1, < 2.0)
113
+ thor (>= 0.19.0, < 2.0)
114
114
  rake (10.5.0)
115
115
  rest-client (2.0.2)
116
116
  http-cookie (>= 1.0.2, < 2.0)
@@ -123,7 +123,7 @@ GEM
123
123
  actionpack (>= 4.0)
124
124
  activesupport (>= 4.0)
125
125
  sprockets (>= 3.0.0)
126
- thor (0.20.0)
126
+ thor (0.20.3)
127
127
  thread_safe (0.3.6)
128
128
  tzinfo (1.2.5)
129
129
  thread_safe (~> 0.1)
@@ -144,4 +144,4 @@ DEPENDENCIES
144
144
  rake (~> 10.0)
145
145
 
146
146
  BUNDLED WITH
147
- 1.16.2
147
+ 1.17.3
data/README.md CHANGED
@@ -34,14 +34,18 @@ you can set-up qiniu storage service through the generated <tt>config/storage.ym
34
34
  more options. https://github.com/qiniu/ruby-sdk/blob/master/lib/qiniu/auth.rb#L49
35
35
 
36
36
  Then, in your application's configuration, you can specify the service to use like this:
37
+
37
38
  ```ruby
38
39
  config.active_storage.service = :qiniu
39
40
  ```
40
41
 
41
42
  Finally, config qiniu image and video analyzers.
42
43
 
43
- ```
44
- config.active_storage.analyzers = [ ActiveStorage::Analyzer::QiniuImageAnalyzer, ActiveStorage::Analyzer::QiniuVideoAnalyzer ]
44
+ ```ruby
45
+ config.active_storage.analyzers = [
46
+ ActiveStorage::Analyzer::QiniuImageAnalyzer,
47
+ ActiveStorage::Analyzer::QiniuVideoAnalyzer
48
+ ]
45
49
  ```
46
50
 
47
51
 
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "bundler", "~> 1.16"
24
24
  spec.add_development_dependency "rake", "~> 10.0"
25
25
  spec.add_development_dependency "minitest", "~> 5.0"
26
+ spec.add_runtime_dependency 'rails', '~> 5.1', '>= 5.1.6.2'
26
27
 
27
- spec.add_dependency 'rails', '~> 5.0'
28
28
  spec.add_dependency 'qiniu', '~> 6.9'
29
29
  end
@@ -40,7 +40,7 @@ module ActiveStorage
40
40
  @upload_options = options
41
41
  end
42
42
 
43
- def upload(key, io, checksum: nil)
43
+ def upload(key, io, checksum: nil, content_type: nil, **)
44
44
  instrument :upload, key: key, checksum: checksum do
45
45
  begin
46
46
  upload_method = io.respond_to?(:read) ? :upload_buffer_with_token : :upload_with_token_2
@@ -1,3 +1,3 @@
1
1
  module ActivestorageQiniu
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activestorage_qiniu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mycolorway
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-07-27 00:00:00.000000000 Z
12
+ date: 2019-03-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -59,14 +59,20 @@ dependencies:
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '5.0'
62
+ version: '5.1'
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: 5.1.6.2
63
66
  type: :runtime
64
67
  prerelease: false
65
68
  version_requirements: !ruby/object:Gem::Requirement
66
69
  requirements:
67
70
  - - "~>"
68
71
  - !ruby/object:Gem::Version
69
- version: '5.0'
72
+ version: '5.1'
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 5.1.6.2
70
76
  - !ruby/object:Gem::Dependency
71
77
  name: qiniu
72
78
  requirement: !ruby/object:Gem::Requirement
@@ -123,8 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
129
  - !ruby/object:Gem::Version
124
130
  version: '0'
125
131
  requirements: []
126
- rubyforge_project:
127
- rubygems_version: 2.7.6
132
+ rubygems_version: 3.0.3
128
133
  signing_key:
129
134
  specification_version: 4
130
135
  summary: Wraps the Qiniu Storage Service as an Active Storage service