hubstats 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/hubstats/comment.rb +2 -3
- data/app/models/hubstats/pull_request.rb +2 -2
- data/app/models/hubstats/repo.rb +2 -2
- data/app/models/hubstats/user.rb +2 -3
- data/lib/hubstats/events_handler.rb +2 -3
- data/lib/hubstats/version.rb +1 -1
- data/test/dummy/log/development.log +0 -0
- data/test/dummy/log/test.log +179 -0
- data/test/dummy/tmp/cache/assets/CAD/3D0/sprockets%2F781852b612e12270af6602bdb8f985a4 +0 -0
- data/test/dummy/tmp/cache/assets/CBC/4C0/sprockets%2F43796510bea9e088167ff07f3d0a8484 +0 -0
- data/test/dummy/tmp/cache/assets/CE1/620/sprockets%2F2eaf40f9364d1a5fc929f615681430e2 +0 -0
- data/test/dummy/tmp/cache/assets/D20/FF0/sprockets%2F941bab9382328e98fd569386d1ec0af5 +0 -0
- data/test/dummy/tmp/cache/assets/D81/B70/sprockets%2F7b0f8c0b8a0e320eaaa66e350144e3bb +0 -0
- metadata +1 -3
- data/test/dummy/tmp/pids/server.pid +0 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NGJkYzE4MWNlZmJjOWQwNDk3Y2UwZWI5ZThmM2NmMzQ3YjdjZWIzNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWI0NWZmNTU0N2NlNTQ3MWU1MzEwNzc3ZWQwOTllNmNjMGYzYTI0NA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2RlOGE4NGM0YWI3NDIxNDdkMDhjMzU3ZGFlZDBlMGFjYWEzMGRmZWY5NGJl
|
10
|
+
ZjI4Y2FkNDk5MzRkNGEyMGUzNTY4MTNkZjFkZTBlNDk2OGVjOTNjZjY0ZDg2
|
11
|
+
NDgxYmE3NDBhMWI5NjI1NmI4NDk4NWYzNGFiOTMyNTkwNmJiZjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDdkMmUxNTU2ZDUxOTFhZGM2MzVkNzRlNmZlZjc4MmRmYWE3NDQxMTJkZjQy
|
14
|
+
NjZmYmM4YjFhOWQ4NDQ4NTYyNjE0Nzc5YWY1OTJhNmE0YTJkMjc4ZDQ4Mzcw
|
15
|
+
OWRiZWVlM2JjYTc1NTVmOGY3MWYxMTIwZDJmYmUzYzc3NjUyMDM=
|
@@ -24,8 +24,7 @@ module Hubstats
|
|
24
24
|
|
25
25
|
|
26
26
|
def self.create_or_update(github_comment)
|
27
|
-
|
28
|
-
github_comment = github_comment.to_h if github_comment.respond_to? :to_h
|
27
|
+
github_comment = github_comment.to_h.with_indifferent_access if github_comment.respond_to? :to_h
|
29
28
|
|
30
29
|
user = Hubstats::User.create_or_update(github_comment[:user])
|
31
30
|
github_comment[:user_id] = user.id
|
@@ -41,7 +40,7 @@ module Hubstats
|
|
41
40
|
|
42
41
|
comment = where(:id => comment_data[:id]).first_or_create(comment_data)
|
43
42
|
return comment if comment.update_attributes(comment_data)
|
44
|
-
|
43
|
+
Rails.logger.warn comment.errors.inspect
|
45
44
|
end
|
46
45
|
|
47
46
|
end
|
@@ -23,7 +23,7 @@ module Hubstats
|
|
23
23
|
has_and_belongs_to_many :labels, :join_table => 'hubstats_labels_pull_requests'
|
24
24
|
|
25
25
|
def self.create_or_update(github_pull)
|
26
|
-
github_pull = github_pull.to_h if github_pull.respond_to? :to_h
|
26
|
+
github_pull = github_pull.to_h.with_indifferent_access if github_pull.respond_to? :to_h
|
27
27
|
|
28
28
|
user = Hubstats::User.create_or_update(github_pull[:user])
|
29
29
|
github_pull[:user_id] = user.id
|
@@ -36,7 +36,7 @@ module Hubstats
|
|
36
36
|
|
37
37
|
pull = where(:id => pull_data[:id]).first_or_create(pull_data)
|
38
38
|
return pull if pull.update_attributes(pull_data)
|
39
|
-
Rails.logger.
|
39
|
+
Rails.logger.warn pull.errors.inspect
|
40
40
|
end
|
41
41
|
|
42
42
|
def add_labels(labels)
|
data/app/models/hubstats/repo.rb
CHANGED
@@ -15,7 +15,7 @@ module Hubstats
|
|
15
15
|
belongs_to :owner, :class_name => "User", :foreign_key => "id"
|
16
16
|
|
17
17
|
def self.create_or_update(github_repo)
|
18
|
-
github_repo = github_repo.to_h if github_repo.respond_to? :to_h
|
18
|
+
github_repo = github_repo.to_h.with_indifferent_access if github_repo.respond_to? :to_h
|
19
19
|
repo_data = github_repo.slice(*column_names.map(&:to_sym))
|
20
20
|
|
21
21
|
if github_repo[:owner]
|
@@ -25,7 +25,7 @@ module Hubstats
|
|
25
25
|
|
26
26
|
repo = where(:id => repo_data[:id]).first_or_create(repo_data)
|
27
27
|
return repo if repo.update_attributes(repo_data)
|
28
|
-
Rails.logger.
|
28
|
+
Rails.logger.warn repo.errors.inspect
|
29
29
|
end
|
30
30
|
|
31
31
|
def to_param
|
data/app/models/hubstats/user.rb
CHANGED
@@ -62,15 +62,14 @@ module Hubstats
|
|
62
62
|
has_many :pull_requests
|
63
63
|
|
64
64
|
def self.create_or_update(github_user)
|
65
|
-
logger.warn github_user.inspect
|
66
65
|
github_user[:role] = github_user.delete :type ##changing :type in to :role
|
67
|
-
github_user = github_user.to_h unless github_user.is_a? Hash
|
66
|
+
github_user = github_user.to_h.with_indifferent_access unless github_user.is_a? Hash
|
68
67
|
|
69
68
|
user_data = github_user.slice(*Hubstats::User.column_names.map(&:to_sym))
|
70
69
|
|
71
70
|
user = Hubstats::User.where(:id => user_data[:id]).first_or_create(user_data)
|
72
71
|
return user if user.update_attributes(user_data)
|
73
|
-
Rails.logger.
|
72
|
+
Rails.logger.warn user.errors.inspect
|
74
73
|
end
|
75
74
|
|
76
75
|
def self.with_pulls_or_comments(time, repo_id = nil)
|
@@ -18,7 +18,7 @@ module Hubstats
|
|
18
18
|
pull_request = payload[:pull_request]
|
19
19
|
pull_request[:repository] = payload[:repository]
|
20
20
|
|
21
|
-
Hubstats::PullRequest.create_or_update(pull_request)
|
21
|
+
Hubstats::PullRequest.create_or_update(pull_request.with_indifferent_access)
|
22
22
|
end
|
23
23
|
|
24
24
|
def comment_processor(payload,kind)
|
@@ -27,8 +27,7 @@ module Hubstats
|
|
27
27
|
comment[:repo_id] = payload[:repository][:id]
|
28
28
|
comment[:pull_number] = get_pull_number(payload)
|
29
29
|
|
30
|
-
|
31
|
-
Hubstats::Comment.create_or_update(comment)
|
30
|
+
Hubstats::Comment.create_or_update(comment.with_indifferent_access)
|
32
31
|
end
|
33
32
|
|
34
33
|
#grabs the number off of anyone of the various places it can be
|
data/lib/hubstats/version.rb
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -15903,3 +15903,182 @@ Connecting to database specified by database.yml
|
|
15903
15903
|
[1m[35m (0.2ms)[0m UPDATE `hubstats_users` SET `login` = 'elliothursh', `updated_at` = '2014-07-07 18:51:29' WHERE `hubstats_users`.`id` = 10
|
15904
15904
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15905
15905
|
[1m[35m (0.7ms)[0m ROLLBACK
|
15906
|
+
Connecting to database specified by database.yml
|
15907
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
15908
|
+
Mysql2::Error: Table 'hubstats_test.hubstats_users' doesn't exist: SHOW FULL FIELDS FROM `hubstats_users`
|
15909
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
15910
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
15911
|
+
Mysql2::Error: Table 'hubstats_test.hubstats_users' doesn't exist: SHOW FULL FIELDS FROM `hubstats_users`
|
15912
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
15913
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
15914
|
+
Mysql2::Error: Table 'hubstats_test.hubstats_users' doesn't exist: SHOW FULL FIELDS FROM `hubstats_users`
|
15915
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
15916
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
15917
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
15918
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
15919
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
15920
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
15921
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
15922
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
15923
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
15924
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
15925
|
+
Mysql2::Error: Table 'hubstats_test.hubstats_repos' doesn't exist: SHOW FULL FIELDS FROM `hubstats_repos`
|
15926
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
15927
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
15928
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
15929
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
15930
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
15931
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
15932
|
+
Mysql2::Error: Table 'hubstats_test.hubstats_users' doesn't exist: SHOW FULL FIELDS FROM `hubstats_users`
|
15933
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
15934
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
15935
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
15936
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
15937
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
15938
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
15939
|
+
Mysql2::Error: Table 'hubstats_test.hubstats_users' doesn't exist: SHOW FULL FIELDS FROM `hubstats_users`
|
15940
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
15941
|
+
Connecting to database specified by database.yml
|
15942
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
15943
|
+
[1m[35mHubstats::User Load (0.3ms)[0m SELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 0 LIMIT 1
|
15944
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
15945
|
+
[1m[35mHubstats::User Exists (0.2ms)[0m SELECT 1 AS one FROM `hubstats_users` WHERE `hubstats_users`.`id` = BINARY 0 LIMIT 1
|
15946
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `hubstats_users` (`avatar_url`, `created_at`, `events_url`, `followers_url`, `following_url`, `gists_url`, `gravatar_id`, `html_url`, `id`, `login`, `organizations_url`, `received_events_url`, `repos_url`, `role`, `site_admin`, `starred_url`, `subscriptions_url`, `updated_at`, `url`) VALUES (NULL, '2014-07-11 19:50:52', NULL, NULL, NULL, NULL, NULL, NULL, 0, 'cleo', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-11 19:50:52', NULL)[0m
|
15947
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
15948
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
15949
|
+
[1m[35mHubstats::User Exists (0.2ms)[0m SELECT 1 AS one FROM `hubstats_users` WHERE (`hubstats_users`.`id` = BINARY 0 AND `hubstats_users`.`id` != 0) LIMIT 1
|
15950
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15951
|
+
[1m[35mHubstats::Repo Load (0.3ms)[0m SELECT `hubstats_repos`.* FROM `hubstats_repos` WHERE `hubstats_repos`.`id` = 101010 LIMIT 1
|
15952
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
15953
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `hubstats_repos` (`clone_url`, `contributors_url`, `created_at`, `default_branch`, `description`, `events_url`, `fork`, `forks_count`, `full_name`, `git_commits_url`, `git_url`, `has_downloads`, `has_issues`, `has_wiki`, `homepage`, `hooks_url`, `html_url`, `id`, `issue_comment_url`, `issue_events_url`, `issues_url`, `labels_url`, `language`, `merges_url`, `mirror_url`, `name`, `open_issues_count`, `owner_id`, `private`, `pulls_url`, `pushed_at`, `size`, `ssh_url`, `stargazers_count`, `svn_url`, `updated_at`, `url`, `watches_count`) VALUES (NULL, NULL, '2014-07-11 19:50:52', NULL, NULL, NULL, NULL, NULL, 'hub/hubstats', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 101010, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Hubstats', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-11 19:50:52', NULL, NULL)
|
15954
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15955
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
15956
|
+
[1m[36m (33.2ms)[0m [1mUPDATE `hubstats_repos` SET `updated_at` = NULL WHERE `hubstats_repos`.`id` = 101010[0m
|
15957
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
15958
|
+
[1m[36mHubstats::PullRequest Load (0.2ms)[0m [1mSELECT `hubstats_pull_requests`.* FROM `hubstats_pull_requests` WHERE `hubstats_pull_requests`.`id` = 328771 LIMIT 1[0m
|
15959
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
15960
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `hubstats_pull_requests` (`additions`, `body`, `changed_files`, `closed_at`, `comments`, `comments_url`, `commits`, `commits_url`, `created_at`, `deletions`, `diff_url`, `html_url`, `id`, `issue_url`, `merge_commit_sha`, `mergeable`, `merged`, `merged_at`, `number`, `patch_url`, `repo_id`, `review_comment_url`, `review_comments_url`, `state`, `statuses_url`, `title`, `updated_at`, `url`, `user_id`) VALUES (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-11 19:50:52', NULL, NULL, NULL, 328771, NULL, NULL, NULL, NULL, NULL, 0, NULL, 101010, NULL, NULL, NULL, NULL, NULL, '2014-07-11 19:50:52', NULL, 0)[0m
|
15961
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
15962
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
15963
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
15964
|
+
[1m[36m (24.5ms)[0m [1mROLLBACK[0m
|
15965
|
+
[1m[35m (0.1ms)[0m BEGIN
|
15966
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
15967
|
+
[1m[35m (0.1ms)[0m BEGIN
|
15968
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
15969
|
+
[1m[35m (0.1ms)[0m BEGIN
|
15970
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
15971
|
+
[1m[35m (0.0ms)[0m BEGIN
|
15972
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
15973
|
+
[1m[35m (0.0ms)[0m BEGIN
|
15974
|
+
[1m[36mHubstats::Repo Load (0.2ms)[0m [1mSELECT `hubstats_repos`.* FROM `hubstats_repos` WHERE `hubstats_repos`.`id` = 151 LIMIT 1[0m
|
15975
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
15976
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `hubstats_repos` (`clone_url`, `contributors_url`, `created_at`, `default_branch`, `description`, `events_url`, `fork`, `forks_count`, `full_name`, `git_commits_url`, `git_url`, `has_downloads`, `has_issues`, `has_wiki`, `homepage`, `hooks_url`, `html_url`, `id`, `issue_comment_url`, `issue_events_url`, `issues_url`, `labels_url`, `language`, `merges_url`, `mirror_url`, `name`, `open_issues_count`, `owner_id`, `private`, `pulls_url`, `pushed_at`, `size`, `ssh_url`, `stargazers_count`, `svn_url`, `updated_at`, `url`, `watches_count`) VALUES (NULL, NULL, '2014-07-11 19:50:52', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 151, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'HellWorld', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-11 19:50:52', NULL, NULL)[0m
|
15977
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
15978
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
15979
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
15980
|
+
[1m[36mHubstats::User Load (0.1ms)[0m [1mSELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 10 LIMIT 1[0m
|
15981
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
15982
|
+
[1m[36mHubstats::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE `hubstats_users`.`id` = BINARY 10 LIMIT 1[0m
|
15983
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO `hubstats_users` (`avatar_url`, `created_at`, `events_url`, `followers_url`, `following_url`, `gists_url`, `gravatar_id`, `html_url`, `id`, `login`, `organizations_url`, `received_events_url`, `repos_url`, `role`, `site_admin`, `starred_url`, `subscriptions_url`, `updated_at`, `url`) VALUES (NULL, '2014-07-11 19:50:52', NULL, NULL, NULL, NULL, NULL, NULL, 10, 'elliothursh', NULL, NULL, NULL, 'User', NULL, NULL, NULL, '2014-07-11 19:50:52', NULL)
|
15984
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15985
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
15986
|
+
[1m[36mHubstats::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE (`hubstats_users`.`id` = BINARY 10 AND `hubstats_users`.`id` != 10) LIMIT 1[0m
|
15987
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
15988
|
+
[1m[36mHubstats::Repo Load (0.2ms)[0m [1mSELECT `hubstats_repos`.* FROM `hubstats_repos` WHERE `hubstats_repos`.`id` = 151 LIMIT 1[0m
|
15989
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
15990
|
+
[1m[36m (0.2ms)[0m [1mUPDATE `hubstats_repos` SET `updated_at` = NULL WHERE `hubstats_repos`.`id` = 151[0m
|
15991
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
15992
|
+
[1m[36mHubstats::PullRequest Load (0.2ms)[0m [1mSELECT `hubstats_pull_requests`.* FROM `hubstats_pull_requests` WHERE `hubstats_pull_requests`.`id` = 1000 LIMIT 1[0m
|
15993
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
15994
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `hubstats_pull_requests` (`additions`, `body`, `changed_files`, `closed_at`, `comments`, `comments_url`, `commits`, `commits_url`, `created_at`, `deletions`, `diff_url`, `html_url`, `id`, `issue_url`, `merge_commit_sha`, `mergeable`, `merged`, `merged_at`, `number`, `patch_url`, `repo_id`, `review_comment_url`, `review_comments_url`, `state`, `statuses_url`, `title`, `updated_at`, `url`, `user_id`) VALUES (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-11 19:50:52', NULL, NULL, NULL, 1000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 151, NULL, NULL, NULL, NULL, NULL, '2014-07-11 19:50:52', 'www.pull.com', 10)[0m
|
15995
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
15996
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
15997
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
15998
|
+
[1m[36mHubstats::User Load (0.2ms)[0m [1mSELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 10 LIMIT 1[0m
|
15999
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16000
|
+
[1m[36mHubstats::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE (`hubstats_users`.`id` = BINARY 10 AND `hubstats_users`.`id` != 10) LIMIT 1[0m
|
16001
|
+
[1m[35m (0.2ms)[0m UPDATE `hubstats_users` SET `role` = NULL, `updated_at` = '2014-07-11 19:50:52' WHERE `hubstats_users`.`id` = 10
|
16002
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16003
|
+
[1m[35mHubstats::Comment Load (0.3ms)[0m SELECT `hubstats_comments`.* FROM `hubstats_comments` WHERE `hubstats_comments`.`id` = 100 LIMIT 1
|
16004
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16005
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `hubstats_comments` (`body`, `commit_id`, `created_at`, `diff_hunk`, `html_url`, `id`, `kind`, `line`, `original_commit_id`, `original_position`, `path`, `position`, `pull_request_id`, `pull_request_url`, `repo_id`, `updated_at`, `url`, `user_id`) VALUES (NULL, NULL, '2014-07-11 19:50:53', NULL, NULL, 100, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'www.pull.com', NULL, '2014-07-11 19:50:53', NULL, 10)
|
16006
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16007
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16008
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16009
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
16010
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
16011
|
+
[1m[35mHubstats::User Load (0.2ms)[0m SELECT `hubstats_users`.* FROM `hubstats_users`
|
16012
|
+
[1m[36mHubstats::User Load (0.2ms)[0m [1mSELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 10 LIMIT 1[0m
|
16013
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16014
|
+
[1m[36mHubstats::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE `hubstats_users`.`id` = BINARY 10 LIMIT 1[0m
|
16015
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `hubstats_users` (`avatar_url`, `created_at`, `events_url`, `followers_url`, `following_url`, `gists_url`, `gravatar_id`, `html_url`, `id`, `login`, `organizations_url`, `received_events_url`, `repos_url`, `role`, `site_admin`, `starred_url`, `subscriptions_url`, `updated_at`, `url`) VALUES (NULL, '2014-07-11 19:50:53', NULL, NULL, NULL, NULL, NULL, NULL, 10, 'johnappleseed', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-11 19:50:53', NULL)
|
16016
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16017
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
16018
|
+
[1m[36mHubstats::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE (`hubstats_users`.`id` = BINARY 10 AND `hubstats_users`.`id` != 10) LIMIT 1[0m
|
16019
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16020
|
+
[1m[36mHubstats::User Load (0.1ms)[0m [1mSELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 10 LIMIT 1[0m
|
16021
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16022
|
+
[1m[36mHubstats::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE (`hubstats_users`.`id` = BINARY 10 AND `hubstats_users`.`id` != 10) LIMIT 1[0m
|
16023
|
+
[1m[35m (0.2ms)[0m UPDATE `hubstats_users` SET `login` = 'elliothursh', `updated_at` = '2014-07-11 19:50:53' WHERE `hubstats_users`.`id` = 10
|
16024
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16025
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
16026
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
16027
|
+
[1m[35mHubstats::User Load (0.1ms)[0m SELECT `hubstats_users`.* FROM `hubstats_users`
|
16028
|
+
[1m[36mHubstats::User Load (0.1ms)[0m [1mSELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 10 LIMIT 1[0m
|
16029
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16030
|
+
[1m[36mHubstats::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE `hubstats_users`.`id` = BINARY 10 LIMIT 1[0m
|
16031
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `hubstats_users` (`avatar_url`, `created_at`, `events_url`, `followers_url`, `following_url`, `gists_url`, `gravatar_id`, `html_url`, `id`, `login`, `organizations_url`, `received_events_url`, `repos_url`, `role`, `site_admin`, `starred_url`, `subscriptions_url`, `updated_at`, `url`) VALUES (NULL, '2014-07-11 19:50:53', NULL, NULL, NULL, NULL, NULL, NULL, 10, 'lance_lebsack', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-11 19:50:53', NULL)
|
16032
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16033
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16034
|
+
[1m[36mHubstats::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE (`hubstats_users`.`id` = BINARY 10 AND `hubstats_users`.`id` != 10) LIMIT 1[0m
|
16035
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16036
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
16037
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16038
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16039
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16040
|
+
[1m[36mHubstats::User Load (0.3ms)[0m [1mSELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 0 LIMIT 1[0m
|
16041
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16042
|
+
[1m[36mHubstats::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE `hubstats_users`.`id` = BINARY 0 LIMIT 1[0m
|
16043
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `hubstats_users` (`avatar_url`, `created_at`, `events_url`, `followers_url`, `following_url`, `gists_url`, `gravatar_id`, `html_url`, `id`, `login`, `organizations_url`, `received_events_url`, `repos_url`, `role`, `site_admin`, `starred_url`, `subscriptions_url`, `updated_at`, `url`) VALUES (NULL, '2014-07-11 19:50:53', NULL, NULL, NULL, NULL, NULL, NULL, 0, 'marisa_leannon', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-11 19:50:53', NULL)
|
16044
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16045
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
16046
|
+
[1m[36mHubstats::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE (`hubstats_users`.`id` = BINARY 0 AND `hubstats_users`.`id` != 0) LIMIT 1[0m
|
16047
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16048
|
+
[1m[36mHubstats::PullRequest Load (0.2ms)[0m [1mSELECT `hubstats_pull_requests`.* FROM `hubstats_pull_requests` WHERE `hubstats_pull_requests`.`repo_id` = 101010 AND `hubstats_pull_requests`.`number` = 0 LIMIT 1[0m
|
16049
|
+
[1m[35mHubstats::Comment Load (0.1ms)[0m SELECT `hubstats_comments`.* FROM `hubstats_comments` WHERE `hubstats_comments`.`id` = 259056 LIMIT 1
|
16050
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
16051
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO `hubstats_comments` (`body`, `commit_id`, `created_at`, `diff_hunk`, `html_url`, `id`, `kind`, `line`, `original_commit_id`, `original_position`, `path`, `position`, `pull_request_id`, `pull_request_url`, `repo_id`, `updated_at`, `url`, `user_id`) VALUES ('Dolore voluptate quibusdam sint error magni distinctio.', NULL, '2014-07-11 19:50:53', NULL, NULL, 259056, 'Issue', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 101010, '2014-07-11 19:50:53', NULL, 0)
|
16052
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16053
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16054
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16055
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
16056
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16057
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16058
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16059
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16060
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16061
|
+
[1m[35mHubstats::User Load (0.2ms)[0m SELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 0 LIMIT 1
|
16062
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16063
|
+
[1m[35mHubstats::User Exists (0.1ms)[0m SELECT 1 AS one FROM `hubstats_users` WHERE `hubstats_users`.`id` = BINARY 0 LIMIT 1
|
16064
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `hubstats_users` (`avatar_url`, `created_at`, `events_url`, `followers_url`, `following_url`, `gists_url`, `gravatar_id`, `html_url`, `id`, `login`, `organizations_url`, `received_events_url`, `repos_url`, `role`, `site_admin`, `starred_url`, `subscriptions_url`, `updated_at`, `url`) VALUES (NULL, '2014-07-11 19:50:53', NULL, NULL, NULL, NULL, NULL, NULL, 0, 'macy_schinner', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-11 19:50:53', NULL)[0m
|
16065
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16066
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16067
|
+
[1m[35mHubstats::User Exists (0.1ms)[0m SELECT 1 AS one FROM `hubstats_users` WHERE (`hubstats_users`.`id` = BINARY 0 AND `hubstats_users`.`id` != 0) LIMIT 1
|
16068
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16069
|
+
[1m[35mHubstats::Repo Load (0.2ms)[0m SELECT `hubstats_repos`.* FROM `hubstats_repos` WHERE `hubstats_repos`.`id` = 101010 LIMIT 1
|
16070
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16071
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `hubstats_repos` (`clone_url`, `contributors_url`, `created_at`, `default_branch`, `description`, `events_url`, `fork`, `forks_count`, `full_name`, `git_commits_url`, `git_url`, `has_downloads`, `has_issues`, `has_wiki`, `homepage`, `hooks_url`, `html_url`, `id`, `issue_comment_url`, `issue_events_url`, `issues_url`, `labels_url`, `language`, `merges_url`, `mirror_url`, `name`, `open_issues_count`, `owner_id`, `private`, `pulls_url`, `pushed_at`, `size`, `ssh_url`, `stargazers_count`, `svn_url`, `updated_at`, `url`, `watches_count`) VALUES (NULL, NULL, '2014-07-11 19:50:53', NULL, NULL, NULL, NULL, NULL, 'hub/hubstats', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 101010, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Hubstats', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-11 19:50:53', NULL, NULL)
|
16072
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16073
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16074
|
+
[1m[36m (0.2ms)[0m [1mUPDATE `hubstats_repos` SET `updated_at` = NULL WHERE `hubstats_repos`.`id` = 101010[0m
|
16075
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16076
|
+
[1m[36mHubstats::PullRequest Load (0.2ms)[0m [1mSELECT `hubstats_pull_requests`.* FROM `hubstats_pull_requests` WHERE `hubstats_pull_requests`.`id` = 410471 LIMIT 1[0m
|
16077
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16078
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `hubstats_pull_requests` (`additions`, `body`, `changed_files`, `closed_at`, `comments`, `comments_url`, `commits`, `commits_url`, `created_at`, `deletions`, `diff_url`, `html_url`, `id`, `issue_url`, `merge_commit_sha`, `mergeable`, `merged`, `merged_at`, `number`, `patch_url`, `repo_id`, `review_comment_url`, `review_comments_url`, `state`, `statuses_url`, `title`, `updated_at`, `url`, `user_id`) VALUES (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-11 19:50:53', NULL, NULL, NULL, 410471, NULL, NULL, NULL, NULL, NULL, 0, NULL, 101010, NULL, NULL, NULL, NULL, NULL, '2014-07-11 19:50:53', NULL, 0)[0m
|
16079
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16080
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
16081
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
16082
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
16083
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16084
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
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.0.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elliot Hursh
|
@@ -306,7 +306,6 @@ files:
|
|
306
306
|
- test/dummy/tmp/cache/assets/E10/920/sprockets%2Fe2793fe8a9f6773e8d2d5bececb01b7f
|
307
307
|
- test/dummy/tmp/cache/assets/E30/D10/sprockets%2F5be1e5ad45bde1dbd7fb9f8d720277ea
|
308
308
|
- test/dummy/tmp/cache/assets/E41/A20/sprockets%2F23cef5db9fa9d95cf84a2c688b5fe6ab
|
309
|
-
- test/dummy/tmp/pids/server.pid
|
310
309
|
- test/functional/hubstats/splash_controller_test.rb
|
311
310
|
- test/hubstats_test.rb
|
312
311
|
- test/integration/navigation_test.rb
|
@@ -442,7 +441,6 @@ test_files:
|
|
442
441
|
- test/dummy/tmp/cache/assets/E10/920/sprockets%2Fe2793fe8a9f6773e8d2d5bececb01b7f
|
443
442
|
- test/dummy/tmp/cache/assets/E30/D10/sprockets%2F5be1e5ad45bde1dbd7fb9f8d720277ea
|
444
443
|
- test/dummy/tmp/cache/assets/E41/A20/sprockets%2F23cef5db9fa9d95cf84a2c688b5fe6ab
|
445
|
-
- test/dummy/tmp/pids/server.pid
|
446
444
|
- test/functional/hubstats/splash_controller_test.rb
|
447
445
|
- test/hubstats_test.rb
|
448
446
|
- test/integration/navigation_test.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
90246
|