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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
7d48205c
Commit
7d48205c
authored
Feb 02, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rubocop: comment indentation
parent
7558fe98
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 deletions
+16
-8
.rubocop.yml
.rubocop.yml
+1
-1
app/helpers/notes_helper.rb
app/helpers/notes_helper.rb
+1
-1
config/initializers/carrierwave.rb
config/initializers/carrierwave.rb
+13
-5
lib/gitlab/git_access.rb
lib/gitlab/git_access.rb
+1
-1
No files found.
.rubocop.yml
View file @
7d48205c
...
@@ -140,7 +140,7 @@ Style/CommentAnnotation:
...
@@ -140,7 +140,7 @@ Style/CommentAnnotation:
Style/CommentIndentation
:
Style/CommentIndentation
:
Description
:
'
Indentation
of
comments.'
Description
:
'
Indentation
of
comments.'
Enabled
:
fals
e
Enabled
:
tru
e
Style/ConstantName
:
Style/ConstantName
:
Description
:
'
Constants
should
use
SCREAMING_SNAKE_CASE.'
Description
:
'
Constants
should
use
SCREAMING_SNAKE_CASE.'
...
...
app/helpers/notes_helper.rb
View file @
7d48205c
config/initializers/carrierwave.rb
View file @
7d48205c
...
@@ -12,11 +12,19 @@ if File.exists?(aws_file)
...
@@ -12,11 +12,19 @@ if File.exists?(aws_file)
aws_secret_access_key:
AWS_CONFIG
[
'secret_access_key'
],
# required
aws_secret_access_key:
AWS_CONFIG
[
'secret_access_key'
],
# required
region:
AWS_CONFIG
[
'region'
],
# optional, defaults to 'us-east-1'
region:
AWS_CONFIG
[
'region'
],
# optional, defaults to 'us-east-1'
}
}
config
.
fog_directory
=
AWS_CONFIG
[
'bucket'
]
# required
config
.
fog_public
=
false
# optional, defaults to true
# required
config
.
fog_attributes
=
{
'Cache-Control'
=>
'max-age=315576000'
}
# optional, defaults to {}
config
.
fog_directory
=
AWS_CONFIG
[
'bucket'
]
config
.
fog_authenticated_url_expiration
=
1
<<
29
# optional time (in seconds) that authenticated urls will be valid.
# optional, defaults to true
config
.
fog_public
=
false
# optional, defaults to {}
config
.
fog_attributes
=
{
'Cache-Control'
=>
'max-age=315576000'
}
# optional time (in seconds) that authenticated urls will be valid.
# when fog_public is false and provider is AWS or Google, defaults to 600
# when fog_public is false and provider is AWS or Google, defaults to 600
config
.
fog_authenticated_url_expiration
=
1
<<
29
end
end
# Mocking Fog requests, based on: https://github.com/carrierwaveuploader/carrierwave/wiki/How-to%3A-Test-Fog-based-uploaders
# Mocking Fog requests, based on: https://github.com/carrierwaveuploader/carrierwave/wiki/How-to%3A-Test-Fog-based-uploaders
...
...
lib/gitlab/git_access.rb
View file @
7d48205c
...
@@ -113,8 +113,8 @@ module Gitlab
...
@@ -113,8 +113,8 @@ module Gitlab
# we dont allow force push to protected branch
# we dont allow force push to protected branch
if
forced_push?
(
project
,
oldrev
,
newrev
)
if
forced_push?
(
project
,
oldrev
,
newrev
)
:force_push_code_to_protected_branches
:force_push_code_to_protected_branches
# and we dont allow remove of protected branch
elsif
newrev
==
Gitlab
::
Git
::
BLANK_SHA
elsif
newrev
==
Gitlab
::
Git
::
BLANK_SHA
# and we dont allow remove of protected branch
:remove_protected_branches
:remove_protected_branches
elsif
project
.
developers_can_push_to_protected_branch?
(
branch_name
)
elsif
project
.
developers_can_push_to_protected_branch?
(
branch_name
)
:push_code
:push_code
...
...
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