Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
aliyun_log_ruby_sdk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gems
aliyun_log_ruby_sdk
Commits
3c26e88e
Commit
3c26e88e
authored
Nov 06, 2018
by
陈雨佳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code style
parent
1d413aa1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
.editorconfig
+12
-0
lib/aliyun_log_ruby_sdk/headers.rb
+4
-4
lib/aliyun_log_ruby_sdk/log_store.rb
+1
-1
No files found.
.editorconfig
0 → 100644
View file @
3c26e88e
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
lib/aliyun_log_ruby_sdk/headers.rb
View file @
3c26e88e
...
...
@@ -24,11 +24,11 @@ module AliyunLogRubySdk
body
=
options
[
:body
]
if
body
.
present?
@headers
[
'Content-Length'
]
=
body
.
bytesize
.
to_s
@headers
[
'Content-MD5'
]
=
calculate_md5
(
body
)
@headers
[
'Content-Length'
]
=
body
.
bytesize
.
to_s
@headers
[
'Content-MD5'
]
=
calculate_md5
(
body
)
else
@headers
[
'Content-Length'
]
=
'0'
@headers
[
'x-log-bodyrawsize'
]
=
'0'
@headers
[
'Content-Length'
]
=
'0'
@headers
[
'x-log-bodyrawsize'
]
=
'0'
end
@headers
[
'Authorization'
]
=
authorization
...
...
lib/aliyun_log_ruby_sdk/log_store.rb
View file @
3c26e88e
...
...
@@ -15,7 +15,7 @@ module AliyunLogRubySdk
def
delete_log_store
(
options
=
{})
raise
NotImplementedError
# delete("/logstores/#{log_store_name}", options)
# delete("/logstores/#{log_store_name}", options)
end
def
get_log_store
(
options
=
{})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment