aliyun-log 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 56b9e06d07673323179dae69adadfc8a6dc8518800181af620b31dfe13e5d11d
4
- data.tar.gz: 6d17a1f90049d299362b5fa8961b5a2befa56b93e12a07b4fb15fb65bdc914f0
3
+ metadata.gz: d8548cc01c3f9ed8368bb2e42d4436e9914b639d7c960ae652d0f851ff9c6f17
4
+ data.tar.gz: 59e47e2e014ec9f666fa3a105b0e03be82957b326747b122502cf8b593ac4c2d
5
5
  SHA512:
6
- metadata.gz: 265b850b91106ed251fbc1deda94b4f9138f4c055e703be864b99cbb156e3a90583d6da29b5f15e3a4210fd75e89470b7d5281d52573b6a0dd4d8ec6613006cb
7
- data.tar.gz: 7aca9990743677faa1863a34f2ce75bf66c357f6f177f8330de45a58ae7280ebaf6411856746b7566c64519f579ae37f5ef4e0ebd52253cf4a222ae348e90e07
6
+ metadata.gz: 0bfb7b4e14d983c8e8e88bc3a5f217575928100a5c523e93588e1db816ddb37698b39e1d972d6b129f3aeddb7f66799e1b9531e58de6d7f0c43853a7065ef6a8
7
+ data.tar.gz: 6b4c05758679915c6c7aa8f4ac7cc1786e551c361a40d846694b5907edf3d09a2c50ac26410b29437966e2c1fa9df5d2ba8310ffe8f8f9ba7c5603dabc048794
@@ -29,6 +29,7 @@ module Aliyun
29
29
  @access_key_secret ||= self.class.access_key_secret
30
30
  @endpoint ||= self.class.endpoint
31
31
  normalize_endpoint
32
+ raise 'Missing AccessKeyID or AccessKeySecret' if @access_key_id.nil? || @access_key_secret.nil?
32
33
  end
33
34
 
34
35
  private
@@ -20,10 +20,10 @@ module Aliyun
20
20
  resources ||= {}
21
21
  res = '/'
22
22
  if resources[:logstore]
23
- res << 'logstores'
24
- res << "/#{resources[:logstore]}" unless resources[:logstore].empty?
23
+ res = "#{res}logstores"
24
+ res = "#{res}/#{resources[:logstore]}" unless resources[:logstore].empty?
25
25
  end
26
- res << "/#{resources[:action]}" if resources[:action]
26
+ res = "#{res}/#{resources[:action]}" if resources[:action]
27
27
  res
28
28
  end
29
29
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Aliyun
4
4
  module Log
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aliyun-log
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
  - Yingce Liu