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
902baa2e
Commit
902baa2e
authored
Jan 28, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trick rubocop and temporarily add ruby 2.1 images for any branch
parent
ca171b81
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
12 deletions
+14
-12
.gitlab-ci.yml
.gitlab-ci.yml
+6
-4
app/helpers/commits_helper.rb
app/helpers/commits_helper.rb
+1
-1
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+1
-1
spec/models/concerns/case_sensitivity_spec.rb
spec/models/concerns/case_sensitivity_spec.rb
+6
-6
No files found.
.gitlab-ci.yml
View file @
902baa2e
...
@@ -145,8 +145,9 @@ spec:ruby21:
...
@@ -145,8 +145,9 @@ spec:ruby21:
tags
:
tags
:
-
ruby
-
ruby
-
mysql
-
mysql
only
:
# TODO: put this back after testing
-
master
# only:
# - master
spinach:ruby21:
spinach:ruby21:
image
:
ruby:2.1
image
:
ruby:2.1
...
@@ -155,5 +156,6 @@ spinach:ruby21:
...
@@ -155,5 +156,6 @@ spinach:ruby21:
tags
:
tags
:
-
ruby
-
ruby
-
mysql
-
mysql
only
:
# TODO: put this back after testing
-
master
# only:
# - master
app/helpers/commits_helper.rb
View file @
902baa2e
...
@@ -152,7 +152,7 @@ module CommitsHelper
...
@@ -152,7 +152,7 @@ module CommitsHelper
options
=
{
options
=
{
class:
"commit-
#{
options
[
:source
]
}
-link has_tooltip"
,
class:
"commit-
#{
options
[
:source
]
}
-link has_tooltip"
,
data:
{
'original-title'
:
sanitize
(
source_email
)
}
data:
{
'original-title'
.
to_sym
=>
sanitize
(
source_email
)
}
}
}
if
user
.
nil?
if
user
.
nil?
...
...
app/helpers/projects_helper.rb
View file @
902baa2e
...
@@ -40,7 +40,7 @@ module ProjectsHelper
...
@@ -40,7 +40,7 @@ module ProjectsHelper
link_to
(
author_html
,
user_path
(
author
),
class:
"author_link"
).
html_safe
link_to
(
author_html
,
user_path
(
author
),
class:
"author_link"
).
html_safe
else
else
title
=
opts
[
:title
].
sub
(
":name"
,
sanitize
(
author
.
name
))
title
=
opts
[
:title
].
sub
(
":name"
,
sanitize
(
author
.
name
))
link_to
(
author_html
,
user_path
(
author
),
class:
"author_link has_tooltip"
,
data:
{
'original-title'
:
title
,
container:
'body'
}
).
html_safe
link_to
(
author_html
,
user_path
(
author
),
class:
"author_link has_tooltip"
,
data:
{
'original-title'
.
to_sym
=>
title
,
container:
'body'
}
).
html_safe
end
end
end
end
...
...
spec/models/concerns/case_sensitivity_spec.rb
View file @
902baa2e
...
@@ -37,7 +37,7 @@ describe CaseSensitivity, models: true do
...
@@ -37,7 +37,7 @@ describe CaseSensitivity, models: true do
with
(
%q{LOWER("foo"."bar") = LOWER(:value)}
,
value:
'bar'
).
with
(
%q{LOWER("foo"."bar") = LOWER(:value)}
,
value:
'bar'
).
and_return
(
criteria
)
and_return
(
criteria
)
expect
(
model
.
iwhere
(
'foo.bar'
:
'bar'
)).
to
eq
(
criteria
)
expect
(
model
.
iwhere
(
'foo.bar'
.
to_sym
=>
'bar'
)).
to
eq
(
criteria
)
end
end
end
end
...
@@ -87,8 +87,8 @@ describe CaseSensitivity, models: true do
...
@@ -87,8 +87,8 @@ describe CaseSensitivity, models: true do
with
(
%q{LOWER("foo"."baz") = LOWER(:value)}
,
value:
'baz'
).
with
(
%q{LOWER("foo"."baz") = LOWER(:value)}
,
value:
'baz'
).
and_return
(
final
)
and_return
(
final
)
got
=
model
.
iwhere
(
'foo.bar'
:
'bar'
,
got
=
model
.
iwhere
(
'foo.bar'
.
to_sym
=>
'bar'
,
'foo.baz'
:
'baz'
)
'foo.baz'
.
to_sym
=>
'baz'
)
expect
(
got
).
to
eq
(
final
)
expect
(
got
).
to
eq
(
final
)
end
end
...
@@ -127,7 +127,7 @@ describe CaseSensitivity, models: true do
...
@@ -127,7 +127,7 @@ describe CaseSensitivity, models: true do
with
(
%q{`foo`.`bar` = :value}
,
value:
'bar'
).
with
(
%q{`foo`.`bar` = :value}
,
value:
'bar'
).
and_return
(
criteria
)
and_return
(
criteria
)
expect
(
model
.
iwhere
(
'foo.bar'
:
'bar'
)).
expect
(
model
.
iwhere
(
'foo.bar'
.
to_sym
=>
'bar'
)).
to
eq
(
criteria
)
to
eq
(
criteria
)
end
end
end
end
...
@@ -178,8 +178,8 @@ describe CaseSensitivity, models: true do
...
@@ -178,8 +178,8 @@ describe CaseSensitivity, models: true do
with
(
%q{`foo`.`baz` = :value}
,
value:
'baz'
).
with
(
%q{`foo`.`baz` = :value}
,
value:
'baz'
).
and_return
(
final
)
and_return
(
final
)
got
=
model
.
iwhere
(
'foo.bar'
:
'bar'
,
got
=
model
.
iwhere
(
'foo.bar'
.
to_sym
=>
'bar'
,
'foo.baz'
:
'baz'
)
'foo.baz'
.
to_sym
=>
'baz'
)
expect
(
got
).
to
eq
(
final
)
expect
(
got
).
to
eq
(
final
)
end
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