qiniu 6.6.0 → 6.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +31 -3
- data/README.md +21 -15
- data/lib/qiniu.rb +27 -36
- data/lib/qiniu/auth.rb +21 -14
- data/lib/qiniu/config.rb +77 -28
- data/lib/qiniu/host_manager.rb +104 -0
- data/lib/qiniu/management.rb +6 -18
- data/lib/qiniu/pfop.rb +4 -7
- data/lib/qiniu/resumable_upload.rb +10 -8
- data/lib/qiniu/tokens/access_token.rb +3 -4
- data/lib/qiniu/tokens/upload_token.rb +3 -1
- data/lib/qiniu/upload.rb +11 -3
- data/lib/qiniu/utils.rb +0 -1
- data/lib/qiniu/version.rb +2 -2
- data/spec/qiniu/auth_spec.rb +29 -12
- data/spec/qiniu/image_spec.rb +31 -35
- data/spec/qiniu/management_spec.rb +54 -46
- data/spec/qiniu/pfop_spec.rb +6 -6
- data/spec/qiniu/qiniu_spec.rb +46 -71
- data/spec/qiniu/upload_spec.rb +105 -72
- data/spec/qiniu/utils_spec.rb +9 -13
- data/spec/spec_helper.rb +13 -0
- metadata +62 -60
- data/.gitignore +0 -18
- data/.rspec +0 -1
- data/.travis.yml +0 -12
- data/Gemfile +0 -8
- data/Gemfile.lock +0 -45
- data/Rakefile +0 -21
- data/docs/README.md +0 -790
- data/qiniu.gemspec +0 -29
- data/rails3/Gemfile +0 -4
- data/rails3/qiniu.gemspec +0 -29
- data/spec/qiniu/image_logo_for_test.png +0 -0
data/qiniu.gemspec
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
require File.expand_path('../lib/qiniu/version', __FILE__)
|
4
|
-
|
5
|
-
Gem::Specification.new do |gem|
|
6
|
-
gem.authors = ["why404","BluntBlade"]
|
7
|
-
gem.email = ["sdk@qiniu.com"]
|
8
|
-
gem.description = %q{Qiniu Resource (Cloud) Storage SDK for Ruby. See: http://developer.qiniu.com/docs/v6/sdk/ruby-sdk.html}
|
9
|
-
gem.summary = %q{Qiniu Resource (Cloud) Storage SDK for Ruby}
|
10
|
-
gem.homepage = "https://github.com/qiniu/ruby-sdk"
|
11
|
-
|
12
|
-
gem.files = `git ls-files`.split($\)
|
13
|
-
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
14
|
-
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
15
|
-
gem.name = "qiniu"
|
16
|
-
gem.require_paths = ["lib"]
|
17
|
-
gem.version = Qiniu::Version.to_s
|
18
|
-
gem.license = "MIT"
|
19
|
-
|
20
|
-
# specify any dependencies here; for example:
|
21
|
-
gem.add_development_dependency "rake", ">= 0.9"
|
22
|
-
gem.add_development_dependency "rspec", ">= 2.11"
|
23
|
-
gem.add_development_dependency "fakeweb", "~> 1.3"
|
24
|
-
gem.add_runtime_dependency "json", "~> 1.8"
|
25
|
-
gem.add_runtime_dependency "rest-client", "~> 1.8.0"
|
26
|
-
gem.add_runtime_dependency "mime-types", "~> 2.4.3"
|
27
|
-
gem.add_runtime_dependency "ruby-hmac", "~> 0.4"
|
28
|
-
gem.add_runtime_dependency "jruby-openssl", "~> 0.7" if RUBY_PLATFORM == "java"
|
29
|
-
end
|
data/rails3/Gemfile
DELETED
data/rails3/qiniu.gemspec
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
require File.expand_path('../../lib/qiniu/version', __FILE__)
|
4
|
-
|
5
|
-
Gem::Specification.new do |gem|
|
6
|
-
gem.authors = ["why404","BluntBlade"]
|
7
|
-
gem.email = ["sdk@qiniu.com"]
|
8
|
-
gem.description = %q{Qiniu Resource (Cloud) Storage SDK for Ruby. See: http://developer.qiniu.com/docs/v6/sdk/ruby-sdk.html}
|
9
|
-
gem.summary = %q{Qiniu Resource (Cloud) Storage SDK for Ruby}
|
10
|
-
gem.homepage = "https://github.com/qiniu/ruby-sdk"
|
11
|
-
|
12
|
-
gem.files = `git ls-files`.split($\)
|
13
|
-
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
14
|
-
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
15
|
-
gem.name = "qiniu"
|
16
|
-
gem.require_paths = ["lib"]
|
17
|
-
gem.version = Qiniu::Version.to_s
|
18
|
-
gem.license = "MIT"
|
19
|
-
|
20
|
-
# specify any dependencies here; for example:
|
21
|
-
gem.add_development_dependency "rake", ">= 0.9"
|
22
|
-
gem.add_development_dependency "rspec", ">= 2.11"
|
23
|
-
gem.add_development_dependency "fakeweb", "~> 1.3"
|
24
|
-
gem.add_runtime_dependency "json", "~> 1.8"
|
25
|
-
gem.add_runtime_dependency "rest-client", "~> 1.8.0"
|
26
|
-
gem.add_runtime_dependency "mime-types", "~> 1.19"
|
27
|
-
gem.add_runtime_dependency "ruby-hmac", "~> 0.4"
|
28
|
-
gem.add_runtime_dependency "jruby-openssl", "~> 0.7" if RUBY_PLATFORM == "java"
|
29
|
-
end
|
Binary file
|