Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
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
nexedi
gitlab-shell
Commits
7a020bf2
Commit
7a020bf2
authored
Nov 29, 2017
by
Jonathon Reinhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused lib/names_helper.rb
As of
7eb45672
, NamesHelper is no longer used.
parent
528960c8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
22 deletions
+0
-22
lib/gitlab_access.rb
lib/gitlab_access.rb
+0
-3
lib/gitlab_post_receive.rb
lib/gitlab_post_receive.rb
+0
-2
lib/names_helper.rb
lib/names_helper.rb
+0
-5
spec/names_helper_spec.rb
spec/names_helper_spec.rb
+0
-12
No files found.
lib/gitlab_access.rb
View file @
7a020bf2
require_relative
'gitlab_init'
require_relative
'gitlab_init'
require_relative
'gitlab_net'
require_relative
'gitlab_net'
require_relative
'gitlab_access_status'
require_relative
'gitlab_access_status'
require_relative
'names_helper'
require_relative
'gitlab_metrics'
require_relative
'gitlab_metrics'
require_relative
'object_dirs_helper'
require_relative
'object_dirs_helper'
require
'json'
require
'json'
...
@@ -9,8 +8,6 @@ require 'json'
...
@@ -9,8 +8,6 @@ require 'json'
class
GitlabAccess
class
GitlabAccess
class
AccessDeniedError
<
StandardError
;
end
class
AccessDeniedError
<
StandardError
;
end
include
NamesHelper
attr_reader
:config
,
:gl_repository
,
:repo_path
,
:changes
,
:protocol
attr_reader
:config
,
:gl_repository
,
:repo_path
,
:changes
,
:protocol
def
initialize
(
gl_repository
,
repo_path
,
actor
,
changes
,
protocol
)
def
initialize
(
gl_repository
,
repo_path
,
actor
,
changes
,
protocol
)
...
...
lib/gitlab_post_receive.rb
View file @
7a020bf2
...
@@ -6,8 +6,6 @@ require 'base64'
...
@@ -6,8 +6,6 @@ require 'base64'
require
'securerandom'
require
'securerandom'
class
GitlabPostReceive
class
GitlabPostReceive
include
NamesHelper
attr_reader
:config
,
:gl_repository
,
:repo_path
,
:changes
,
:jid
attr_reader
:config
,
:gl_repository
,
:repo_path
,
:changes
,
:jid
def
initialize
(
gl_repository
,
repo_path
,
actor
,
changes
)
def
initialize
(
gl_repository
,
repo_path
,
actor
,
changes
)
...
...
lib/names_helper.rb
deleted
100644 → 0
View file @
528960c8
module
NamesHelper
def
extract_ref_name
(
ref
)
ref
.
gsub
(
/\Arefs\/(tags|heads)\//
,
''
)
end
end
spec/names_helper_spec.rb
deleted
100644 → 0
View file @
528960c8
require
'spec_helper'
require
'names_helper'
describe
NamesHelper
do
include
NamesHelper
describe
:extract_ref_name
do
it
{
expect
(
extract_ref_name
(
'refs/heads/awesome-feature'
)).
to
eq
(
'awesome-feature'
)
}
it
{
expect
(
extract_ref_name
(
'refs/tags/v2.2.1'
)).
to
eq
(
'v2.2.1'
)
}
it
{
expect
(
extract_ref_name
(
'refs/tags/releases/v2.2.1'
)).
to
eq
(
'releases/v2.2.1'
)
}
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