Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
7a8fcc73
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7a8fcc73
编写于
3月 04, 2015
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'annotate-models' into 'master'
Re-annotate models See merge request !1634
上级
63178a95
66c61f02
变更
39
隐藏空白更改
内联
并排
Showing
39 changed file
with
462 addition
and
414 deletion
+462
-414
app/models/application_setting.rb
app/models/application_setting.rb
+11
-11
app/models/identity.rb
app/models/identity.rb
+2
-0
app/models/project_services/asana_service.rb
app/models/project_services/asana_service.rb
+9
-9
app/models/project_services/assembla_service.rb
app/models/project_services/assembla_service.rb
+9
-9
app/models/project_services/bamboo_service.rb
app/models/project_services/bamboo_service.rb
+9
-9
app/models/project_services/buildbox_service.rb
app/models/project_services/buildbox_service.rb
+10
-9
app/models/project_services/campfire_service.rb
app/models/project_services/campfire_service.rb
+9
-9
app/models/project_services/ci_service.rb
app/models/project_services/ci_service.rb
+13
-13
app/models/project_services/custom_issue_tracker_service.rb
app/models/project_services/custom_issue_tracker_service.rb
+13
-9
app/models/project_services/emails_on_push_service.rb
app/models/project_services/emails_on_push_service.rb
+13
-13
app/models/project_services/flowdock_service.rb
app/models/project_services/flowdock_service.rb
+13
-13
app/models/project_services/gemnasium_service.rb
app/models/project_services/gemnasium_service.rb
+13
-13
app/models/project_services/gitlab_ci_service.rb
app/models/project_services/gitlab_ci_service.rb
+13
-13
app/models/project_services/gitlab_issue_tracker_service.rb
app/models/project_services/gitlab_issue_tracker_service.rb
+9
-9
app/models/project_services/hipchat_service.rb
app/models/project_services/hipchat_service.rb
+13
-13
app/models/project_services/irker_service.rb
app/models/project_services/irker_service.rb
+14
-9
app/models/project_services/issue_tracker_service.rb
app/models/project_services/issue_tracker_service.rb
+9
-9
app/models/project_services/jira_service.rb
app/models/project_services/jira_service.rb
+9
-9
app/models/project_services/pivotaltracker_service.rb
app/models/project_services/pivotaltracker_service.rb
+9
-9
app/models/project_services/pushover_service.rb
app/models/project_services/pushover_service.rb
+9
-9
app/models/project_services/redmine_service.rb
app/models/project_services/redmine_service.rb
+9
-9
app/models/project_services/slack_service.rb
app/models/project_services/slack_service.rb
+9
-9
app/models/project_services/teamcity_service.rb
app/models/project_services/teamcity_service.rb
+9
-9
app/models/service.rb
app/models/service.rb
+13
-13
app/models/user.rb
app/models/user.rb
+47
-45
spec/models/application_setting_spec.rb
spec/models/application_setting_spec.rb
+11
-10
spec/models/asana_service_spec.rb
spec/models/asana_service_spec.rb
+13
-8
spec/models/project_services/assembla_service_spec.rb
spec/models/project_services/assembla_service_spec.rb
+6
-5
spec/models/project_services/buildbox_service_spec.rb
spec/models/project_services/buildbox_service_spec.rb
+6
-5
spec/models/project_services/flowdock_service_spec.rb
spec/models/project_services/flowdock_service_spec.rb
+6
-5
spec/models/project_services/gemnasium_service_spec.rb
spec/models/project_services/gemnasium_service_spec.rb
+6
-5
spec/models/project_services/gitlab_ci_service_spec.rb
spec/models/project_services/gitlab_ci_service_spec.rb
+6
-5
spec/models/project_services/gitlab_issue_tracker_service_spec.rb
...els/project_services/gitlab_issue_tracker_service_spec.rb
+14
-9
spec/models/project_services/irker_service_spec.rb
spec/models/project_services/irker_service_spec.rb
+13
-8
spec/models/project_services/jira_service_spec.rb
spec/models/project_services/jira_service_spec.rb
+13
-8
spec/models/project_services/pushover_service_spec.rb
spec/models/project_services/pushover_service_spec.rb
+6
-5
spec/models/project_services/slack_service_spec.rb
spec/models/project_services/slack_service_spec.rb
+6
-5
spec/models/service_spec.rb
spec/models/service_spec.rb
+13
-13
spec/models/user_spec.rb
spec/models/user_spec.rb
+47
-41
未找到文件。
app/models/application_setting.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,17 +2,17 @@
#
# Table name: application_settings
#
# id :integer not null, primary key
# default_projects_limit :integer
#
default_branch_protection :integer
# sign
up_enabled
:boolean
#
signin_enabled
:boolean
#
gravatar_enabled :boolean
#
twitter_sharing_enabled :boolean
#
sign_in_text :text
#
created_at :datetime
#
updated_at :datetime
#
home_page_url :string(255
)
# id
:integer not null, primary key
# default_projects_limit
:integer
#
signup_enabled :boolean
# sign
in_enabled
:boolean
#
gravatar_enabled
:boolean
#
sign_in_text :text
#
created_at :datetime
#
updated_at :datetime
#
home_page_url :string(255)
#
default_branch_protection :integer default(2)
#
twitter_sharing_enabled :boolean default(TRUE
)
#
class
ApplicationSetting
<
ActiveRecord
::
Base
...
...
app/models/identity.rb
浏览文件 @
7a8fcc73
...
...
@@ -6,6 +6,8 @@
# extern_uid :string(255)
# provider :string(255)
# user_id :integer
# created_at :datetime
# updated_at :datetime
#
class
Identity
<
ActiveRecord
::
Base
...
...
app/models/project_services/asana_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,15 +2,15 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
...
...
app/models/project_services/assembla_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,15 +2,15 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
...
...
app/models/project_services/bamboo_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,15 +2,15 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
...
...
app/models/project_services/buildbox_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,20 +2,21 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
#
require
"addressable/uri"
class
BuildboxService
<
CiService
...
...
app/models/project_services/campfire_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,15 +2,15 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
...
...
app/models/project_services/ci_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,19 +2,19 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# push_events :boolean
# issues_events :boolean
# merge_requests_events :boolean
# tag_push_events :boolean
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean
default(TRUE)
# issues_events :boolean
default(TRUE)
# merge_requests_events :boolean
default(TRUE)
# tag_push_events :boolean
default(TRUE)
#
# Base class for CI services
...
...
app/models/project_services/custom_issue_tracker_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,15 +2,19 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
#
class
CustomIssueTrackerService
<
IssueTrackerService
...
...
app/models/project_services/emails_on_push_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,19 +2,19 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# push_events :boolean
# issues_events :boolean
# merge_requests_events :boolean
# tag_push_events :boolean
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean
default(TRUE)
# issues_events :boolean
default(TRUE)
# merge_requests_events :boolean
default(TRUE)
# tag_push_events :boolean
default(TRUE)
#
class
EmailsOnPushService
<
Service
...
...
app/models/project_services/flowdock_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,19 +2,19 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# push_events :boolean
# issues_events :boolean
# merge_requests_events :boolean
# tag_push_events :boolean
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean
default(TRUE)
# issues_events :boolean
default(TRUE)
# merge_requests_events :boolean
default(TRUE)
# tag_push_events :boolean
default(TRUE)
#
require
"flowdock-git-hook"
...
...
app/models/project_services/gemnasium_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,19 +2,19 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# push_events :boolean
# issues_events :boolean
# merge_requests_events :boolean
# tag_push_events :boolean
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean
default(TRUE)
# issues_events :boolean
default(TRUE)
# merge_requests_events :boolean
default(TRUE)
# tag_push_events :boolean
default(TRUE)
#
require
"gemnasium/gitlab_service"
...
...
app/models/project_services/gitlab_ci_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,19 +2,19 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# push_events :boolean
# issues_events :boolean
# merge_requests_events :boolean
# tag_push_events :boolean
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean
default(TRUE)
# issues_events :boolean
default(TRUE)
# merge_requests_events :boolean
default(TRUE)
# tag_push_events :boolean
default(TRUE)
#
class
GitlabCiService
<
CiService
...
...
app/models/project_services/gitlab_issue_tracker_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,15 +2,15 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
...
...
app/models/project_services/hipchat_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,19 +2,19 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# push_events :boolean
# issues_events :boolean
# merge_requests_events :boolean
# tag_push_events :boolean
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean
default(TRUE)
# issues_events :boolean
default(TRUE)
# merge_requests_events :boolean
default(TRUE)
# tag_push_events :boolean
default(TRUE)
#
class
HipchatService
<
Service
...
...
app/models/project_services/irker_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,15 +2,20 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
#
require
'uri'
...
...
app/models/project_services/issue_tracker_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,15 +2,15 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
...
...
app/models/project_services/jira_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,15 +2,15 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
...
...
app/models/project_services/pivotaltracker_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,15 +2,15 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
...
...
app/models/project_services/pushover_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,15 +2,15 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
...
...
app/models/project_services/redmine_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,15 +2,15 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
...
...
app/models/project_services/slack_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,15 +2,15 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
...
...
app/models/project_services/teamcity_service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,15 +2,15 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
...
...
app/models/service.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,19 +2,19 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# push_events :boolean
# issues_events :boolean
# merge_requests_events :boolean
# tag_push_events :boolean
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean
default(TRUE)
# issues_events :boolean
default(TRUE)
# merge_requests_events :boolean
default(TRUE)
# tag_push_events :boolean
default(TRUE)
#
# To add new service you should build a class inherited from Service
...
...
app/models/user.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,51 +2,53 @@
#
# Table name: users
#
# id :integer not null, primary key
# email :string(255) default(""), not null
# encrypted_password :string(255) default(""), not null
# reset_password_token :string(255)
# reset_password_sent_at :datetime
# remember_created_at :datetime
# sign_in_count :integer default(0)
# current_sign_in_at :datetime
# last_sign_in_at :datetime
# current_sign_in_ip :string(255)
# last_sign_in_ip :string(255)
# created_at :datetime
# updated_at :datetime
# name :string(255)
# admin :boolean default(FALSE), not null
# projects_limit :integer default(10)
# skype :string(255) default(""), not null
# linkedin :string(255) default(""), not null
# twitter :string(255) default(""), not null
# authentication_token :string(255)
# theme_id :integer default(1), not null
# bio :string(255)
# failed_attempts :integer default(0)
# locked_at :datetime
# username :string(255)
# can_create_group :boolean default(TRUE), not null
# can_create_team :boolean default(TRUE), not null
# state :string(255)
# color_scheme_id :integer default(1), not null
# notification_level :integer default(1), not null
# password_expires_at :datetime
# created_by_id :integer
# avatar :string(255)
# confirmation_token :string(255)
# confirmed_at :datetime
# confirmation_sent_at :datetime
# unconfirmed_email :string(255)
# hide_no_ssh_key :boolean default(FALSE)
# hide_no_password :boolean default(FALSE)
# website_url :string(255) default(""), not null
# last_credential_check_at :datetime
# github_access_token :string(255)
# notification_email :string(255)
# password_automatically_set :boolean default(FALSE)
# bitbucket_access_token :string(255)
# id :integer not null, primary key
# email :string(255) default(""), not null
# encrypted_password :string(255) default(""), not null
# reset_password_token :string(255)
# reset_password_sent_at :datetime
# remember_created_at :datetime
# sign_in_count :integer default(0)
# current_sign_in_at :datetime
# last_sign_in_at :datetime
# current_sign_in_ip :string(255)
# last_sign_in_ip :string(255)
# created_at :datetime
# updated_at :datetime
# name :string(255)
# admin :boolean default(FALSE), not null
# projects_limit :integer default(10)
# skype :string(255) default(""), not null
# linkedin :string(255) default(""), not null
# twitter :string(255) default(""), not null
# authentication_token :string(255)
# theme_id :integer default(1), not null
# bio :string(255)
# failed_attempts :integer default(0)
# locked_at :datetime
# username :string(255)
# can_create_group :boolean default(TRUE), not null
# can_create_team :boolean default(TRUE), not null
# state :string(255)
# color_scheme_id :integer default(1), not null
# notification_level :integer default(1), not null
# password_expires_at :datetime
# created_by_id :integer
# last_credential_check_at :datetime
# avatar :string(255)
# confirmation_token :string(255)
# confirmed_at :datetime
# confirmation_sent_at :datetime
# unconfirmed_email :string(255)
# hide_no_ssh_key :boolean default(FALSE)
# website_url :string(255) default(""), not null
# github_access_token :string(255)
# gitlab_access_token :string(255)
# notification_email :string(255)
# hide_no_password :boolean default(FALSE)
# password_automatically_set :boolean default(FALSE)
# bitbucket_access_token :string(255)
# bitbucket_access_token_secret :string(255)
#
require
'carrierwave/orm/activerecord'
...
...
spec/models/application_setting_spec.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,16 +2,17 @@
#
# Table name: application_settings
#
# id :integer not null, primary key
# default_projects_limit :integer
# default_branch_protection :integer
# signup_enabled :boolean
# signin_enabled :boolean
# gravatar_enabled :boolean
# sign_in_text :text
# created_at :datetime
# updated_at :datetime
# home_page_url :string(255)
# id :integer not null, primary key
# default_projects_limit :integer
# signup_enabled :boolean
# signin_enabled :boolean
# gravatar_enabled :boolean
# sign_in_text :text
# created_at :datetime
# updated_at :datetime
# home_page_url :string(255)
# default_branch_protection :integer default(2)
# twitter_sharing_enabled :boolean default(TRUE)
#
require
'spec_helper'
...
...
spec/models/asana_service_spec.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,14 +2,19 @@
#
# 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
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
#
require
'spec_helper'
...
...
spec/models/project_services/assembla_service_spec.rb
浏览文件 @
7a8fcc73
...
...
@@ -5,15 +5,16 @@
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
not null
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# push_events :boolean
# issues_events :boolean
# merge_requests_events :boolean
# tag_push_events :boolean
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
#
require
'spec_helper'
...
...
spec/models/project_services/buildbox_service_spec.rb
浏览文件 @
7a8fcc73
...
...
@@ -5,15 +5,16 @@
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
not null
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# push_events :boolean
# issues_events :boolean
# merge_requests_events :boolean
# tag_push_events :boolean
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
#
require
'spec_helper'
...
...
spec/models/project_services/flowdock_service_spec.rb
浏览文件 @
7a8fcc73
...
...
@@ -5,15 +5,16 @@
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
not null
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# push_events :boolean
# issues_events :boolean
# merge_requests_events :boolean
# tag_push_events :boolean
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
#
require
'spec_helper'
...
...
spec/models/project_services/gemnasium_service_spec.rb
浏览文件 @
7a8fcc73
...
...
@@ -5,15 +5,16 @@
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
not null
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# push_events :boolean
# issues_events :boolean
# merge_requests_events :boolean
# tag_push_events :boolean
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
#
require
'spec_helper'
...
...
spec/models/project_services/gitlab_ci_service_spec.rb
浏览文件 @
7a8fcc73
...
...
@@ -5,15 +5,16 @@
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
not null
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# push_events :boolean
# issues_events :boolean
# merge_requests_events :boolean
# tag_push_events :boolean
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
#
require
'spec_helper'
...
...
spec/models/project_services/gitlab_issue_tracker_service_spec.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,16 +2,21 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
#
require
'spec_helper'
describe
GitlabIssueTrackerService
do
...
...
spec/models/project_services/irker_service_spec.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,14 +2,19 @@
#
# 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
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
#
require
'spec_helper'
...
...
spec/models/project_services/jira_service_spec.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,14 +2,19 @@
#
# 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
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
#
require
'spec_helper'
...
...
spec/models/project_services/pushover_service_spec.rb
浏览文件 @
7a8fcc73
...
...
@@ -5,15 +5,16 @@
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
not null
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# push_events :boolean
# issues_events :boolean
# merge_requests_events :boolean
# tag_push_events :boolean
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
#
require
'spec_helper'
...
...
spec/models/project_services/slack_service_spec.rb
浏览文件 @
7a8fcc73
...
...
@@ -5,15 +5,16 @@
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
not null
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# push_events :boolean
# issues_events :boolean
# merge_requests_events :boolean
# tag_push_events :boolean
# template :boolean default(FALSE)
# push_events :boolean default(TRUE)
# issues_events :boolean default(TRUE)
# merge_requests_events :boolean default(TRUE)
# tag_push_events :boolean default(TRUE)
#
require
'spec_helper'
...
...
spec/models/service_spec.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,19 +2,19 @@
#
# Table name: services
#
# id :integer not null, primary key
# type :string(255)
# title :string(255)
# project_id :integer
# created_at :datetime
# updated_at :datetime
# active :boolean default(FALSE), not null
# properties :text
# template :boolean default(FALSE)
# push_events :boolean
# issues_events :boolean
# merge_requests_events :boolean
# tag_push_events :boolean
# id
:integer not null, primary key
# type
:string(255)
# title
:string(255)
# project_id
:integer
# created_at
:datetime
# updated_at
:datetime
# active
:boolean default(FALSE), not null
# properties
:text
# template
:boolean default(FALSE)
# push_events :boolean
default(TRUE)
# issues_events :boolean
default(TRUE)
# merge_requests_events :boolean
default(TRUE)
# tag_push_events :boolean
default(TRUE)
#
require
'spec_helper'
...
...
spec/models/user_spec.rb
浏览文件 @
7a8fcc73
...
...
@@ -2,47 +2,53 @@
#
# Table name: users
#
# id :integer not null, primary key
# email :string(255) default(""), not null
# encrypted_password :string(255) default(""), not null
# reset_password_token :string(255)
# reset_password_sent_at :datetime
# remember_created_at :datetime
# sign_in_count :integer default(0)
# current_sign_in_at :datetime
# last_sign_in_at :datetime
# current_sign_in_ip :string(255)
# last_sign_in_ip :string(255)
# created_at :datetime
# updated_at :datetime
# name :string(255)
# admin :boolean default(FALSE), not null
# projects_limit :integer default(10)
# skype :string(255) default(""), not null
# linkedin :string(255) default(""), not null
# twitter :string(255) default(""), not null
# authentication_token :string(255)
# theme_id :integer default(1), not null
# bio :string(255)
# failed_attempts :integer default(0)
# locked_at :datetime
# username :string(255)
# can_create_group :boolean default(TRUE), not null
# can_create_team :boolean default(TRUE), not null
# state :string(255)
# color_scheme_id :integer default(1), not null
# notification_level :integer default(1), not null
# password_expires_at :datetime
# created_by_id :integer
# avatar :string(255)
# confirmation_token :string(255)
# confirmed_at :datetime
# confirmation_sent_at :datetime
# unconfirmed_email :string(255)
# hide_no_ssh_key :boolean default(FALSE)
# website_url :string(255) default(""), not null
# last_credential_check_at :datetime
# github_access_token :string(255)
# id :integer not null, primary key
# email :string(255) default(""), not null
# encrypted_password :string(255) default(""), not null
# reset_password_token :string(255)
# reset_password_sent_at :datetime
# remember_created_at :datetime
# sign_in_count :integer default(0)
# current_sign_in_at :datetime
# last_sign_in_at :datetime
# current_sign_in_ip :string(255)
# last_sign_in_ip :string(255)
# created_at :datetime
# updated_at :datetime
# name :string(255)
# admin :boolean default(FALSE), not null
# projects_limit :integer default(10)
# skype :string(255) default(""), not null
# linkedin :string(255) default(""), not null
# twitter :string(255) default(""), not null
# authentication_token :string(255)
# theme_id :integer default(1), not null
# bio :string(255)
# failed_attempts :integer default(0)
# locked_at :datetime
# username :string(255)
# can_create_group :boolean default(TRUE), not null
# can_create_team :boolean default(TRUE), not null
# state :string(255)
# color_scheme_id :integer default(1), not null
# notification_level :integer default(1), not null
# password_expires_at :datetime
# created_by_id :integer
# last_credential_check_at :datetime
# avatar :string(255)
# confirmation_token :string(255)
# confirmed_at :datetime
# confirmation_sent_at :datetime
# unconfirmed_email :string(255)
# hide_no_ssh_key :boolean default(FALSE)
# website_url :string(255) default(""), not null
# github_access_token :string(255)
# gitlab_access_token :string(255)
# notification_email :string(255)
# hide_no_password :boolean default(FALSE)
# password_automatically_set :boolean default(FALSE)
# bitbucket_access_token :string(255)
# bitbucket_access_token_secret :string(255)
#
require
'spec_helper'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录