Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
483ff195
Commit
483ff195
authored
Feb 13, 2018
by
Micaël Bergeron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvements from feedback
parent
d82cc493
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
config/initializers/fog_google_https_private_urls.rb
config/initializers/fog_google_https_private_urls.rb
+4
-1
spec/initializers/fog_google_https_private_urls_spec.rb
spec/initializers/fog_google_https_private_urls_spec.rb
+1
-1
No files found.
config/initializers/fog_google_https_private_urls.rb
View file @
483ff195
#
# Monkey patching the https support for private urls
# See https://gitlab.com/gitlab-org/gitlab-ee/issues/4879
#
module
Fog
module
Fog
module
Storage
module
Storage
class
GoogleXML
class
GoogleXML
class
File
<
Fog
::
Model
class
File
<
Fog
::
Model
module
MonkeyPatch
module
MonkeyPatch
# Monkey patch this to use `get_https_url`
def
url
(
expires
)
def
url
(
expires
)
requires
:key
requires
:key
collection
.
get_https_url
(
key
,
expires
)
collection
.
get_https_url
(
key
,
expires
)
...
...
spec/initializers/fog_google_https_private_urls_spec.rb
View file @
483ff195
require
'spec_helper'
require
'spec_helper'
describe
Fog
::
Storage
::
GoogleXML
::
File
do
describe
'Fog::Storage::GoogleXML::File'
do
let
(
:storage
)
do
let
(
:storage
)
do
Fog
.
mock!
Fog
.
mock!
Fog
::
Storage
.
new
({
Fog
::
Storage
.
new
({
...
...
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