aliyunoss 0.1.5 → 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: 876577d1a38f9218bd4951ff2edf9ea9ea4fd679e7d60bfb6f32308821090df4
4
- data.tar.gz: 6d152c72f42350eb65698504e94be2275432a0017a853271acb649892592e9df
3
+ metadata.gz: 27a8aba0b3a6c28353b3a374714c36d4dbd218642c88b8d7749741070a92a9e9
4
+ data.tar.gz: 1f0f17ed5b6197eb88ff6441fb53c6e80a9f488c1f843b47a5755f7cf4ba7ae1
5
5
  SHA512:
6
- metadata.gz: d7d29ed290b1fc7fe49d5c64e7033e10b9a51371a61d5c374e5c6e46ce6edb4457c4201930e3598b9ba397f1770f4b59824cfdcfe223fbd526c9c618ba099253
7
- data.tar.gz: 0f59b16131f8d43b2f361f3c8836daedf063e4df030990e4db05c109893cf4f0e7d47807dbfb99502d15e3fea90b47f34f43ebdadf71a2f2cb2ea7c81b40c84f
6
+ metadata.gz: d38c37eff0f428098e95045736a2de55e445719b9e9ba44d424f4dd9a27be3c4f943ee92bbcf6800b43ae4666b6a9141094a2630ef177e716ae2041382982419
7
+ data.tar.gz: 36c7268c9fc1311a37c769aef5b6b04566246cc147975cec9783d7ed5c932ee6bbec0f7b537e1be7e5d18756ada3a49887e9c074c440386d87700ab4d0020c3f
@@ -26,12 +26,12 @@ module Aliyun
26
26
  #
27
27
  def get_uri
28
28
  if @domain
29
- uri = URI("http://#{domain}/")
29
+ uri = URI("https://#{domain}/")
30
30
  else
31
31
  if @bucket
32
- uri = URI("http://#{bucket.name}.#{bucket.location}.#{host}")
32
+ uri = URI("https://#{bucket.name}.#{bucket.location}.#{host}")
33
33
  else
34
- uri = URI("http://oss.#{host}")
34
+ uri = URI("https://oss.#{host}")
35
35
  end
36
36
  end
37
37
  uri.path = @path
@@ -60,7 +60,7 @@ module Aliyun
60
60
  logger.info(verb.to_s.upcase + ' ' + uri.to_s + ' ' + request.to_hash.to_s)
61
61
 
62
62
  response = nil
63
- Net::HTTP.start(uri.host, uri.port) do |http|
63
+ Net::HTTP.start(uri.host, uri.port, :use_ssl => true) do |http|
64
64
  response = http.request(request)
65
65
  logger.info(response.code.to_s + ' ' + response.message)
66
66
  end
@@ -1,5 +1,5 @@
1
1
  module Aliyun
2
2
  module Oss
3
- VERSION = "0.1.5"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -16,7 +16,7 @@ describe 'Aliyun::Oss Configuration' do
16
16
  end
17
17
 
18
18
  it 'should accept configuration from #configure' do
19
- url = "http://bucket_name.region.aliyuncs.com"
19
+ url = "https://bucket_name.region.aliyuncs.com"
20
20
  access_key = "access_key_from_aliyun"
21
21
  Aliyun::Oss.configure(:access_key_id => access_key, :not_used_para => "not used")
22
22
  config = Aliyun::Oss.config
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aliyunoss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - yijiecc