better_ross 0.1.1 → 0.1.2

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ross/client.rb +1 -4
  3. data/ross.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8abb939f0bed5e744be9d1e0f836a335d42e7f57
4
- data.tar.gz: 24e14f360a5099bc158fee61af5a4620a7b8d0b1
3
+ metadata.gz: ac6cdc0d309d56f1ddba15ec6bf8f9323ca22c44
4
+ data.tar.gz: 8e2852a21761c78e51da04af7d231642c6014cb5
5
5
  SHA512:
6
- metadata.gz: 29d6746e11edd056484e3d868d613155e6851dbc3d552d7941a4f902305ee6e61697e9c973b8ec53a1f307e081acfd0751eb1385ef24c0256d36bbd9f5c24574
7
- data.tar.gz: 9f5cafdbdeddddc2c1471d52c9b31e4d35b9c747974a7e35bc532f459501e5c30baa5b2a0a49fa95c9453478007572a1c3f36d83aa3bb50410ceb5a9bf667bf6
6
+ metadata.gz: 05065341d7b92e24fe4db7eb13cb922fab3d51fe11fa2ab7f75c3b76300001cc89b82a2d64033cea94d7c9c36e547dd1cc8cec237aa1e7b402d583eb5224a568
7
+ data.tar.gz: 2591099df6fe650f1e7d258782115d97729feaad141868f37c8c0a95639cd6c6b1e195d107edbed45187c7fa821f7aabe73d5f673892916f93dde02af12eafb0
data/lib/ross/client.rb CHANGED
@@ -10,10 +10,7 @@ module ROSS
10
10
  @bucket_name = options[:bucket_name]
11
11
  @appid = options[:appid]
12
12
  @appkey = options[:appkey]
13
- @aliyun_host = options[:bucket_host] || "oss.aliyuncs.com"
14
- if options[:aliyun_internal] == true
15
- @aliyun_host = "oss-internal.aliyuncs.com"
16
- end
13
+ @aliyun_host = options[:bucket_internal_host] || options[:bucket_host] || "oss.aliyuncs.com"
17
14
  end
18
15
 
19
16
  def put(path, content, options={}, xoss = {})
data/ross.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'better_ross'
4
- s.version = '0.1.1'
4
+ s.version = '0.1.2'
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.summary = "ROSS is a ruby client for aliyun oss"
7
7
  s.authors = ["Fizz Wu", "Binz"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better_ross
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fizz Wu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-28 00:00:00.000000000 Z
12
+ date: 2015-09-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client