BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
de008127
Commit
de008127
authored
May 04, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bearer token support
parent
e1c8663a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
client.rb
lib/image_registry/client.rb
+1
-1
repository.rb
lib/image_registry/repository.rb
+1
-1
No files found.
lib/image_registry/client.rb
View file @
de008127
...
...
@@ -19,7 +19,7 @@ module ImageRegistry
if
options
[
:user
]
&&
options
[
:password
]
builder
.
request
(
:basic_auth
,
options
[
:user
].
to_s
,
options
[
:password
].
to_s
)
elsif
options
[
:token
]
builder
.
request
(
:auth
entication
,
:B
earer
,
options
[
:token
].
to_s
)
builder
.
request
(
:auth
orization
,
:b
earer
,
options
[
:token
].
to_s
)
end
builder
.
adapter
:net_http
...
...
lib/image_registry/repository.rb
View file @
de008127
...
...
@@ -25,7 +25,7 @@ module ImageRegistry
def
tags
return
@tags
if
defined?
(
@tags
)
return
unless
manifest
&&
manifest
[
'tags'
]
return
[]
unless
manifest
&&
manifest
[
'tags'
]
@tags
=
manifest
[
'tags'
].
map
do
|
tag
|
ImageRegistry
::
Tag
.
new
(
self
,
tag
)
end
...
...
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