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
Kazuhiko Shiozaki
gitlab-ce
Commits
82c938ad
Commit
82c938ad
authored
Oct 09, 2014
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
annotate
parent
6303d003
Changes
29
Show 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 @
82c938ad
# == 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 @
82c938ad
# == 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 @
82c938ad
# == 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 @
82c938ad
...
...
@@ -11,8 +11,8 @@
# updated_at :datetime
# file_name :string(255)
# expires_at :datetime
# private :boolean default(TRUE), not null
# type :string(255)
# visibility_level :integer default(0), not null
#
class
PersonalSnippet
<
Snippet
...
...
app/models/project_services/assembla_service.rb
View file @
82c938ad
app/models/project_services/buildbox_service.rb
View file @
82c938ad
...
...
@@ -9,7 +9,7 @@
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# propert
y
:text
# propert
ies
:text
#
class
BuildboxService
<
CiService
...
...
app/models/project_services/campfire_service.rb
View file @
82c938ad
app/models/project_services/ci_service.rb
View file @
82c938ad
app/models/project_services/emails_on_push_service.rb
View file @
82c938ad
app/models/project_services/flowdock_service.rb
View file @
82c938ad
app/models/project_services/gemnasium_service.rb
View file @
82c938ad
app/models/project_services/gitlab_ci_service.rb
View file @
82c938ad
...
...
@@ -9,7 +9,7 @@
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# propert
y
:text
# propert
ies
:text
#
class
GitlabCiService
<
CiService
...
...
app/models/project_services/hipchat_service.rb
View file @
82c938ad
app/models/project_services/pivotaltracker_service.rb
View file @
82c938ad
app/models/project_services/slack_service.rb
View file @
82c938ad
app/models/project_snippet.rb
View file @
82c938ad
...
...
@@ -11,8 +11,8 @@
# updated_at :datetime
# file_name :string(255)
# expires_at :datetime
# private :boolean default(TRUE), not null
# type :string(255)
# visibility_level :integer default(0), not null
#
class
ProjectSnippet
<
Snippet
...
...
app/models/service.rb
View file @
82c938ad
...
...
@@ -10,6 +10,7 @@
# 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 @
82c938ad
...
...
@@ -11,8 +11,8 @@
# updated_at :datetime
# file_name :string(255)
# expires_at :datetime
# private :boolean default(TRUE), not null
# type :string(255)
# visibility_level :integer default(0), not null
#
class
Snippet
<
ActiveRecord
::
Base
...
...
spec/models/assembla_service_spec.rb
View file @
82c938ad
spec/models/buildbox_service_spec.rb
View file @
82c938ad
...
...
@@ -5,16 +5,11 @@
# 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)
# properties :text
#
require
'spec_helper'
...
...
spec/models/flowdock_service_spec.rb
View file @
82c938ad
spec/models/gemnasium_service_spec.rb
View file @
82c938ad
spec/models/gitlab_ci_service_spec.rb
View file @
82c938ad
spec/models/group_member_spec.rb
View file @
82c938ad
# == 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 @
82c938ad
# == 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 @
82c938ad
...
...
@@ -11,8 +11,8 @@
# updated_at :datetime
# file_name :string(255)
# expires_at :datetime
# private :boolean default(TRUE), not null
# type :string(255)
# visibility_level :integer default(0), not null
#
require
'spec_helper'
...
...
spec/models/service_spec.rb
View file @
82c938ad
spec/models/slack_service_spec.rb
View file @
82c938ad
spec/models/snippet_spec.rb
View file @
82c938ad
...
...
@@ -11,8 +11,8 @@
# updated_at :datetime
# file_name :string(255)
# expires_at :datetime
# private :boolean default(TRUE), not null
# 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