qiniu 6.4.0 → 6.4.1

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
  SHA1:
3
- metadata.gz: 904dd3defbe758fc4ee3e823983e417179a91ee8
4
- data.tar.gz: 5bb0b1ce13cca8bd025424d01a9b13f162d2c391
3
+ metadata.gz: 4eeb710e6f343396e13404866472015965e5fd65
4
+ data.tar.gz: c46ee9c1a75124ccd917a9550eeadd786269b83f
5
5
  SHA512:
6
- metadata.gz: 2a26f6c5a2ed13eb534e0d43bb0a0ce90be118564143f235b3f9d5c7b55659dba211a596e59a76d85fa07651b2f2cd7eaba9c554fe8fdd21b19e2b1f43ff2eaf
7
- data.tar.gz: 2e22236452c242c657b2a726eda091fc9a564210b9f52ea2111470b2422bc2a223e561c3548993c430fde0d24791cba6377bf625b1515513ebd309f25a4657dd
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
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qiniu (6.4.0)
4
+ qiniu (6.4.1)
5
5
  json (~> 1.7)
6
- mime-types (~> 1.19)
6
+ mime-types (~> 2.4.3)
7
7
  rest-client (~> 1.6)
8
8
  ruby-hmac (~> 0.4)
9
9
 
data/README.md CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
  在您 Ruby 应用程序的 `Gemfile` 文件中,添加如下一行代码:
17
17
 
18
- gem 'qiniu', '~> 6.3.1'
18
+ gem 'qiniu', '~> 6.4.1'
19
19
 
20
20
  然后,在应用程序所在的目录下,可以运行 `bundle` 安装依赖包:
21
21
 
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
@@ -4,7 +4,7 @@ module Qiniu
4
4
  module Version
5
5
  MAJOR = 6
6
6
  MINOR = 4
7
- PATCH = 0
7
+ PATCH = 1
8
8
  # Returns a version string by joining <tt>MAJOR</tt>, <tt>MINOR</tt>, and <tt>PATCH</tt> with <tt>'.'</tt>
9
9
  #
10
10
  # Example
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", "~> 1.19"
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.0
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-11-28 00:00:00.000000000 Z
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: '1.19'
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: '1.19'
97
+ version: 2.4.3
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: ruby-hmac
100
100
  requirement: !ruby/object:Gem::Requirement