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
8da908f3
Commit
8da908f3
authored
Sep 28, 2020
by
Lucas Charles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Ruby 2.7 deprecations
Relates to
https://gitlab.com/gitlab-org/gitlab/-/issues/257438
parent
b06f1cdd
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
9 deletions
+7
-9
ee/lib/api/visual_review_discussions.rb
ee/lib/api/visual_review_discussions.rb
+2
-4
lib/api/helpers/packages_helpers.rb
lib/api/helpers/packages_helpers.rb
+1
-1
lib/api/helpers/presentable.rb
lib/api/helpers/presentable.rb
+1
-1
lib/api/nuget_packages.rb
lib/api/nuget_packages.rb
+1
-1
lib/api/project_export.rb
lib/api/project_export.rb
+1
-1
lib/api/v3/github.rb
lib/api/v3/github.rb
+1
-1
No files found.
ee/lib/api/visual_review_discussions.rb
View file @
8da908f3
...
...
@@ -41,10 +41,8 @@ module API
note
=
::
Notes
::
CreateVisualReviewService
.
new
(
merge_request
,
current_user
,
{
body:
params
[
:body
],
position:
params
[
:position
]
}
body:
params
[
:body
],
position:
params
[
:position
]
).
execute
if
note
.
valid?
...
...
lib/api/helpers/packages_helpers.rb
View file @
8da908f3
...
...
@@ -40,7 +40,7 @@ module API
params
=
{
has_length:
has_length
}
params
[
:maximum_size
]
=
maximum_size
unless
has_length
::
Packages
::
PackageFileUploader
.
workhorse_authorize
(
params
)
::
Packages
::
PackageFileUploader
.
workhorse_authorize
(
**
params
)
end
def
authorize_upload!
(
subject
=
user_project
)
...
...
lib/api/helpers/presentable.rb
View file @
8da908f3
...
...
@@ -23,7 +23,7 @@ module API
def
initialize
(
object
,
options
=
{})
options
=
options
.
opts_hash
if
options
.
is_a?
(
Grape
::
Entity
::
Options
)
super
(
object
.
present
(
options
),
options
)
super
(
object
.
present
(
options
),
**
options
)
end
end
end
...
...
lib/api/nuget_packages.rb
View file @
8da908f3
...
...
@@ -42,7 +42,7 @@ module API
def
package_finder
(
finder_params
=
{})
::
Packages
::
Nuget
::
PackageFinder
.
new
(
authorized_user_project
,
finder_params
.
merge
(
package_name:
params
[
:package_name
])
**
finder_params
.
merge
(
package_name:
params
[
:package_name
])
)
end
end
...
...
lib/api/project_export.rb
View file @
8da908f3
...
...
@@ -55,7 +55,7 @@ module API
export_strategy
=
if
after_export_params
[
:url
].
present?
params
=
after_export_params
.
slice
(
:url
,
:http_method
).
symbolize_keys
Gitlab
::
ImportExport
::
AfterExportStrategies
::
WebUploadStrategy
.
new
(
params
)
Gitlab
::
ImportExport
::
AfterExportStrategies
::
WebUploadStrategy
.
new
(
**
params
)
end
if
export_strategy
&
.
invalid?
...
...
lib/api/v3/github.rb
View file @
8da908f3
...
...
@@ -51,7 +51,7 @@ module API
def
find_project_with_access
(
params
)
project
=
find_project!
(
::
Gitlab
::
Jira
::
Dvcs
.
restore_full_path
(
params
.
slice
(
:namespace
,
:project
).
symbolize_keys
)
::
Gitlab
::
Jira
::
Dvcs
.
restore_full_path
(
**
params
.
slice
(
:namespace
,
:project
).
symbolize_keys
)
)
not_found!
unless
can?
(
current_user
,
:download_code
,
project
)
project
...
...
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