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
09305bfe
Commit
09305bfe
authored
Oct 07, 2019
by
gfyoung
Committed by
Thong Kuah
Oct 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn on frozen string cop for ee/spec
Follow-up to:
https://gitlab.com/gitlab-org/gitlab/merge_requests/17754
parent
2cb2352d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
3 deletions
+8
-3
.rubocop.yml
.rubocop.yml
+0
-1
ee/lib/csv_builder.rb
ee/lib/csv_builder.rb
+1
-1
ee/lib/gitlab/jira/middleware.rb
ee/lib/gitlab/jira/middleware.rb
+3
-1
ee/spec/lib/csv_builder_spec.rb
ee/spec/lib/csv_builder_spec.rb
+2
-0
ee/spec/lib/gitlab/jira/middleware_spec.rb
ee/spec/lib/gitlab/jira/middleware_spec.rb
+2
-0
ee/spec/policies/issue_policy_spec.rb
ee/spec/policies/issue_policy_spec.rb
+0
-0
No files found.
.rubocop.yml
View file @
09305bfe
...
@@ -51,7 +51,6 @@ Style/FrozenStringLiteralComment:
...
@@ -51,7 +51,6 @@ Style/FrozenStringLiteralComment:
-
'
danger/**/*'
-
'
danger/**/*'
-
'
db/**/*'
-
'
db/**/*'
-
'
ee/db/**/*'
-
'
ee/db/**/*'
-
'
ee/spec/**/*'
-
'
ee/lib/tasks/**/*'
-
'
ee/lib/tasks/**/*'
-
'
lib/tasks/**/*'
-
'
lib/tasks/**/*'
-
'
qa/**/*'
-
'
qa/**/*'
...
...
ee/lib/csv_builder.rb
View file @
09305bfe
...
@@ -104,7 +104,7 @@ class CsvBuilder
...
@@ -104,7 +104,7 @@ class CsvBuilder
def
excel_sanitize
(
line
)
def
excel_sanitize
(
line
)
return
if
line
.
nil?
return
if
line
.
nil?
line
.
prepend
(
"'"
)
if
line
=~
/^[=\+\-@;]/
line
=
[
"'"
,
line
].
join
if
line
=~
/^[=\+\-@;]/
line
line
end
end
end
end
ee/lib/gitlab/jira/middleware.rb
View file @
09305bfe
...
@@ -12,7 +12,9 @@ module Gitlab
...
@@ -12,7 +12,9 @@ module Gitlab
end
end
def
call
(
env
)
def
call
(
env
)
env
[
'HTTP_AUTHORIZATION'
]
&
.
sub!
(
'token'
,
'Bearer'
)
if
self
.
class
.
jira_dvcs_connector?
(
env
)
if
self
.
class
.
jira_dvcs_connector?
(
env
)
env
[
'HTTP_AUTHORIZATION'
]
=
env
[
'HTTP_AUTHORIZATION'
]
&
.
sub
(
'token'
,
'Bearer'
)
end
@app
.
call
(
env
)
@app
.
call
(
env
)
end
end
...
...
ee/spec/lib/csv_builder_spec.rb
View file @
09305bfe
# frozen_string_literal: true
require
'spec_helper'
require
'spec_helper'
describe
CsvBuilder
do
describe
CsvBuilder
do
...
...
ee/spec/lib/gitlab/jira/middleware_spec.rb
View file @
09305bfe
# frozen_string_literal: true
require
'spec_helper'
require
'spec_helper'
describe
Gitlab
::
Jira
::
Middleware
do
describe
Gitlab
::
Jira
::
Middleware
do
...
...
ee/spec/policies/issue_policy_spec.rb
deleted
100644 → 0
View file @
2cb2352d
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