qiniu-rs 3.0.3 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qiniu-rs (3.0.3)
5
- json (~> 1.7.3)
4
+ qiniu-rs (3.0.4)
5
+ json (~> 1.7.5)
6
6
  mime-types (~> 1.19)
7
7
  rest-client (~> 1.6.7)
8
8
  ruby-hmac (~> 0.4.0)
@@ -12,7 +12,7 @@ GEM
12
12
  specs:
13
13
  diff-lcs (1.1.3)
14
14
  fakeweb (1.3.0)
15
- json (1.7.4)
15
+ json (1.7.5)
16
16
  mime-types (1.19)
17
17
  rake (0.9.2.2)
18
18
  rest-client (1.6.7)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Qiniu
4
4
  module RS
5
- VERSION = "3.0.3"
5
+ VERSION = "3.0.4"
6
6
  end
7
7
  end
@@ -14,7 +14,7 @@ module Qiniu
14
14
 
15
15
  def initialize(opts = {})
16
16
  @scope = opts[:scope]
17
- @expires_in = opts[:expires_in]
17
+ @expires_in = opts[:expires_in] || 3600
18
18
  @callback_url = opts[:callback_url]
19
19
  @callback_body_type = opts[:callback_body_type]
20
20
  @customer = opts[:customer]
data/qiniu-rs.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
20
20
  gem.add_development_dependency "rake", "~> 0.9"
21
21
  gem.add_development_dependency "rspec", "~> 2.11"
22
22
  gem.add_development_dependency "fakeweb", "~> 1.3.0"
23
- gem.add_runtime_dependency "json", "~> 1.7.3"
23
+ gem.add_runtime_dependency "json", "~> 1.7.5"
24
24
  gem.add_runtime_dependency "rest-client", "~> 1.6.7"
25
25
  gem.add_runtime_dependency "mime-types", "~> 1.19"
26
26
  gem.add_runtime_dependency "ruby-hmac", "~> 0.4.0"
@@ -115,7 +115,7 @@ module Qiniu
115
115
 
116
116
  context ".upload_file" do
117
117
  it "should works" do
118
- uptoken_opts = {:scope => @bucket, :expires_in => 3600}
118
+ uptoken_opts = {:scope => @bucket}
119
119
  upload_opts = {
120
120
  :uptoken => Qiniu::RS.generate_upload_token(uptoken_opts),
121
121
  :file => __FILE__,
data/spec/spec_helper.rb CHANGED
@@ -6,11 +6,6 @@ require 'rspec'
6
6
 
7
7
  RSpec.configure do |config|
8
8
  config.before :all do
9
- #=begin
10
- Qiniu::RS.establish_connection! :access_key => "3fPHl_SLkPXdioqI_A8_NGngPWVJhlDk2ktRjogH",
11
- :secret_key => "bXTPMDJrVYRJUiSDRFtFYwycVD_mjXxYWrCYlDHy",
12
- #=end
13
- =begin
14
9
  Qiniu::RS.establish_connection! :access_key => "bE21M6FW9V7zAFrBY5psgKOKJQLiBj12qMWTpc57",
15
10
  :secret_key => "uMo7Nyq_eDK_CuQ8_FYCxoTHQZqjiaPh-cbiKO7L",
16
11
  :auth_url => "http://m1.qbox.me:13001/oauth2/token",
@@ -19,6 +14,5 @@ RSpec.configure do |config|
19
14
  :up_host => "http://m1.qbox.me:13019",
20
15
  :pub_host => "http://m1.qbox.me:13012",
21
16
  :eu_host => "http://m1.qbox.me:13050"
22
- =end
23
17
  end
24
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qiniu-rs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-17 00:00:00.000000000 Z
12
+ date: 2012-08-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -66,7 +66,7 @@ dependencies:
66
66
  requirements:
67
67
  - - ~>
68
68
  - !ruby/object:Gem::Version
69
- version: 1.7.3
69
+ version: 1.7.5
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,7 +74,7 @@ dependencies:
74
74
  requirements:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
- version: 1.7.3
77
+ version: 1.7.5
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: rest-client
80
80
  requirement: !ruby/object:Gem::Requirement
@@ -181,7 +181,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
181
181
  version: '0'
182
182
  segments:
183
183
  - 0
184
- hash: -762983906388000240
184
+ hash: 3686017908626256653
185
185
  required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  none: false
187
187
  requirements:
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  version: '0'
191
191
  segments:
192
192
  - 0
193
- hash: -762983906388000240
193
+ hash: 3686017908626256653
194
194
  requirements: []
195
195
  rubyforge_project:
196
196
  rubygems_version: 1.8.24