hubstats 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +1 -0
- data/app/models/hubstats/user.rb +0 -2
- data/lib/hubstats/version.rb +1 -1
- data/test/dummy/db/schema.rb +39 -39
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c835bd76a59e52582eff31cbe3c7dfbc6b59731f
|
4
|
+
data.tar.gz: 3b433da0d8e961a7987a1eef6219b5963da2d145
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18e939382d26dc3dbee69423f1938010276e21b9db424a72f415edc711abf1a46ceb45c97718ef6944c5a649057315e4f669fe737c805d942e348121593005ad
|
7
|
+
data.tar.gz: 83495a30f26f2b8df04ad7deb78a241fb277b51047589760f74bc3aa5562fc86ff2c0f0aa02514304be758a5352e4023762c756b92e7ff4d0b82a8abece744ba
|
data/CHANGELOG.markdown
CHANGED
data/app/models/hubstats/user.rb
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
module Hubstats
|
2
2
|
class User < ActiveRecord::Base
|
3
3
|
|
4
|
-
def self.record_timestamps; false; end
|
5
|
-
|
6
4
|
# Various checks that can be used to filter and find info about users.
|
7
5
|
scope :with_id, lambda {|user_id| where(id: user_id.split(',')) if user_id}
|
8
6
|
scope :only_active, having("comment_count > 0 OR pull_request_count > 0 OR deploy_count > 0")
|
data/lib/hubstats/version.rb
CHANGED
data/test/dummy/db/schema.rb
CHANGED
@@ -14,9 +14,13 @@
|
|
14
14
|
ActiveRecord::Schema.define(:version => 20150721193128) do
|
15
15
|
|
16
16
|
create_table "hubstats_comments", :force => true do |t|
|
17
|
-
t.string "
|
18
|
-
t.
|
19
|
-
t.
|
17
|
+
t.string "kind"
|
18
|
+
t.integer "user_id"
|
19
|
+
t.integer "pull_request_id"
|
20
|
+
t.integer "repo_id"
|
21
|
+
t.datetime "created_at"
|
22
|
+
t.datetime "updated_at"
|
23
|
+
t.string "body"
|
20
24
|
t.string "diff_hunk"
|
21
25
|
t.integer "path"
|
22
26
|
t.integer "position"
|
@@ -24,13 +28,9 @@ ActiveRecord::Schema.define(:version => 20150721193128) do
|
|
24
28
|
t.string "line"
|
25
29
|
t.string "commit_id"
|
26
30
|
t.string "original_commit_id"
|
27
|
-
t.string "
|
28
|
-
t.string "
|
29
|
-
t.
|
30
|
-
t.integer "pull_request_id"
|
31
|
-
t.integer "repo_id"
|
32
|
-
t.datetime "created_at", :null => false
|
33
|
-
t.datetime "updated_at", :null => false
|
31
|
+
t.string "html_url"
|
32
|
+
t.string "url"
|
33
|
+
t.string "pull_request_url"
|
34
34
|
end
|
35
35
|
|
36
36
|
add_index "hubstats_comments", ["pull_request_id"], :name => "index_hubstats_comments_on_pull_request_id"
|
@@ -61,6 +61,17 @@ ActiveRecord::Schema.define(:version => 20150721193128) do
|
|
61
61
|
add_index "hubstats_labels_pull_requests", ["pull_request_id"], :name => "index_hubstats_labels_pull_requests_on_pull_request_id"
|
62
62
|
|
63
63
|
create_table "hubstats_pull_requests", :force => true do |t|
|
64
|
+
t.integer "number"
|
65
|
+
t.integer "user_id"
|
66
|
+
t.integer "repo_id"
|
67
|
+
t.datetime "created_at"
|
68
|
+
t.datetime "updated_at"
|
69
|
+
t.datetime "closed_at"
|
70
|
+
t.integer "additions"
|
71
|
+
t.integer "deletions"
|
72
|
+
t.integer "comments"
|
73
|
+
t.integer "commits"
|
74
|
+
t.integer "changed_files"
|
64
75
|
t.string "url"
|
65
76
|
t.string "html_url"
|
66
77
|
t.string "diff_url"
|
@@ -71,23 +82,12 @@ ActiveRecord::Schema.define(:version => 20150721193128) do
|
|
71
82
|
t.string "review_comment_url"
|
72
83
|
t.string "comments_url"
|
73
84
|
t.string "statuses_url"
|
74
|
-
t.integer "number"
|
75
85
|
t.string "state"
|
76
86
|
t.string "title"
|
77
87
|
t.string "body"
|
78
|
-
t.datetime "created_at", :null => false
|
79
|
-
t.datetime "updated_at", :null => false
|
80
|
-
t.datetime "closed_at"
|
81
88
|
t.string "merge_commit_sha"
|
82
89
|
t.string "merged"
|
83
90
|
t.string "mergeable"
|
84
|
-
t.integer "comments"
|
85
|
-
t.integer "commits"
|
86
|
-
t.integer "additions"
|
87
|
-
t.integer "deletions"
|
88
|
-
t.integer "changed_files"
|
89
|
-
t.integer "user_id"
|
90
|
-
t.integer "repo_id"
|
91
91
|
t.integer "deploy_id"
|
92
92
|
t.integer "merged_by"
|
93
93
|
t.datetime "merged_at"
|
@@ -100,10 +100,24 @@ ActiveRecord::Schema.define(:version => 20150721193128) do
|
|
100
100
|
add_index "hubstats_pull_requests", ["user_id"], :name => "index_hubstats_pull_requests_on_user_id"
|
101
101
|
|
102
102
|
create_table "hubstats_repos", :force => true do |t|
|
103
|
+
t.integer "owner_id"
|
103
104
|
t.string "name"
|
104
105
|
t.string "full_name"
|
106
|
+
t.datetime "pushed_at"
|
107
|
+
t.datetime "created_at"
|
108
|
+
t.datetime "updated_at"
|
105
109
|
t.string "homepage"
|
106
110
|
t.string "language"
|
111
|
+
t.integer "forks_count"
|
112
|
+
t.integer "stargazers_count"
|
113
|
+
t.integer "watches_count"
|
114
|
+
t.integer "size"
|
115
|
+
t.integer "open_issues_count"
|
116
|
+
t.boolean "has_issues"
|
117
|
+
t.boolean "has_wiki"
|
118
|
+
t.boolean "has_downloads"
|
119
|
+
t.boolean "private"
|
120
|
+
t.boolean "fork"
|
107
121
|
t.string "description"
|
108
122
|
t.string "default_branch"
|
109
123
|
t.string "url"
|
@@ -123,20 +137,6 @@ ActiveRecord::Schema.define(:version => 20150721193128) do
|
|
123
137
|
t.string "issues_url"
|
124
138
|
t.string "pulls_url"
|
125
139
|
t.string "labels_url"
|
126
|
-
t.integer "forks_count"
|
127
|
-
t.integer "stargazers_count"
|
128
|
-
t.integer "watches_count"
|
129
|
-
t.integer "size"
|
130
|
-
t.integer "open_issues_count"
|
131
|
-
t.boolean "has_issues"
|
132
|
-
t.boolean "has_wiki"
|
133
|
-
t.boolean "has_downloads"
|
134
|
-
t.boolean "private"
|
135
|
-
t.boolean "fork"
|
136
|
-
t.datetime "pushed_at"
|
137
|
-
t.datetime "created_at", :null => false
|
138
|
-
t.datetime "updated_at", :null => false
|
139
|
-
t.integer "owner_id"
|
140
140
|
end
|
141
141
|
|
142
142
|
add_index "hubstats_repos", ["owner_id"], :name => "index_hubstats_repos_on_owner_id"
|
@@ -156,6 +156,10 @@ ActiveRecord::Schema.define(:version => 20150721193128) do
|
|
156
156
|
|
157
157
|
create_table "hubstats_users", :force => true do |t|
|
158
158
|
t.string "login"
|
159
|
+
t.string "role"
|
160
|
+
t.boolean "site_admin"
|
161
|
+
t.datetime "created_at", :null => false
|
162
|
+
t.datetime "updated_at", :null => false
|
159
163
|
t.string "avatar_url"
|
160
164
|
t.string "gravatar_id"
|
161
165
|
t.string "url"
|
@@ -169,10 +173,6 @@ ActiveRecord::Schema.define(:version => 20150721193128) do
|
|
169
173
|
t.string "repos_url"
|
170
174
|
t.string "events_url"
|
171
175
|
t.string "received_events_url"
|
172
|
-
t.string "role"
|
173
|
-
t.boolean "site_admin"
|
174
|
-
t.datetime "created_at", :null => false
|
175
|
-
t.datetime "updated_at", :null => false
|
176
176
|
end
|
177
177
|
|
178
178
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hubstats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elliot Hursh
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-07-
|
12
|
+
date: 2015-07-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|