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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
b55e22e2
Commit
b55e22e2
authored
Jul 29, 2013
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4660 from jojosch/fix-typos
Fix typos
parents
5e0e97ec
cd19f82e
Changes
38
Hide whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
62 additions
and
62 deletions
+62
-62
CHANGELOG
CHANGELOG
+20
-20
app/assets/javascripts/notes.js
app/assets/javascripts/notes.js
+1
-1
app/controllers/admin/users_controller.rb
app/controllers/admin/users_controller.rb
+2
-2
app/controllers/projects/team_members_controller.rb
app/controllers/projects/team_members_controller.rb
+1
-1
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+1
-1
app/models/namespace.rb
app/models/namespace.rb
+1
-1
app/models/network/graph.rb
app/models/network/graph.rb
+2
-2
app/models/project.rb
app/models/project.rb
+1
-1
app/models/user.rb
app/models/user.rb
+1
-1
app/models/wiki_page.rb
app/models/wiki_page.rb
+1
-1
app/observers/activity_observer.rb
app/observers/activity_observer.rb
+1
-1
app/services/notification_service.rb
app/services/notification_service.rb
+2
-2
app/views/help/public_access.html.haml
app/views/help/public_access.html.haml
+1
-1
app/views/projects/compare/show.html.haml
app/views/projects/compare/show.html.haml
+1
-1
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+1
-1
app/views/projects/wikis/_new.html.haml
app/views/projects/wikis/_new.html.haml
+1
-1
doc/api/issues.md
doc/api/issues.md
+1
-1
doc/api/projects.md
doc/api/projects.md
+1
-1
doc/api/users.md
doc/api/users.md
+1
-1
doc/make_release.md
doc/make_release.md
+1
-1
doc/update/4.0-to-4.1.md
doc/update/4.0-to-4.1.md
+1
-1
doc/update/4.2-to-5.0.md
doc/update/4.2-to-5.0.md
+2
-2
lib/gitlab/backend/shell.rb
lib/gitlab/backend/shell.rb
+1
-1
lib/gitlab/backend/shell_env.rb
lib/gitlab/backend/shell_env.rb
+1
-1
lib/gitlab/satellite/satellite.rb
lib/gitlab/satellite/satellite.rb
+1
-1
lib/tasks/gitlab/cleanup.rake
lib/tasks/gitlab/cleanup.rake
+1
-1
lib/tasks/gitlab/enable_namespaces.rake
lib/tasks/gitlab/enable_namespaces.rake
+1
-1
lib/tasks/gitlab/task_helpers.rake
lib/tasks/gitlab/task_helpers.rake
+1
-1
lib/tasks/migrate/migrate_groups.rake
lib/tasks/migrate/migrate_groups.rake
+1
-1
spec/helpers/gitlab_markdown_helper_spec.rb
spec/helpers/gitlab_markdown_helper_spec.rb
+1
-1
spec/lib/auth_spec.rb
spec/lib/auth_spec.rb
+1
-1
spec/models/issue_spec.rb
spec/models/issue_spec.rb
+1
-1
spec/models/milestone_spec.rb
spec/models/milestone_spec.rb
+2
-2
spec/models/namespace_spec.rb
spec/models/namespace_spec.rb
+1
-1
spec/models/project_spec.rb
spec/models/project_spec.rb
+1
-1
spec/requests/api/users_spec.rb
spec/requests/api/users_spec.rb
+1
-1
spec/support/select2_helper.rb
spec/support/select2_helper.rb
+1
-1
spec/tasks/gitlab/backup_rake_spec.rb
spec/tasks/gitlab/backup_rake_spec.rb
+1
-1
No files found.
CHANGELOG
View file @
b55e22e2
...
@@ -4,7 +4,7 @@ v 6.0.0
...
@@ -4,7 +4,7 @@ v 6.0.0
- cache project graph
- cache project graph
- Drop support of root namespaces
- Drop support of root namespaces
- Redesign project settings navigation
- Redesign project settings navigation
- Rest
ly
ed login screen
- Rest
yl
ed login screen
- Default theme is classic now
- Default theme is classic now
- Cache result of methods like authorize_projects, project.team.members etc
- Cache result of methods like authorize_projects, project.team.members etc
- Remove $.ready events
- Remove $.ready events
...
@@ -48,7 +48,7 @@ v 5.3.0
...
@@ -48,7 +48,7 @@ v 5.3.0
- Api: added teams api
- Api: added teams api
- Api: Prevent blob content being escaped
- Api: Prevent blob content being escaped
- Api: Smart deploy key add behaviour
- Api: Smart deploy key add behaviour
- Api: projets/owned.json return user owned project
- Api: proje
c
ts/owned.json return user owned project
- Fix bug with team assignation on project from #4109
- Fix bug with team assignation on project from #4109
- Advanced snippets: public/private, project/personal (Andrew Kulakov)
- Advanced snippets: public/private, project/personal (Andrew Kulakov)
- Repository Graphs (Karlo Nicholas T. Soriano)
- Repository Graphs (Karlo Nicholas T. Soriano)
...
@@ -84,7 +84,7 @@ v 5.2.0
...
@@ -84,7 +84,7 @@ v 5.2.0
v 5.1.0
v 5.1.0
- You can login with email or username now
- You can login with email or username now
- Corrected project transfer rollback when repository cannot be moved
- Corrected project transfer rollback when repository cannot be moved
- Move both repo and wiki when project transfer requ
r
ested
- Move both repo and wiki when project transfer requested
- Admin area: project editing was removed from admin namespace
- Admin area: project editing was removed from admin namespace
- Access: admin user has now access to any project.
- Access: admin user has now access to any project.
- Notification settings
- Notification settings
...
@@ -94,7 +94,7 @@ v 5.1.0
...
@@ -94,7 +94,7 @@ v 5.1.0
- Restyled Issues list. Show milestone version in issue row
- Restyled Issues list. Show milestone version in issue row
- Restyled Merge Request list
- Restyled Merge Request list
- Backup now dump/restore uploads
- Backup now dump/restore uploads
- Improved perfomance of dashboard (Andrew Kumanyaev)
- Improved perfo
r
mance of dashboard (Andrew Kumanyaev)
- File history now tracks renames (Akzhan Abdulin)
- File history now tracks renames (Akzhan Abdulin)
- Drop wiki migration tools
- Drop wiki migration tools
- Drop sqlite migration tools
- Drop sqlite migration tools
...
@@ -103,7 +103,7 @@ v 5.1.0
...
@@ -103,7 +103,7 @@ v 5.1.0
- Restyled network graph (Hiroyuki Sato)
- Restyled network graph (Hiroyuki Sato)
v 5.0.1
v 5.0.1
- Fixed issue with gitlab-grit being overrid
ed
by grit
- Fixed issue with gitlab-grit being overrid
den
by grit
v 5.0.0
v 5.0.0
- Replaced gitolite with gitlab-shell
- Replaced gitolite with gitlab-shell
...
@@ -123,7 +123,7 @@ v 5.0.0
...
@@ -123,7 +123,7 @@ v 5.0.0
- Update capybara, rspec-rails, poltergeist to recent versions
- Update capybara, rspec-rails, poltergeist to recent versions
- Wiki on git using Gollum
- Wiki on git using Gollum
- Added Solarized Dark theme for code review
- Added Solarized Dark theme for code review
- Dont show user emails in autocomplete lists, profile pages
- Don
'
t show user emails in autocomplete lists, profile pages
- Added settings tab for group, team, project
- Added settings tab for group, team, project
- Replace user popup with icons in header
- Replace user popup with icons in header
- Handle project moving with gitlab-shell
- Handle project moving with gitlab-shell
...
@@ -176,7 +176,7 @@ v 4.1.0
...
@@ -176,7 +176,7 @@ v 4.1.0
v 4.0.0
v 4.0.0
- Remove project code and path from API. Use id instead
- Remove project code and path from API. Use id instead
- Return valid clonable url to repo for web hook
- Return valid clon
e
able url to repo for web hook
- Fixed backup issue
- Fixed backup issue
- Reorganized settings
- Reorganized settings
- Fixed commits compare
- Fixed commits compare
...
@@ -241,15 +241,15 @@ v 3.0.0
...
@@ -241,15 +241,15 @@ v 3.0.0
- Web Editor
- Web Editor
- Fixed bug with gitolite keys
- Fixed bug with gitolite keys
- UI improved
- UI improved
- Increased perfomance of application
- Increased perfo
r
mance of application
- Show user avatar in last commit when browsing Files
- Show user avatar in last commit when browsing Files
- Refactored Gitlab::Merge
- Refactored Gitlab::Merge
- Use Font Awsome for icons
- Use Font Aw
e
some for icons
- Separate observing of Note and MergeRequests
a
- Separate observing of Note and MergeRequests
- Milestone "All Issues" filter
- Milestone "All Issues" filter
- Fix issue close and reopen button text and styles
- Fix issue close and reopen button text and styles
- Fix forward/back while browsing Tree hierarchy
- Fix forward/back while browsing Tree hierarchy
- Show numer of notes for commits and merge requests
- Show num
b
er of notes for commits and merge requests
- Added support pg from box and update installation doc
- Added support pg from box and update installation doc
- Reject ssh keys that break gitolite
- Reject ssh keys that break gitolite
- [API] list one project hook
- [API] list one project hook
...
@@ -268,7 +268,7 @@ v 2.9.0
...
@@ -268,7 +268,7 @@ v 2.9.0
- added factory_girl
- added factory_girl
- restyled projects list on dashboard
- restyled projects list on dashboard
- ssh keys validation to prevent gitolite crash
- ssh keys validation to prevent gitolite crash
- send notifications if changed p
re
mission in project
- send notifications if changed p
er
mission in project
- scss refactoring. gitlab_bootstrap/ dir
- scss refactoring. gitlab_bootstrap/ dir
- fix git push http body bigger than 112k problem
- fix git push http body bigger than 112k problem
- list of labels page under issues tab
- list of labels page under issues tab
...
@@ -302,7 +302,7 @@ v 2.7.0
...
@@ -302,7 +302,7 @@ v 2.7.0
- System hooks
- System hooks
- UI improved
- UI improved
- Dashboard events endless scroll
- Dashboard events endless scroll
- Source perfomance increased
- Source perfo
r
mance increased
v 2.6.0
v 2.6.0
- UI polished
- UI polished
...
@@ -310,7 +310,7 @@ v 2.6.0
...
@@ -310,7 +310,7 @@ v 2.6.0
- Handle huge commits
- Handle huge commits
- Last Push widget
- Last Push widget
- Bugfix
- Bugfix
- Better perfomance
- Better perfo
r
mance
- Email in resque
- Email in resque
- Increased test coverage
- Increased test coverage
- Ability to remove branch with MR accept
- Ability to remove branch with MR accept
...
@@ -331,7 +331,7 @@ v 2.4.0
...
@@ -331,7 +331,7 @@ v 2.4.0
- Bootstrap 2.0
- Bootstrap 2.0
- Responsive layout
- Responsive layout
- Big commits handling
- Big commits handling
- Perfomance improved
- Perfo
r
mance improved
- Milestones
- Milestones
v 2.3.1
v 2.3.1
...
@@ -411,11 +411,11 @@ v 1.0.2
...
@@ -411,11 +411,11 @@ v 1.0.2
- added adv validation for project path & code
- added adv validation for project path & code
- feature: issues can be sortable
- feature: issues can be sortable
- bugfix
- bugfix
- username disp
al
yed on top panel
- username disp
la
yed on top panel
v 1.0.1
v 1.0.1
- fixed: with invalid source code for commit
- fixed: with invalid source code for commit
- fixed: lose branch/tag selection when use tree navigat
e
ion
- fixed: lose branch/tag selection when use tree navigation
- when history clicked - display path
- when history clicked - display path
- bug fix & code cleaning
- bug fix & code cleaning
...
@@ -432,11 +432,11 @@ v 0.9.4
...
@@ -432,11 +432,11 @@ v 0.9.4
- authorization improved
- authorization improved
- html escaping
- html escaping
- bug fix
- bug fix
- increas
s
ed test coverage
- increased test coverage
- design improvements
- design improvements
v 0.9.1
v 0.9.1
- increas
s
ed test coverage
- increased test coverage
- design improvements
- design improvements
- new issue email notification
- new issue email notification
- updated app name
- updated app name
...
@@ -444,7 +444,7 @@ v 0.9.1
...
@@ -444,7 +444,7 @@ v 0.9.1
- issue can be edit
- issue can be edit
v 0.8.0
v 0.8.0
- sytax highlight for main file types
- sy
n
tax highlight for main file types
- redesign
- redesign
- stability
- stability
- security fixes
- security fixes
...
...
app/assets/javascripts/notes.js
View file @
b55e22e2
...
@@ -177,7 +177,7 @@ var NoteList = {
...
@@ -177,7 +177,7 @@ var NoteList = {
var
form
=
$
(
this
).
closest
(
"
form
"
);
var
form
=
$
(
this
).
closest
(
"
form
"
);
var
row
=
form
.
closest
(
"
tr
"
);
var
row
=
form
.
closest
(
"
tr
"
);
// show the reply button (will only work for repl
y
s)
// show the reply button (will only work for repl
ie
s)
form
.
prev
(
"
.js-discussion-reply-button
"
).
show
();
form
.
prev
(
"
.js-discussion-reply-button
"
).
show
();
if
(
row
.
is
(
"
.js-temp-notes-holder
"
))
{
if
(
row
.
is
(
"
.js-temp-notes-holder
"
))
{
...
...
app/controllers/admin/users_controller.rb
View file @
b55e22e2
...
@@ -24,7 +24,7 @@ class Admin::UsersController < Admin::ApplicationController
...
@@ -24,7 +24,7 @@ class Admin::UsersController < Admin::ApplicationController
if
user
.
block
if
user
.
block
redirect_to
:back
,
alert:
"Successfully blocked"
redirect_to
:back
,
alert:
"Successfully blocked"
else
else
redirect_to
:back
,
alert:
"Error occured. User was not blocked"
redirect_to
:back
,
alert:
"Error occur
r
ed. User was not blocked"
end
end
end
end
...
@@ -32,7 +32,7 @@ class Admin::UsersController < Admin::ApplicationController
...
@@ -32,7 +32,7 @@ class Admin::UsersController < Admin::ApplicationController
if
user
.
activate
if
user
.
activate
redirect_to
:back
,
alert:
"Successfully unblocked"
redirect_to
:back
,
alert:
"Successfully unblocked"
else
else
redirect_to
:back
,
alert:
"Error occured. User was not unblocked"
redirect_to
:back
,
alert:
"Error occur
r
ed. User was not unblocked"
end
end
end
end
...
...
app/controllers/projects/team_members_controller.rb
View file @
b55e22e2
...
@@ -49,7 +49,7 @@ class Projects::TeamMembersController < Projects::ApplicationController
...
@@ -49,7 +49,7 @@ class Projects::TeamMembersController < Projects::ApplicationController
def
apply_import
def
apply_import
giver
=
Project
.
find
(
params
[
:source_project_id
])
giver
=
Project
.
find
(
params
[
:source_project_id
])
status
=
@project
.
team
.
import
(
giver
)
status
=
@project
.
team
.
import
(
giver
)
notice
=
status
?
"Succesfully imported"
:
"Import failed"
notice
=
status
?
"Succes
s
fully imported"
:
"Import failed"
redirect_to
project_team_index_path
(
project
),
notice:
notice
redirect_to
project_team_index_path
(
project
),
notice:
notice
end
end
...
...
app/helpers/application_helper.rb
View file @
b55e22e2
...
@@ -35,7 +35,7 @@ module ApplicationHelper
...
@@ -35,7 +35,7 @@ module ApplicationHelper
args
.
any?
{
|
v
|
v
.
to_s
.
downcase
==
controller
.
controller_name
}
args
.
any?
{
|
v
|
v
.
to_s
.
downcase
==
controller
.
controller_name
}
end
end
# Check if a partcular action is the current one
# Check if a part
i
cular action is the current one
#
#
# args - One or more action names to check
# args - One or more action names to check
#
#
...
...
app/models/namespace.rb
View file @
b55e22e2
...
@@ -73,7 +73,7 @@ class Namespace < ActiveRecord::Base
...
@@ -73,7 +73,7 @@ class Namespace < ActiveRecord::Base
gitlab_shell
.
rm_satellites
(
path_was
)
gitlab_shell
.
rm_satellites
(
path_was
)
send_update_instructions
send_update_instructions
rescue
rescue
# Returning false does not rolback after_* transaction but gives
# Returning false does not rol
l
back after_* transaction but gives
# us information about failing some of tasks
# us information about failing some of tasks
false
false
end
end
...
...
app/models/network/graph.rb
View file @
b55e22e2
...
@@ -43,9 +43,9 @@ module Network
...
@@ -43,9 +43,9 @@ module Network
# Method is adding time and space on the
# Method is adding time and space on the
# list of commits. As well as returns date list
# list of commits. As well as returns date list
# corelated with time set on commits.
# cor
r
elated with time set on commits.
#
#
# @return [Array<TimeDate>] list of commit dates corelated with time on commits
# @return [Array<TimeDate>] list of commit dates cor
r
elated with time on commits
def
index_commits
def
index_commits
days
=
[]
days
=
[]
@map
=
{}
@map
=
{}
...
...
app/models/project.rb
View file @
b55e22e2
...
@@ -432,7 +432,7 @@ class Project < ActiveRecord::Base
...
@@ -432,7 +432,7 @@ class Project < ActiveRecord::Base
gitlab_shell
.
rm_satellites
(
old_path_with_namespace
)
gitlab_shell
.
rm_satellites
(
old_path_with_namespace
)
send_move_instructions
send_move_instructions
rescue
rescue
# Returning false does not rolback after_* transaction but gives
# Returning false does not rol
l
back after_* transaction but gives
# us information about failing some of tasks
# us information about failing some of tasks
false
false
end
end
...
...
app/models/user.rb
View file @
b55e22e2
...
@@ -155,7 +155,7 @@ class User < ActiveRecord::Base
...
@@ -155,7 +155,7 @@ class User < ActiveRecord::Base
# Class methods
# Class methods
#
#
class
<<
self
class
<<
self
# Devise method overriden to allow sing in with email or username
# Devise method overrid
d
en to allow sing in with email or username
def
find_for_database_authentication
(
warden_conditions
)
def
find_for_database_authentication
(
warden_conditions
)
conditions
=
warden_conditions
.
dup
conditions
=
warden_conditions
.
dup
if
login
=
conditions
.
delete
(
:login
)
if
login
=
conditions
.
delete
(
:login
)
...
...
app/models/wiki_page.rb
View file @
b55e22e2
...
@@ -143,7 +143,7 @@ class WikiPage
...
@@ -143,7 +143,7 @@ class WikiPage
save
:update_page
,
@page
,
content
,
format
,
message
save
:update_page
,
@page
,
content
,
format
,
message
end
end
# Destroys the W
I
ki Page.
# Destroys the W
i
ki Page.
#
#
# Returns boolean True or False.
# Returns boolean True or False.
def
delete
def
delete
...
...
app/observers/activity_observer.rb
View file @
b55e22e2
...
@@ -8,7 +8,7 @@ class ActivityObserver < BaseObserver
...
@@ -8,7 +8,7 @@ class ActivityObserver < BaseObserver
# Skip system status notes like 'status changed to close'
# Skip system status notes like 'status changed to close'
return
true
if
record
.
note
.
include?
(
"_Status changed to "
)
return
true
if
record
.
note
.
include?
(
"_Status changed to "
)
# Skip wall notes to prevent spaming of dashboard
# Skip wall notes to prevent spam
m
ing of dashboard
return
true
if
record
.
noteable_type
.
blank?
return
true
if
record
.
noteable_type
.
blank?
end
end
...
...
app/services/notification_service.rb
View file @
b55e22e2
# NotificationService class
# NotificationService class
#
#
# Used for notifing users with emails about different events
# Used for notif
y
ing users with emails about different events
#
#
# Ex.
# Ex.
# NotificationService.new.new_issue(issue, current_user)
# NotificationService.new.new_issue(issue, current_user)
...
@@ -90,7 +90,7 @@ class NotificationService
...
@@ -90,7 +90,7 @@ class NotificationService
# Notify new user with email after creation
# Notify new user with email after creation
def
new_user
(
user
)
def
new_user
(
user
)
# Dont email omniauth created users
# Don
'
t email omniauth created users
mailer
.
new_user_email
(
user
.
id
,
user
.
password
)
unless
user
.
extern_uid?
mailer
.
new_user_email
(
user
.
id
,
user
.
password
)
unless
user
.
extern_uid?
end
end
...
...
app/views/help/public_access.html.haml
View file @
b55e22e2
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
%p
%p
GitLab allows you to open selected projects to be accessed publicly.
GitLab allows you to open selected projects to be accessed publicly.
These projects will be clonable
These projects will be clon
e
able
%em
without any
%em
without any
authentication.
authentication.
Also they will be listed on the
#{
link_to
"public access directory"
,
public_root_path
}
.
Also they will be listed on the
#{
link_to
"public access directory"
,
public_root_path
}
.
...
...
app/views/projects/compare/show.html.haml
View file @
b55e22e2
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
.alert.alert-block
.alert.alert-block
%p
%p
%strong
Warning! This comparison include 100+ commits.
%strong
Warning! This comparison include 100+ commits.
%p
To prevent performance issue we dont show diff information.
%p
To prevent performance issue we don
'
t show diff information.
-
if
@commits
.
present?
-
if
@commits
.
present?
%div
.ui-box
%div
.ui-box
...
...
app/views/projects/new.html.haml
View file @
b55e22e2
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
.input
.input
=
f
.
text_field
:import_url
,
class:
'xlarge'
,
placeholder:
'https://github.com/randx/six.git'
=
f
.
text_field
:import_url
,
class:
'xlarge'
,
placeholder:
'https://github.com/randx/six.git'
.light
.light
URL must be clonable
URL must be clon
e
able
%p
.padded
%p
.padded
New projects are private by default. You choose who can see the project and commit to repository.
New projects are private by default. You choose who can see the project and commit to repository.
...
...
app/views/projects/wikis/_new.html.haml
View file @
b55e22e2
...
@@ -7,6 +7,6 @@
...
@@ -7,6 +7,6 @@
%span
Page slug
%span
Page slug
=
text_field_tag
:new_wiki_path
,
nil
,
placeholder:
'how-to-setup'
,
class:
'input-xlarge'
,
required:
true
,
:'data-wikis-path'
=>
project_wikis_path
(
@project
)
=
text_field_tag
:new_wiki_path
,
nil
,
placeholder:
'how-to-setup'
,
class:
'input-xlarge'
,
required:
true
,
:'data-wikis-path'
=>
project_wikis_path
(
@project
)
%p
.hint
%p
.hint
Please dont use spaces and slashes
Please don
'
t use spaces and slashes
.modal-footer
.modal-footer
=
link_to
'Build'
,
'#'
,
class:
'build-new-wiki btn btn-create'
=
link_to
'Build'
,
'#'
,
class:
'build-new-wiki btn btn-create'
doc/api/issues.md
View file @
b55e22e2
## List issues
## List issues
Get all issues created by authenticed user. This function takes pagination parameters
Get all issues created by authentic
at
ed user. This function takes pagination parameters
`page`
and
`per_page`
to restrict the list of issues.
`page`
and
`per_page`
to restrict the list of issues.
```
```
...
...
doc/api/projects.md
View file @
b55e22e2
...
@@ -193,7 +193,7 @@ Parameters:
...
@@ -193,7 +193,7 @@ Parameters:
**Project access levels**
**Project access levels**
The project access levels are defined in the
`user_project.rb`
class. Currently, these levels are recog
i
nized:
The project access levels are defined in the
`user_project.rb`
class. Currently, these levels are recognized:
```
```
GUEST = 10
GUEST = 10
...
...
doc/api/users.md
View file @
b55e22e2
...
@@ -123,7 +123,7 @@ Parameters:
...
@@ -123,7 +123,7 @@ Parameters:
+
`bio`
- User's bio
+
`bio`
- User's bio
Note, at the moment this method does only return a 404 error, even in cases where a 409 (Conflict) would
Note, at the moment this method does only return a 404 error, even in cases where a 409 (Conflict) would
be more appropriate, e.g. when renaming the email address to some ex
s
isting one.
be more appropriate, e.g. when renaming the email address to some existing one.
## User deletion
## User deletion
...
...
doc/make_release.md
View file @
b55e22e2
...
@@ -8,7 +8,7 @@ NOTE: This is a developer guide. If you are trying to install GitLab see the lat
...
@@ -8,7 +8,7 @@ NOTE: This is a developer guide. If you are trying to install GitLab see the lat
### From x.x to x.x
### From x.x to x.x
#### 0. Any major changes? Database updates? Web server change? File struc
u
ture changes?
#### 0. Any major changes? Database updates? Web server change? File structure changes?
#### 1. Make backup
#### 1. Make backup
...
...
doc/update/4.0-to-4.1.md
View file @
b55e22e2
...
@@ -37,7 +37,7 @@ sudo -u gitlab -H bundle exec rake db:migrate RAILS_ENV=production
...
@@ -37,7 +37,7 @@ sudo -u gitlab -H bundle exec rake db:migrate RAILS_ENV=production
# backup old one
# backup old one
sudo mv /etc/init.d/gitlab /etc/init.d/gitlab.old
sudo mv /etc/init.d/gitlab /etc/init.d/gitlab.old
# get new one usi
gn
sidekiq
# get new one usi
ng
sidekiq
sudo curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/4-1-stable/init.d/gitlab
sudo curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/4-1-stable/init.d/gitlab
sudo chmod +x /etc/init.d/gitlab
sudo chmod +x /etc/init.d/gitlab
...
...
doc/update/4.2-to-5.0.md
View file @
b55e22e2
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
## Important changes
## Important changes
*
We dont use
`gitlab`
user any more. Everything will be moved to
`git`
user
*
We don
'
t use
`gitlab`
user any more. Everything will be moved to
`git`
user
*
__requires ruby1.9.3__
*
__requires ruby1.9.3__
...
@@ -126,7 +126,7 @@ sudo service nginx restart
...
@@ -126,7 +126,7 @@ sudo service nginx restart
```
```
__7. Start gitlab instace__
__7. Start gitlab insta
n
ce__
```
```
...
...
lib/gitlab/backend/shell.rb
View file @
b55e22e2
...
@@ -142,7 +142,7 @@ module Gitlab
...
@@ -142,7 +142,7 @@ module Gitlab
# Remove all ssh keys from gitlab shell
# Remove all ssh keys from gitlab shell
#
#
# Ex.
# Ex.
# rem
m
ove_all_keys
# remove_all_keys
#
#
def
remove_all_keys
def
remove_all_keys
system
"
#{
gitlab_shell_user_home
}
/gitlab-shell/bin/gitlab-keys"
,
"clear"
system
"
#{
gitlab_shell_user_home
}
/gitlab-shell/bin/gitlab-keys"
,
"clear"
...
...
lib/gitlab/backend/shell_env.rb
View file @
b55e22e2
module
Gitlab
module
Gitlab
# This module provide 2 methods
# This module provide 2 methods
# to set specific ENV variable
d
for GitLab Shell
# to set specific ENV variable
s
for GitLab Shell
module
ShellEnv
module
ShellEnv
extend
self
extend
self
...
...
lib/gitlab/satellite/satellite.rb
View file @
b55e22e2
...
@@ -116,7 +116,7 @@ module Gitlab
...
@@ -116,7 +116,7 @@ module Gitlab
repo
.
git
.
fetch
({
timeout:
true
},
:origin
)
repo
.
git
.
fetch
({
timeout:
true
},
:origin
)
end
end
# Create directory for st
ro
ing
# Create directory for st
or
ing
# satellites lock files
# satellites lock files
def
create_locks_dir
def
create_locks_dir
FileUtils
.
mkdir_p
(
lock_files_dir
)
FileUtils
.
mkdir_p
(
lock_files_dir
)
...
...
lib/tasks/gitlab/cleanup.rake
View file @
b55e22e2
...
@@ -43,7 +43,7 @@ namespace :gitlab do
...
@@ -43,7 +43,7 @@ namespace :gitlab do
end
end
end
end
desc
"GITLAB | Cleanup | Clean re
s
positories"
desc
"GITLAB | Cleanup | Clean repositories"
task
repos: :environment
do
task
repos: :environment
do
warn_user_is_not_gitlab
warn_user_is_not_gitlab
remove_flag
=
ENV
[
'REMOVE'
]
remove_flag
=
ENV
[
'REMOVE'
]
...
...
lib/tasks/gitlab/enable_namespaces.rake
View file @
b55e22e2
...
@@ -42,7 +42,7 @@ namespace :gitlab do
...
@@ -42,7 +42,7 @@ namespace :gitlab do
username
=
user
.
email
.
match
(
/^[^@]*/
)[
0
]
username
=
user
.
email
.
match
(
/^[^@]*/
)[
0
]
username
.
gsub!
(
"+"
,
"."
)
username
.
gsub!
(
"+"
,
"."
)
# return username if no mathes
# return username if no mat
c
hes
return
username
unless
User
.
find_by_username
(
username
)
return
username
unless
User
.
find_by_username
(
username
)
# look for same username
# look for same username
...
...
lib/tasks/gitlab/task_helpers.rake
View file @
b55e22e2
...
@@ -55,7 +55,7 @@ namespace :gitlab do
...
@@ -55,7 +55,7 @@ namespace :gitlab do
# Runs the given command and matches the output against the given pattern
# Runs the given command and matches the output against the given pattern
#
#
# Returns nil if nothing matched
# Returns nil if nothing matched
# Retu
nr
s the MatchData if the pattern matched
# Retu
rn
s the MatchData if the pattern matched
#
#
# see also #run
# see also #run
# see also String#match
# see also String#match
...
...
lib/tasks/migrate/migrate_groups.rake
View file @
b55e22e2
desc
"GITLAB | Migrate Gro
pu
s to match v6.0"
desc
"GITLAB | Migrate Gro
up
s to match v6.0"
task
migrate_groups: :environment
do
task
migrate_groups: :environment
do
puts
"This will add group owners to group membership"
puts
"This will add group owners to group membership"
ask_to_continue
ask_to_continue
...
...
spec/helpers/gitlab_markdown_helper_spec.rb
View file @
b55e22e2
...
@@ -287,7 +287,7 @@ describe GitlabMarkdownHelper do
...
@@ -287,7 +287,7 @@ describe GitlabMarkdownHelper do
gfm
(
":invalid-emoji:"
).
should_not
match
(
/<img/
)
gfm
(
":invalid-emoji:"
).
should_not
match
(
/<img/
)
end
end
it
"should work independet of reference links (i.e. without @project being set)"
do
it
"should work independe
n
t of reference links (i.e. without @project being set)"
do
@project
=
nil
@project
=
nil
gfm
(
":+1:"
).
should
match
(
/<img/
)
gfm
(
":+1:"
).
should
match
(
/<img/
)
end
end
...
...
spec/lib/auth_spec.rb
View file @
b55e22e2
...
@@ -36,7 +36,7 @@ describe Gitlab::Auth do
...
@@ -36,7 +36,7 @@ describe Gitlab::Auth do
end
end
it
"should create from auth if user doesnot exist"
do
it
"should create from auth if user does
not exist"
do
User
.
stub
find_by_extern_uid_and_provider:
nil
User
.
stub
find_by_extern_uid_and_provider:
nil
User
.
stub
find_by_email:
nil
User
.
stub
find_by_email:
nil
gl_auth
.
should_receive
:create_from_omniauth
gl_auth
.
should_receive
:create_from_omniauth
...
...
spec/models/issue_spec.rb
View file @
b55e22e2
...
@@ -45,7 +45,7 @@ describe Issue do
...
@@ -45,7 +45,7 @@ describe Issue do
end
end
describe
'#is_being_reassigned?'
do
describe
'#is_being_reassigned?'
do
it
'return
e
s issues assigned to user'
do
it
'returns issues assigned to user'
do
user
=
create
:user
user
=
create
:user
2
.
times
do
2
.
times
do
...
...
spec/models/milestone_spec.rb
View file @
b55e22e2
...
@@ -127,11 +127,11 @@ describe Milestone do
...
@@ -127,11 +127,11 @@ describe Milestone do
issue
=
create
:issue
issue
=
create
:issue
end
end
it
'should be true if milestone active and all nest
i
ed issues closed'
do
it
'should be true if milestone active and all nested issues closed'
do
milestone
.
can_be_closed?
.
should
be_true
milestone
.
can_be_closed?
.
should
be_true
end
end
it
'should be false if milestone active and not all nest
i
ed issues closed'
do
it
'should be false if milestone active and not all nested issues closed'
do
issue
.
milestone
=
milestone
issue
.
milestone
=
milestone
issue
.
save
issue
.
save
...
...
spec/models/namespace_spec.rb
View file @
b55e22e2
...
@@ -59,7 +59,7 @@ describe Namespace do
...
@@ -59,7 +59,7 @@ describe Namespace do
@namespace
.
stub
(
path_changed?:
true
)
@namespace
.
stub
(
path_changed?:
true
)
end
end
it
"should raise error when dirtory exists"
do
it
"should raise error when dir
ec
tory exists"
do
expect
{
@namespace
.
move_dir
}.
to
raise_error
(
"namespace directory cannot be moved"
)
expect
{
@namespace
.
move_dir
}.
to
raise_error
(
"namespace directory cannot be moved"
)
end
end
...
...
spec/models/project_spec.rb
View file @
b55e22e2
...
@@ -235,7 +235,7 @@ describe Project do
...
@@ -235,7 +235,7 @@ describe Project do
project
.
can_have_issues_tracker_id?
.
should
be_false
project
.
can_have_issues_tracker_id?
.
should
be_false
end
end
it
"should be always false if issues disbled"
do
it
"should be always false if issues dis
a
bled"
do
project
.
issues_enabled
=
false
project
.
issues_enabled
=
false
ext_project
.
issues_enabled
=
false
ext_project
.
issues_enabled
=
false
...
...
spec/requests/api/users_spec.rb
View file @
b55e22e2
...
@@ -247,7 +247,7 @@ describe API::API do
...
@@ -247,7 +247,7 @@ describe API::API do
end
end
describe
"GET /user/keys/:id"
do
describe
"GET /user/keys/:id"
do
it
"should retur
m
single key"
do
it
"should retur
n
single key"
do
user
.
keys
<<
key
user
.
keys
<<
key
user
.
save
user
.
save
get
api
(
"/user/keys/
#{
key
.
id
}
"
,
user
)
get
api
(
"/user/keys/
#{
key
.
id
}
"
,
user
)
...
...
spec/support/select2_helper.rb
View file @
b55e22e2
# Select2 ajax programatic helper
# Select2 ajax program
m
atic helper
# It allows you to select value from select2
# It allows you to select value from select2
#
#
# Params
# Params
...
...
spec/tasks/gitlab/backup_rake_spec.rb
View file @
b55e22e2
...
@@ -30,7 +30,7 @@ describe 'gitlab:app namespace rake task' do
...
@@ -30,7 +30,7 @@ describe 'gitlab:app namespace rake task' do
let
(
:gitlab_version
)
{
%x{git rev-parse HEAD}
.
gsub
(
/\n/
,
""
)
}
let
(
:gitlab_version
)
{
%x{git rev-parse HEAD}
.
gsub
(
/\n/
,
""
)
}
it
'should fail on mismach'
do
it
'should fail on misma
t
ch'
do
YAML
.
stub
load_file:
{
gitlab_version:
gitlab_version
.
reverse
}
YAML
.
stub
load_file:
{
gitlab_version:
gitlab_version
.
reverse
}
expect
{
run_rake_task
}.
to
raise_error
SystemExit
expect
{
run_rake_task
}.
to
raise_error
SystemExit
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