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
Tatuya Kamada
gitlab-ce
Commits
d59192f8
Commit
d59192f8
authored
Oct 09, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'annotate' into 'master'
Annotate See merge request !1167
parents
6303d003
82c938ad
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
264 additions
and
219 deletions
+264
-219
app/models/member.rb
app/models/member.rb
+15
-0
app/models/members/group_member.rb
app/models/members/group_member.rb
+15
-0
app/models/members/project_member.rb
app/models/members/project_member.rb
+15
-0
app/models/personal_snippet.rb
app/models/personal_snippet.rb
+11
-11
app/models/project_services/assembla_service.rb
app/models/project_services/assembla_service.rb
+8
-8
app/models/project_services/buildbox_service.rb
app/models/project_services/buildbox_service.rb
+8
-8
app/models/project_services/campfire_service.rb
app/models/project_services/campfire_service.rb
+8
-8
app/models/project_services/ci_service.rb
app/models/project_services/ci_service.rb
+8
-8
app/models/project_services/emails_on_push_service.rb
app/models/project_services/emails_on_push_service.rb
+8
-8
app/models/project_services/flowdock_service.rb
app/models/project_services/flowdock_service.rb
+8
-8
app/models/project_services/gemnasium_service.rb
app/models/project_services/gemnasium_service.rb
+8
-8
app/models/project_services/gitlab_ci_service.rb
app/models/project_services/gitlab_ci_service.rb
+8
-8
app/models/project_services/hipchat_service.rb
app/models/project_services/hipchat_service.rb
+8
-8
app/models/project_services/pivotaltracker_service.rb
app/models/project_services/pivotaltracker_service.rb
+8
-8
app/models/project_services/slack_service.rb
app/models/project_services/slack_service.rb
+8
-8
app/models/project_snippet.rb
app/models/project_snippet.rb
+11
-11
app/models/service.rb
app/models/service.rb
+9
-8
app/models/snippet.rb
app/models/snippet.rb
+11
-11
spec/models/assembla_service_spec.rb
spec/models/assembla_service_spec.rb
+8
-8
spec/models/buildbox_service_spec.rb
spec/models/buildbox_service_spec.rb
+8
-13
spec/models/flowdock_service_spec.rb
spec/models/flowdock_service_spec.rb
+8
-8
spec/models/gemnasium_service_spec.rb
spec/models/gemnasium_service_spec.rb
+8
-8
spec/models/gitlab_ci_service_spec.rb
spec/models/gitlab_ci_service_spec.rb
+8
-8
spec/models/group_member_spec.rb
spec/models/group_member_spec.rb
+5
-3
spec/models/project_member_spec.rb
spec/models/project_member_spec.rb
+6
-4
spec/models/project_snippet_spec.rb
spec/models/project_snippet_spec.rb
+11
-11
spec/models/service_spec.rb
spec/models/service_spec.rb
+8
-8
spec/models/slack_service_spec.rb
spec/models/slack_service_spec.rb
+8
-8
spec/models/snippet_spec.rb
spec/models/snippet_spec.rb
+11
-11
No files found.
app/models/member.rb
View file @
d59192f8
# == Schema Information
#
# Table name: members
#
# id :integer not null, primary key
# access_level :integer not null
# source_id :integer not null
# source_type :string(255) not null
# user_id :integer not null
# notification_level :integer not null
# type :string(255)
# created_at :datetime
# updated_at :datetime
#
class
Member
<
ActiveRecord
::
Base
include
Notifiable
include
Gitlab
::
Access
...
...
app/models/members/group_member.rb
View file @
d59192f8
# == Schema Information
#
# Table name: members
#
# id :integer not null, primary key
# access_level :integer not null
# source_id :integer not null
# source_type :string(255) not null
# user_id :integer not null
# notification_level :integer not null
# type :string(255)
# created_at :datetime
# updated_at :datetime
#
class
GroupMember
<
Member
SOURCE_TYPE
=
'Namespace'
...
...
app/models/members/project_member.rb
View file @
d59192f8
# == Schema Information
#
# Table name: members
#
# id :integer not null, primary key
# access_level :integer not null
# source_id :integer not null
# source_type :string(255) not null
# user_id :integer not null
# notification_level :integer not null
# type :string(255)
# created_at :datetime
# updated_at :datetime
#
class
ProjectMember
<
Member
SOURCE_TYPE
=
'Project'
...
...
app/models/personal_snippet.rb
View file @
d59192f8
...
...
@@ -2,17 +2,17 @@
#
# Table name: snippets
#
# id :integer not null, primary key
# title :string(255)
# content :text
# author_id :integer not null
# project_id :integer
# created_at :datetime
# updated_at :datetime
# file_name :string(255)
# expires_at :datetime
#
private :boolean default(TRUE), not null
#
type :string(255)
# id
:integer not null, primary key
# title
:string(255)
# content
:text
# author_id
:integer not null
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# file_name
:string(255)
# expires_at
:datetime
#
type :string(255)
#
visibility_level :integer default(0), not null
#
class
PersonalSnippet
<
Snippet
...
...
app/models/project_services/assembla_service.rb
View file @
d59192f8
...
...
@@ -2,14 +2,14 @@
#
# Table name: services
#
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer not null
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
#
class
AssemblaService
<
Service
...
...
app/models/project_services/buildbox_service.rb
View file @
d59192f8
...
...
@@ -2,14 +2,14 @@
#
# Table name: services
#
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer not null
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# propert
y
:text
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# propert
ies
:text
#
class
BuildboxService
<
CiService
...
...
app/models/project_services/campfire_service.rb
View file @
d59192f8
...
...
@@ -2,14 +2,14 @@
#
# Table name: services
#
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer not null
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
#
class
CampfireService
<
Service
...
...
app/models/project_services/ci_service.rb
View file @
d59192f8
...
...
@@ -2,14 +2,14 @@
#
# Table name: services
#
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer not null
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
#
# Base class for CI services
...
...
app/models/project_services/emails_on_push_service.rb
View file @
d59192f8
...
...
@@ -2,14 +2,14 @@
#
# Table name: services
#
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer not null
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
#
class
EmailsOnPushService
<
Service
...
...
app/models/project_services/flowdock_service.rb
View file @
d59192f8
...
...
@@ -2,14 +2,14 @@
#
# Table name: services
#
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer not null
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
#
require
"flowdock-git-hook"
...
...
app/models/project_services/gemnasium_service.rb
View file @
d59192f8
...
...
@@ -2,14 +2,14 @@
#
# Table name: services
#
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer not null
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
#
require
"gemnasium/gitlab_service"
...
...
app/models/project_services/gitlab_ci_service.rb
View file @
d59192f8
...
...
@@ -2,14 +2,14 @@
#
# Table name: services
#
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer not null
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# propert
y
:text
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# propert
ies
:text
#
class
GitlabCiService
<
CiService
...
...
app/models/project_services/hipchat_service.rb
View file @
d59192f8
...
...
@@ -2,14 +2,14 @@
#
# Table name: services
#
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer not null
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
#
class
HipchatService
<
Service
...
...
app/models/project_services/pivotaltracker_service.rb
View file @
d59192f8
...
...
@@ -2,14 +2,14 @@
#
# Table name: services
#
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer not null
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
#
class
PivotaltrackerService
<
Service
...
...
app/models/project_services/slack_service.rb
View file @
d59192f8
...
...
@@ -2,14 +2,14 @@
#
# Table name: services
#
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer not null
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
#
class
SlackService
<
Service
...
...
app/models/project_snippet.rb
View file @
d59192f8
...
...
@@ -2,17 +2,17 @@
#
# Table name: snippets
#
# id :integer not null, primary key
# title :string(255)
# content :text
# author_id :integer not null
# project_id :integer
# created_at :datetime
# updated_at :datetime
# file_name :string(255)
# expires_at :datetime
#
private :boolean default(TRUE), not null
#
type :string(255)
# id
:integer not null, primary key
# title
:string(255)
# content
:text
# author_id
:integer not null
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# file_name
:string(255)
# expires_at
:datetime
#
type :string(255)
#
visibility_level :integer default(0), not null
#
class
ProjectSnippet
<
Snippet
...
...
app/models/service.rb
View file @
d59192f8
...
...
@@ -2,14 +2,15 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
#
# To add new service you should build a class inherited from Service
# and implement a set of methods
...
...
app/models/snippet.rb
View file @
d59192f8
...
...
@@ -2,17 +2,17 @@
#
# Table name: snippets
#
# id :integer not null, primary key
# title :string(255)
# content :text
# author_id :integer not null
# project_id :integer
# created_at :datetime
# updated_at :datetime
# file_name :string(255)
# expires_at :datetime
#
private :boolean default(TRUE), not null
#
type :string(255)
# id
:integer not null, primary key
# title
:string(255)
# content
:text
# author_id
:integer not null
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# file_name
:string(255)
# expires_at
:datetime
#
type :string(255)
#
visibility_level :integer default(0), not null
#
class
Snippet
<
ActiveRecord
::
Base
...
...
spec/models/assembla_service_spec.rb
View file @
d59192f8
...
...
@@ -2,14 +2,14 @@
#
# Table name: services
#
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer not null
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
#
require
'spec_helper'
...
...
spec/models/buildbox_service_spec.rb
View file @
d59192f8
...
...
@@ -2,19 +2,14 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# token :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# project_url :string(255)
# subdomain :string(255)
# room :string(255)
# recipients :text
# api_key :string(255)
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
#
require
'spec_helper'
...
...
spec/models/flowdock_service_spec.rb
View file @
d59192f8
...
...
@@ -2,14 +2,14 @@
#
# Table name: services
#
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer not null
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
#
require
'spec_helper'
...
...
spec/models/gemnasium_service_spec.rb
View file @
d59192f8
...
...
@@ -2,14 +2,14 @@
#
# Table name: services
#
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer not null
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
#
require
'spec_helper'
...
...
spec/models/gitlab_ci_service_spec.rb
View file @
d59192f8
...
...
@@ -2,14 +2,14 @@
#
# Table name: services
#
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer not null
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
#
require
'spec_helper'
...
...
spec/models/group_member_spec.rb
View file @
d59192f8
# == Schema Information
#
# Table name:
group_
members
# Table name: members
#
# id :integer not null, primary key
# access_level :integer not null
# group_id :integer not null
# source_id :integer not null
# source_type :string(255) not null
# user_id :integer not null
# notification_level :integer not null
# type :string(255)
# created_at :datetime
# updated_at :datetime
# notification_level :integer default(3), not null
#
require
'spec_helper'
...
...
spec/models/project_member_spec.rb
View file @
d59192f8
# == Schema Information
#
# Table name:
project_
members
# Table name: members
#
# id :integer not null, primary key
# access_level :integer not null
# source_id :integer not null
# source_type :string(255) not null
# user_id :integer not null
# project_id :integer not null
# notification_level :integer not null
# type :string(255)
# created_at :datetime
# updated_at :datetime
# project_access :integer default(0), not null
# notification_level :integer default(3), not null
#
require
'spec_helper'
...
...
spec/models/project_snippet_spec.rb
View file @
d59192f8
...
...
@@ -2,17 +2,17 @@
#
# Table name: snippets
#
# id :integer not null, primary key
# title :string(255)
# content :text
# author_id :integer not null
# project_id :integer
# created_at :datetime
# updated_at :datetime
# file_name :string(255)
# expires_at :datetime
#
private :boolean default(TRUE), not null
#
type :string(255)
# id
:integer not null, primary key
# title
:string(255)
# content
:text
# author_id
:integer not null
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# file_name
:string(255)
# expires_at
:datetime
#
type :string(255)
#
visibility_level :integer default(0), not null
#
require
'spec_helper'
...
...
spec/models/service_spec.rb
View file @
d59192f8
...
...
@@ -2,14 +2,14 @@
#
# Table name: services
#
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer not null
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
#
require
'spec_helper'
...
...
spec/models/slack_service_spec.rb
View file @
d59192f8
...
...
@@ -2,14 +2,14 @@
#
# Table name: services
#
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer not null
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer not null
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
#
require
'spec_helper'
...
...
spec/models/snippet_spec.rb
View file @
d59192f8
...
...
@@ -2,17 +2,17 @@
#
# Table name: snippets
#
# id :integer not null, primary key
# title :string(255)
# content :text
# author_id :integer not null
# project_id :integer
# created_at :datetime
# updated_at :datetime
# file_name :string(255)
# expires_at :datetime
#
private :boolean default(TRUE), not null
#
type :string(255)
# id
:integer not null, primary key
# title
:string(255)
# content
:text
# author_id
:integer not null
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# file_name
:string(255)
# expires_at
:datetime
#
type :string(255)
#
visibility_level :integer default(0), not null
#
require
'spec_helper'
...
...
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