qiniu 6.4.0 → 6.4.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/lib/qiniu/config.rb +3 -2
- data/lib/qiniu/version.rb +1 -1
- data/qiniu.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4eeb710e6f343396e13404866472015965e5fd65
|
4
|
+
data.tar.gz: c46ee9c1a75124ccd917a9550eeadd786269b83f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a29d15af5e99b89343b36065ec1dd5a74b386a09e12d1e6f4352fff3151c379972c5e594e84628f5ab0d671fef0e385ac6f2661dee2f4441ae093f5ef4c77859
|
7
|
+
data.tar.gz: 93b9c7bd1e54cf94c4a928b51f7a1b52b866f86767d5a4cf7b823dfd840535f6b81d247601d2e3b30f39f077fa94b5c65bd4bc14c4d17f06c1150fb805dbcdb6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
## CHANGE LOG
|
2
2
|
|
3
|
+
### v6.4.1
|
4
|
+
|
5
|
+
- 将 mime-types 的依赖版本升级到 2.4.3 。 [https://github.com/qiniu/ruby-sdk/pull/113](https://github.com/qiniu/ruby-sdk/pull/113)
|
6
|
+
|
3
7
|
### v6.4.0
|
4
8
|
|
5
9
|
- 为 put_with_put_policy() 添加 opts 参数,允许使用 :content_type 键指定上传文件的 mime type。 [https://github.com/qiniu/ruby-sdk/pull/111](https://github.com/qiniu/ruby-sdk/pull/111)
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/qiniu/config.rb
CHANGED
@@ -34,13 +34,14 @@ module Qiniu
|
|
34
34
|
:tmpdir => Dir.tmpdir + File::SEPARATOR + 'QiniuRuby'
|
35
35
|
}
|
36
36
|
|
37
|
-
REQUIRED_OPTION_KEYS = [:access_key, :secret_key]
|
37
|
+
REQUIRED_OPTION_KEYS = [:access_key, :secret_key, :up_host]
|
38
38
|
|
39
39
|
attr_reader :settings, :default_params
|
40
40
|
|
41
41
|
def load config_file
|
42
42
|
if File.exist?(config_file)
|
43
43
|
config_options = YAML.load_file(config_file)
|
44
|
+
config_options.symbolize_keys!
|
44
45
|
initialize_connect(config_options)
|
45
46
|
else
|
46
47
|
raise MissingConfError, config_file
|
@@ -48,7 +49,7 @@ module Qiniu
|
|
48
49
|
end
|
49
50
|
|
50
51
|
def initialize_connect options = {}
|
51
|
-
@settings = DEFAULT_OPTIONS.merge(options)
|
52
|
+
@settings = DEFAULT_OPTIONS.merge!(options)
|
52
53
|
REQUIRED_OPTION_KEYS.each do |opt|
|
53
54
|
raise MissingArgsError, [opt] unless @settings.has_key?(opt)
|
54
55
|
end
|
data/lib/qiniu/version.rb
CHANGED
data/qiniu.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
|
|
23
23
|
gem.add_development_dependency "fakeweb", "~> 1.3"
|
24
24
|
gem.add_runtime_dependency "json", "~> 1.7"
|
25
25
|
gem.add_runtime_dependency "rest-client", "~> 1.6"
|
26
|
-
gem.add_runtime_dependency "mime-types", "~>
|
26
|
+
gem.add_runtime_dependency "mime-types", "~> 2.4.3"
|
27
27
|
gem.add_runtime_dependency "ruby-hmac", "~> 0.4"
|
28
28
|
gem.add_runtime_dependency "jruby-openssl", "~> 0.7" if RUBY_PLATFORM == "java"
|
29
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qiniu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.4.
|
4
|
+
version: 6.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- why404
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-12-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -87,14 +87,14 @@ dependencies:
|
|
87
87
|
requirements:
|
88
88
|
- - ~>
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
90
|
+
version: 2.4.3
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - ~>
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
97
|
+
version: 2.4.3
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: ruby-hmac
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|