hubstats 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.rdoc +28 -23
- data/app/controllers/hubstats/events_controller.rb +9 -1
- data/lib/generators/hubstats/install_generator.rb +0 -1
- data/lib/generators/hubstats/octokit.example.yml +5 -2
- data/lib/hubstats.rb +4 -0
- data/lib/hubstats/config.rb +40 -0
- data/lib/hubstats/github_api.rb +17 -4
- data/lib/hubstats/version.rb +1 -1
- data/lib/tasks/populate_task.rake +10 -3
- data/test/dummy/config/octokit.yml +5 -2
- data/test/dummy/log/development.log +0 -0
- data/test/dummy/log/test.log +358 -0
- metadata +3 -5
- data/lib/generators/hubstats/octokit.rb +0 -10
- data/test/dummy/config/initializers/octokit.rb +0 -10
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDIwZjQ4NTg1MjA4NzA1OTQ3ZTk4ZTVhYWUwNzFmMjE2ZWQ3YzMyYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Nzg3Y2I2Y2UxYWY5MDdkZjBlYzc3NmMzZGNiNTk4MjkzNjk2NzEyZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTVlZWY4ZWQ0YmJjZDY5ZWNjNTYwMTg4YjFkNTliNTBiNzgyYTAyZDZlNzY1
|
10
|
+
Yjc5OTdhMzc0Yjg4NzdhYTNjYjg0YjM4ZmI0MGQ5MDQ4NzFmMDFjNGY0YzRm
|
11
|
+
OTJlOTVjY2UwMWY3OTU1M2I3NjBhZTQwZDEwYWFiOGU4M2I2Zjc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2I0ZDMzZDg0Mjc3YjhiYzRiYjhmMTlhOTMxMjYxZTFlYmMwNjhhMzI4Nzli
|
14
|
+
ODA4NGQ2YmRjMGVkMjQ1ZTUyNjE3ZDVhMjFjZGE2ZmU1ODhkZTdkNjJhNWEw
|
15
|
+
NGYxN2NlODVkOGM2ZDM3NjZkMmFhMzM1OWJhNmE2NjRlMGU2NTU=
|
data/README.rdoc
CHANGED
@@ -1,29 +1,34 @@
|
|
1
1
|
= Hubstats
|
2
|
-
|
3
|
-
This project rocks and uses MIT-LICENSE.
|
4
|
-
|
5
|
-
= Authentication
|
6
|
-
Hubstats needs github credentials to access your repos, these can be setup in one of two ways.
|
7
|
-
== Environment Variables
|
8
|
-
Hubstats uses OAUTH access tokens stored in ENV["GITHUB_API_TOKEN"] or for Application Authentication in ENV["CLIENT_ID"] and ENV["CLIENT_SECRET"]
|
9
|
-
|
10
|
-
== octokit.yml
|
11
|
-
Hubstats can also pull credentials from a YAML file stored in your app's config folder.
|
12
|
-
Run rails generate hubstats:install from your app's directory to set it up.
|
13
|
-
|
14
|
-
= Configuration
|
15
|
-
Hubstats needs to know what repos for it to watch. You can set it to watch either an entire organization or a list of specific repos.
|
16
|
-
These are set in octokit.yml, if you used environment variables for Authentication, you still must generate the octokit.yml using rails generate hubstats:install.
|
2
|
+
Hubstats is a rails plugin which allows you to search and monitor pull requests made across a collection of repositories. It also gives extra statistics about users and pull-requests not found on GitHub.
|
17
3
|
|
18
4
|
= Setup
|
19
|
-
Run
|
20
|
-
Run rake hubstats:
|
21
|
-
|
5
|
+
Run rails generate hubstats:install
|
6
|
+
Run rake hubstats:install:migrations
|
7
|
+
Run rake hubstats:setup to run the necessary migrations and start pulling data from github.
|
8
|
+
Add 'mount Hubstats::Engine => "/hubstats"' to your apps routes file
|
9
|
+
|
10
|
+
=Configuration
|
11
|
+
== Authentication
|
12
|
+
Hubstats needs github credentials to access your repos, these can be setup in one of two ways.
|
13
|
+
=== octokit.yml
|
14
|
+
Add your GitHub API token or ClientID and Secret to octokit.yml
|
15
|
+
=== Environment Variables
|
16
|
+
Hubstats can also use OAUTH access tokens stored in ENV["GITHUB_API_TOKEN"] or for Application Authentication in ENV["CLIENT_ID"] and ENV["CLIENT_SECRET"], if for some reason you don't want to store them in octokit.yml.
|
17
|
+
==Webhooks
|
18
|
+
Hubstats uses GitHub webhooks to keep itself update. It requires you to set a secret as well as an endpoint to push to.
|
19
|
+
To generate a secret run:
|
20
|
+
ruby -rsecurerandom -e 'puts SecureRandom.hex(20)'
|
21
|
+
Set the endpoint to be:
|
22
|
+
www.yourdomain.com/hubstats/handler
|
23
|
+
==Repositories
|
24
|
+
Hubstats needs to know what repos for it to watch. You can set it to watch either an entire organization or a list of specific repos in octokit.yml.
|
22
25
|
|
23
26
|
|
24
27
|
=TL:DR
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
28
|
+
rails generate hubstats:install
|
29
|
+
configure octokit.yml
|
30
|
+
rake hubstats:install:migrations
|
31
|
+
rake hubstats:setup
|
32
|
+
Add 'mount Hubstats::Engine => "/hubstats"' to your routes file
|
33
|
+
|
34
|
+
This project rocks and uses MIT-LICENSE.
|
@@ -4,14 +4,22 @@ module Hubstats
|
|
4
4
|
class EventsController < ApplicationController
|
5
5
|
|
6
6
|
def handler
|
7
|
+
verify_signature(request)
|
8
|
+
|
7
9
|
kind = request.headers['X-Github-Event']
|
8
10
|
event = params.with_indifferent_access
|
9
|
-
|
10
11
|
eventsHandler = Hubstats::EventsHandler.new()
|
11
12
|
eventsHandler.route(event,kind)
|
12
13
|
|
13
14
|
render :nothing => true
|
14
15
|
end
|
15
16
|
|
17
|
+
private
|
18
|
+
def verify_signature(request)
|
19
|
+
request.body.rewind
|
20
|
+
payload_body = request.body.read
|
21
|
+
signature = 'sha1=' + OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha1'), Hubstats.config.webhook_endpoint, payload_body)
|
22
|
+
return 500, "Signatures didn't match!" unless Rack::Utils.secure_compare(signature, request.env['HTTP_X_HUB_SIGNATURE'])
|
23
|
+
end
|
16
24
|
end
|
17
25
|
end
|
@@ -1,8 +1,11 @@
|
|
1
|
-
|
1
|
+
github_auth: # Must include either access_token || (client_id && client_secret)
|
2
2
|
# access_token: <40 CHARACTER ACCESS TOKEN >
|
3
3
|
# client_id: <CLIENT ID>
|
4
4
|
# client_secret: <CLIENT SECRET>
|
5
5
|
|
6
|
-
|
6
|
+
github_config: # Must include either org_name || repo_list
|
7
7
|
# org_name: <ORGANIZATION NAME>
|
8
8
|
# repo_list: [<ARRAY OF REPOS>]
|
9
|
+
|
10
|
+
webhook_secret: #<40 CHARACTER ACCESS TOKEN >
|
11
|
+
webhook_endpoint: #<url of webhook enpoint>
|
data/lib/hubstats.rb
CHANGED
@@ -3,6 +3,7 @@ require "hub_helper"
|
|
3
3
|
require "hubstats/github_api"
|
4
4
|
require "hubstats/events_handler"
|
5
5
|
require "active_support/core_ext/numeric"
|
6
|
+
require "hubstats/config"
|
6
7
|
|
7
8
|
|
8
9
|
module Hubstats
|
@@ -32,4 +33,7 @@ module Hubstats
|
|
32
33
|
}
|
33
34
|
]
|
34
35
|
|
36
|
+
def self.config
|
37
|
+
@@config ||= Hubstats::Config.parse
|
38
|
+
end
|
35
39
|
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require "date" # necessary to get the Date.today convenience method
|
2
|
+
require "yaml"
|
3
|
+
|
4
|
+
module Hubstats
|
5
|
+
class Config
|
6
|
+
def initialize(attributes={})
|
7
|
+
assign attributes
|
8
|
+
end
|
9
|
+
|
10
|
+
def github_auth
|
11
|
+
@github_auth
|
12
|
+
end
|
13
|
+
|
14
|
+
def github_config
|
15
|
+
@github_config
|
16
|
+
end
|
17
|
+
|
18
|
+
def webhook_secret
|
19
|
+
@webhook_secret
|
20
|
+
end
|
21
|
+
|
22
|
+
def webhook_endpoint
|
23
|
+
@webhook_endpoint
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.parse
|
27
|
+
new(attributes_from_file)
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.attributes_from_file
|
31
|
+
YAML.load_file("#{Rails.root}/config/octokit.yml")
|
32
|
+
end
|
33
|
+
|
34
|
+
def assign(attributes)
|
35
|
+
attributes.each do |key, value|
|
36
|
+
self.instance_variable_set("@#{key}", value)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
data/lib/hubstats/github_api.rb
CHANGED
@@ -3,7 +3,7 @@ module Hubstats
|
|
3
3
|
include HubHelper
|
4
4
|
|
5
5
|
cattr_accessor :auth_info
|
6
|
-
|
6
|
+
|
7
7
|
def self.configure(options={})
|
8
8
|
@@auth_info = {}
|
9
9
|
if access_token = ENV['GITHUB_API_TOKEN'] || options["access_token"]
|
@@ -16,7 +16,7 @@ module Hubstats
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.client(options={})
|
19
|
-
configure() if @@auth_info.nil?
|
19
|
+
configure(Hubstats.config.github_auth) if @@auth_info.nil?
|
20
20
|
ent = Octokit::Client.new(@@auth_info.merge(options))
|
21
21
|
ent.user #making sure it was configured properly
|
22
22
|
return ent
|
@@ -37,8 +37,9 @@ module Hubstats
|
|
37
37
|
repo.full_name,
|
38
38
|
'web',
|
39
39
|
{
|
40
|
-
:url =>
|
41
|
-
:content_type => 'json'
|
40
|
+
:url => Hubstats.config.webhook_endpoint,
|
41
|
+
:content_type => 'json',
|
42
|
+
:secret => Hubstats.config.webhook_secret
|
42
43
|
},
|
43
44
|
{
|
44
45
|
:events => [
|
@@ -98,6 +99,18 @@ module Hubstats
|
|
98
99
|
end
|
99
100
|
end
|
100
101
|
|
102
|
+
def self.delete_hooks
|
103
|
+
puts "deleting hooks"
|
104
|
+
Hubstats::Repo.find_each do |repo|
|
105
|
+
Hubstats::GithubAPI.client.hooks(repo.full_name).each do |hook|
|
106
|
+
if hook[:config][:url] == Hubstats.config.webhook_endpoint
|
107
|
+
Hubstats::GithubAPI.client.remove_hook(repo.full_name, hook[:id])
|
108
|
+
puts "successfully deleted hook with id #{hook[:id]} and url #{hook[:config][:url]} from #{repo.full_name}"
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
101
114
|
def self.wait_limit(grab_size,rate_limit)
|
102
115
|
if rate_limit.remaining < grab_size
|
103
116
|
puts "Hit Github rate limit, waiting #{Time.at(rate_limit.resets_in).utc.strftime("%H:%M:%S")} to get more"
|
data/lib/hubstats/version.rb
CHANGED
@@ -44,6 +44,7 @@ namespace :hubstats do
|
|
44
44
|
|
45
45
|
desc "Pull repos from Github save to database"
|
46
46
|
task :all => :environment do
|
47
|
+
|
47
48
|
get_repos.each do |repo|
|
48
49
|
repo = Hubstats::Repo.create_or_update(repo)
|
49
50
|
Hubstats::GithubAPI.create_hook(repo)
|
@@ -52,6 +53,7 @@ namespace :hubstats do
|
|
52
53
|
Rake::Task["hubstats:populate:pulls"].execute({repo: repo})
|
53
54
|
Rake::Task["hubstats:populate:comments"].execute({repo: repo})
|
54
55
|
end
|
56
|
+
|
55
57
|
puts "Finished with initial population, grabing extra info for pull requests"
|
56
58
|
Rake::Task["hubstats:populate:update_labels"].execute
|
57
59
|
Rake::Task["hubstats:populate:update_pulls"].execute
|
@@ -67,6 +69,11 @@ namespace :hubstats do
|
|
67
69
|
Hubstats::GithubAPI.update_labels
|
68
70
|
end
|
69
71
|
|
72
|
+
desc "deletes WebHook for all repos"
|
73
|
+
task :delete_hooks => :environment do
|
74
|
+
Hubstats::GithubAPI.delete_hooks
|
75
|
+
end
|
76
|
+
|
70
77
|
def repo_checker(args)
|
71
78
|
raise ArgumentError, "Must be called with repo argument. [:org/:repo]" if args.nil?
|
72
79
|
if args.is_a? String
|
@@ -78,11 +85,11 @@ namespace :hubstats do
|
|
78
85
|
|
79
86
|
def get_repos
|
80
87
|
client = Hubstats::GithubAPI.client
|
81
|
-
if
|
82
|
-
repos = client.organization_repositories(
|
88
|
+
if Hubstats.config.github_config.has_key?("org_name")
|
89
|
+
repos = client.organization_repositories(Hubstats.config.github_config["org_name"])
|
83
90
|
else
|
84
91
|
repos = []
|
85
|
-
|
92
|
+
Hubstats.config.github_config["repo_list"].each do |repo|
|
86
93
|
repos << client.repository(repo)
|
87
94
|
end
|
88
95
|
end
|
@@ -1,8 +1,11 @@
|
|
1
|
-
|
1
|
+
github_auth: # Must include either access_token || (client_id && client_secret)
|
2
2
|
access_token: cec4013c4e7ef3e8e0564ed1af6cbd63b54afc71
|
3
3
|
# client_id: <CLIENT ID>
|
4
4
|
# client_secret: <CLIENT SECRET>
|
5
5
|
|
6
|
-
|
6
|
+
github_config: # Must include either org_name || repo_list
|
7
7
|
# org_name: sportngin
|
8
8
|
repo_list: ['elliothursh/jumbler', 'sportngin/hubstats']
|
9
|
+
|
10
|
+
webhook_secret: 800d61079068d48ac44061826deb3d03152fc49a
|
11
|
+
webhook_endpoint: 'http://705ebc81.ngrok.com/hubstats/handler'
|
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -16082,3 +16082,361 @@ Connecting to database specified by database.yml
|
|
16082
16082
|
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
16083
16083
|
[1m[35m (0.0ms)[0m BEGIN
|
16084
16084
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16085
|
+
Connecting to database specified by database.yml
|
16086
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
16087
|
+
Mysql2::Error: Table 'hubstats_test.hubstats_users' doesn't exist: SHOW FULL FIELDS FROM `hubstats_users`
|
16088
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16089
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16090
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16091
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16092
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16093
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16094
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16095
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16096
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16097
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16098
|
+
Mysql2::Error: Table 'hubstats_test.hubstats_users' doesn't exist: SHOW FULL FIELDS FROM `hubstats_users`
|
16099
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16100
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16101
|
+
Mysql2::Error: Table 'hubstats_test.hubstats_users' doesn't exist: SHOW FULL FIELDS FROM `hubstats_users`
|
16102
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16103
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16104
|
+
Mysql2::Error: Table 'hubstats_test.hubstats_repos' doesn't exist: SHOW FULL FIELDS FROM `hubstats_repos`
|
16105
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16106
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16107
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16108
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16109
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16110
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16111
|
+
Mysql2::Error: Table 'hubstats_test.hubstats_users' doesn't exist: SHOW FULL FIELDS FROM `hubstats_users`
|
16112
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16113
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16114
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16115
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16116
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16117
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16118
|
+
Mysql2::Error: Table 'hubstats_test.hubstats_users' doesn't exist: SHOW FULL FIELDS FROM `hubstats_users`
|
16119
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16120
|
+
Connecting to database specified by database.yml
|
16121
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16122
|
+
[1m[35mHubstats::User Load (0.2ms)[0m SELECT `hubstats_users`.* FROM `hubstats_users`
|
16123
|
+
[1m[36mHubstats::User Load (0.3ms)[0m [1mSELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 10 LIMIT 1[0m
|
16124
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16125
|
+
[1m[36mHubstats::User Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE `hubstats_users`.`id` = BINARY 10 LIMIT 1[0m
|
16126
|
+
[1m[35mSQL (0.4ms)[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-23 15:17:24', NULL, NULL, NULL, NULL, NULL, NULL, 10, 'johnappleseed', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-23 15:17:24', NULL)
|
16127
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16128
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16129
|
+
[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
|
16130
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16131
|
+
[1m[36mHubstats::User Load (0.2ms)[0m [1mSELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 10 LIMIT 1[0m
|
16132
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16133
|
+
[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
|
16134
|
+
[1m[35m (0.2ms)[0m UPDATE `hubstats_users` SET `login` = 'elliothursh', `updated_at` = '2014-07-23 15:17:24' WHERE `hubstats_users`.`id` = 10
|
16135
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16136
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
16137
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16138
|
+
[1m[35mHubstats::User Load (0.2ms)[0m SELECT `hubstats_users`.* FROM `hubstats_users`
|
16139
|
+
[1m[36mHubstats::User Load (0.3ms)[0m [1mSELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 10 LIMIT 1[0m
|
16140
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16141
|
+
[1m[36mHubstats::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE `hubstats_users`.`id` = BINARY 10 LIMIT 1[0m
|
16142
|
+
[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-23 15:17:25', NULL, NULL, NULL, NULL, NULL, NULL, 10, 'sigmund', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-23 15:17:25', NULL)
|
16143
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16144
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16145
|
+
[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
|
16146
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16147
|
+
[1m[36m (7.8ms)[0m [1mROLLBACK[0m
|
16148
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16149
|
+
[1m[36mHubstats::User Load (0.7ms)[0m [1mSELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 0 LIMIT 1[0m
|
16150
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16151
|
+
[1m[36mHubstats::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE `hubstats_users`.`id` = BINARY 0 LIMIT 1[0m
|
16152
|
+
[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-23 15:17:25', NULL, NULL, NULL, NULL, NULL, NULL, 0, 'norberto.williamson', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-23 15:17:25', NULL)
|
16153
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16154
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16155
|
+
[1m[36mHubstats::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE (`hubstats_users`.`id` = BINARY 0 AND `hubstats_users`.`id` != 0) LIMIT 1[0m
|
16156
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16157
|
+
[1m[36mHubstats::Repo Load (0.3ms)[0m [1mSELECT `hubstats_repos`.* FROM `hubstats_repos` WHERE `hubstats_repos`.`id` = 101010 LIMIT 1[0m
|
16158
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16159
|
+
[1m[36mSQL (0.3ms)[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-23 15:17:25', 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-23 15:17:25', NULL, NULL)[0m
|
16160
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16161
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16162
|
+
[1m[35m (0.2ms)[0m UPDATE `hubstats_repos` SET `updated_at` = NULL WHERE `hubstats_repos`.`id` = 101010
|
16163
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16164
|
+
[1m[35mHubstats::PullRequest Load (0.2ms)[0m SELECT `hubstats_pull_requests`.* FROM `hubstats_pull_requests` WHERE `hubstats_pull_requests`.`id` = 227384 LIMIT 1
|
16165
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16166
|
+
[1m[35mSQL (0.2ms)[0m INSERT 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-23 15:17:25', NULL, NULL, NULL, 227384, NULL, NULL, NULL, NULL, NULL, 0, NULL, 101010, NULL, NULL, NULL, NULL, NULL, '2014-07-23 15:17:25', NULL, 0)
|
16167
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16168
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16169
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16170
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
16171
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16172
|
+
[1m[35mHubstats::Repo Load (0.2ms)[0m SELECT `hubstats_repos`.* FROM `hubstats_repos` WHERE `hubstats_repos`.`id` = 151 LIMIT 1
|
16173
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16174
|
+
[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-23 15:17:25', 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-23 15:17:25', NULL, NULL)
|
16175
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16176
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16177
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16178
|
+
[1m[35mHubstats::User Load (0.2ms)[0m SELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 10 LIMIT 1
|
16179
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16180
|
+
[1m[35mHubstats::User Exists (0.1ms)[0m SELECT 1 AS one FROM `hubstats_users` WHERE `hubstats_users`.`id` = BINARY 10 LIMIT 1
|
16181
|
+
[1m[36mSQL (0.1ms)[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-23 15:17:25', NULL, NULL, NULL, NULL, NULL, NULL, 10, 'elliothursh', NULL, NULL, NULL, 'User', NULL, NULL, NULL, '2014-07-23 15:17:25', NULL)[0m
|
16182
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16183
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16184
|
+
[1m[35mHubstats::User Exists (0.1ms)[0m SELECT 1 AS one FROM `hubstats_users` WHERE (`hubstats_users`.`id` = BINARY 10 AND `hubstats_users`.`id` != 10) LIMIT 1
|
16185
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16186
|
+
[1m[35mHubstats::Repo Load (0.2ms)[0m SELECT `hubstats_repos`.* FROM `hubstats_repos` WHERE `hubstats_repos`.`id` = 151 LIMIT 1
|
16187
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16188
|
+
[1m[35m (0.2ms)[0m UPDATE `hubstats_repos` SET `updated_at` = NULL WHERE `hubstats_repos`.`id` = 151
|
16189
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16190
|
+
[1m[35mHubstats::PullRequest Load (0.2ms)[0m SELECT `hubstats_pull_requests`.* FROM `hubstats_pull_requests` WHERE `hubstats_pull_requests`.`id` = 1000 LIMIT 1
|
16191
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16192
|
+
[1m[35mSQL (0.2ms)[0m INSERT 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-23 15:17:25', NULL, NULL, NULL, 1000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 151, NULL, NULL, NULL, NULL, NULL, '2014-07-23 15:17:25', 'www.pull.com', 10)
|
16193
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16194
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16195
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16196
|
+
[1m[35mHubstats::User Load (0.2ms)[0m SELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 10 LIMIT 1
|
16197
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16198
|
+
[1m[35mHubstats::User Exists (0.2ms)[0m SELECT 1 AS one FROM `hubstats_users` WHERE (`hubstats_users`.`id` = BINARY 10 AND `hubstats_users`.`id` != 10) LIMIT 1
|
16199
|
+
[1m[36m (0.2ms)[0m [1mUPDATE `hubstats_users` SET `role` = NULL, `updated_at` = '2014-07-23 15:17:25' WHERE `hubstats_users`.`id` = 10[0m
|
16200
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16201
|
+
[1m[36mHubstats::Comment Load (0.2ms)[0m [1mSELECT `hubstats_comments`.* FROM `hubstats_comments` WHERE `hubstats_comments`.`id` = 100 LIMIT 1[0m
|
16202
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16203
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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-23 15:17:25', NULL, NULL, 100, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'www.pull.com', NULL, '2014-07-23 15:17:25', NULL, 10)[0m
|
16204
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16205
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16206
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16207
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
16208
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16209
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16210
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16211
|
+
[1m[36mHubstats::User Load (0.2ms)[0m [1mSELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 0 LIMIT 1[0m
|
16212
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16213
|
+
[1m[36mHubstats::User Exists (0.1ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE `hubstats_users`.`id` = BINARY 0 LIMIT 1[0m
|
16214
|
+
[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-23 15:17:25', NULL, NULL, NULL, NULL, NULL, NULL, 0, 'treva', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-23 15:17:25', NULL)
|
16215
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16216
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
16217
|
+
[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
|
16218
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16219
|
+
[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
|
16220
|
+
[1m[35mHubstats::Comment Load (0.1ms)[0m SELECT `hubstats_comments`.* FROM `hubstats_comments` WHERE `hubstats_comments`.`id` = 439741 LIMIT 1
|
16221
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
16222
|
+
[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 ('Ab et ducimus impedit cum in harum.', NULL, '2014-07-23 15:17:25', NULL, NULL, 439741, 'PullRequest', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 101010, '2014-07-23 15:17:25', NULL, 0)
|
16223
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16224
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
16225
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16226
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
16227
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16228
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16229
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
16230
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16231
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16232
|
+
[1m[35mHubstats::User Load (0.2ms)[0m SELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 0 LIMIT 1
|
16233
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16234
|
+
[1m[35mHubstats::User Exists (0.1ms)[0m SELECT 1 AS one FROM `hubstats_users` WHERE `hubstats_users`.`id` = BINARY 0 LIMIT 1
|
16235
|
+
[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-23 15:17:25', NULL, NULL, NULL, NULL, NULL, NULL, 0, 'christina', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-23 15:17:25', NULL)[0m
|
16236
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16237
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16238
|
+
[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
|
16239
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16240
|
+
[1m[35mHubstats::Repo Load (0.1ms)[0m SELECT `hubstats_repos`.* FROM `hubstats_repos` WHERE `hubstats_repos`.`id` = 101010 LIMIT 1
|
16241
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16242
|
+
[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-23 15:17:25', 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-23 15:17:25', NULL, NULL)
|
16243
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16244
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
16245
|
+
[1m[36m (0.2ms)[0m [1mUPDATE `hubstats_repos` SET `updated_at` = NULL WHERE `hubstats_repos`.`id` = 101010[0m
|
16246
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16247
|
+
[1m[36mHubstats::PullRequest Load (0.1ms)[0m [1mSELECT `hubstats_pull_requests`.* FROM `hubstats_pull_requests` WHERE `hubstats_pull_requests`.`id` = 239812 LIMIT 1[0m
|
16248
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
16249
|
+
[1m[36mSQL (0.1ms)[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-23 15:17:25', NULL, NULL, NULL, 239812, NULL, NULL, NULL, NULL, NULL, 0, NULL, 101010, NULL, NULL, NULL, NULL, NULL, '2014-07-23 15:17:25', NULL, 0)[0m
|
16250
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16251
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
16252
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
16253
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
16254
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16255
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16256
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16257
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16258
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16259
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16260
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16261
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16262
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16263
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16264
|
+
Connecting to database specified by database.yml
|
16265
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16266
|
+
Mysql2::Error: Table 'hubstats_test.hubstats_users' doesn't exist: SHOW FULL FIELDS FROM `hubstats_users`
|
16267
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16268
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16269
|
+
Mysql2::Error: Table 'hubstats_test.hubstats_repos' doesn't exist: SHOW FULL FIELDS FROM `hubstats_repos`
|
16270
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16271
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16272
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16273
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
16274
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16275
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
16276
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16277
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16278
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16279
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16280
|
+
Mysql2::Error: Table 'hubstats_test.hubstats_users' doesn't exist: SHOW FULL FIELDS FROM `hubstats_users`
|
16281
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16282
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16283
|
+
Mysql2::Error: Table 'hubstats_test.hubstats_users' doesn't exist: SHOW FULL FIELDS FROM `hubstats_users`
|
16284
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16285
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16286
|
+
Mysql2::Error: Table 'hubstats_test.hubstats_users' doesn't exist: SHOW FULL FIELDS FROM `hubstats_users`
|
16287
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16288
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16289
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16290
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16291
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16292
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16293
|
+
Mysql2::Error: Table 'hubstats_test.hubstats_users' doesn't exist: SHOW FULL FIELDS FROM `hubstats_users`
|
16294
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16295
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16296
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16297
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16298
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16299
|
+
Connecting to database specified by database.yml
|
16300
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16301
|
+
[1m[35mHubstats::User Load (0.3ms)[0m SELECT `hubstats_users`.* FROM `hubstats_users`
|
16302
|
+
[1m[36mHubstats::User Load (0.3ms)[0m [1mSELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 10 LIMIT 1[0m
|
16303
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16304
|
+
[1m[36mHubstats::User Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE `hubstats_users`.`id` = BINARY 10 LIMIT 1[0m
|
16305
|
+
[1m[35mSQL (0.3ms)[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-23 17:33:32', NULL, NULL, NULL, NULL, NULL, NULL, 10, 'johnappleseed', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-23 17:33:32', NULL)
|
16306
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16307
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16308
|
+
[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
|
16309
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16310
|
+
[1m[36mHubstats::User Load (0.2ms)[0m [1mSELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 10 LIMIT 1[0m
|
16311
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16312
|
+
[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
|
16313
|
+
[1m[35m (0.2ms)[0m UPDATE `hubstats_users` SET `login` = 'elliothursh', `updated_at` = '2014-07-23 17:33:32' WHERE `hubstats_users`.`id` = 10
|
16314
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16315
|
+
[1m[35m (5.7ms)[0m ROLLBACK
|
16316
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16317
|
+
[1m[35mHubstats::User Load (0.2ms)[0m SELECT `hubstats_users`.* FROM `hubstats_users`
|
16318
|
+
[1m[36mHubstats::User Load (0.3ms)[0m [1mSELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 10 LIMIT 1[0m
|
16319
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16320
|
+
[1m[36mHubstats::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE `hubstats_users`.`id` = BINARY 10 LIMIT 1[0m
|
16321
|
+
[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-23 17:33:33', NULL, NULL, NULL, NULL, NULL, NULL, 10, 'nathanael', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-23 17:33:33', NULL)
|
16322
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16323
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16324
|
+
[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
|
16325
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16326
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
16327
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16328
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16329
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16330
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16331
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16332
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16333
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16334
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16335
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16336
|
+
[1m[36mHubstats::User Load (0.3ms)[0m [1mSELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 0 LIMIT 1[0m
|
16337
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16338
|
+
[1m[36mHubstats::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE `hubstats_users`.`id` = BINARY 0 LIMIT 1[0m
|
16339
|
+
[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-23 17:33:34', NULL, NULL, NULL, NULL, NULL, NULL, 0, 'anais', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-23 17:33:34', NULL)
|
16340
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16341
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16342
|
+
[1m[36mHubstats::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE (`hubstats_users`.`id` = BINARY 0 AND `hubstats_users`.`id` != 0) LIMIT 1[0m
|
16343
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16344
|
+
[1m[36mHubstats::Repo Load (0.2ms)[0m [1mSELECT `hubstats_repos`.* FROM `hubstats_repos` WHERE `hubstats_repos`.`id` = 101010 LIMIT 1[0m
|
16345
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16346
|
+
[1m[36mSQL (0.3ms)[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-23 17:33:34', 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-23 17:33:34', NULL, NULL)[0m
|
16347
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16348
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16349
|
+
[1m[35m (0.2ms)[0m UPDATE `hubstats_repos` SET `updated_at` = NULL WHERE `hubstats_repos`.`id` = 101010
|
16350
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16351
|
+
[1m[35mHubstats::PullRequest Load (0.3ms)[0m SELECT `hubstats_pull_requests`.* FROM `hubstats_pull_requests` WHERE `hubstats_pull_requests`.`id` = 525404 LIMIT 1
|
16352
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16353
|
+
[1m[35mSQL (0.2ms)[0m INSERT 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-23 17:33:34', NULL, NULL, NULL, 525404, NULL, NULL, NULL, NULL, NULL, 0, NULL, 101010, NULL, NULL, NULL, NULL, NULL, '2014-07-23 17:33:34', NULL, 0)
|
16354
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16355
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
16356
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16357
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
16358
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16359
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16360
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16361
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16362
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16363
|
+
[1m[35mHubstats::User Load (0.2ms)[0m SELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 0 LIMIT 1
|
16364
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16365
|
+
[1m[35mHubstats::User Exists (0.1ms)[0m SELECT 1 AS one FROM `hubstats_users` WHERE `hubstats_users`.`id` = BINARY 0 LIMIT 1
|
16366
|
+
[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-23 17:33:34', NULL, NULL, NULL, NULL, NULL, NULL, 0, 'aylin', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-23 17:33:34', NULL)[0m
|
16367
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16368
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16369
|
+
[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
|
16370
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16371
|
+
[1m[35mHubstats::PullRequest Load (0.2ms)[0m SELECT `hubstats_pull_requests`.* FROM `hubstats_pull_requests` WHERE `hubstats_pull_requests`.`repo_id` = 101010 AND `hubstats_pull_requests`.`number` = 0 LIMIT 1
|
16372
|
+
[1m[36mHubstats::Comment Load (0.2ms)[0m [1mSELECT `hubstats_comments`.* FROM `hubstats_comments` WHERE `hubstats_comments`.`id` = 752572 LIMIT 1[0m
|
16373
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16374
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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 ('At veritatis culpa recusandae qui eos iure laboriosam.', NULL, '2014-07-23 17:33:34', NULL, NULL, 752572, 'Commit', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 101010, '2014-07-23 17:33:34', NULL, 0)[0m
|
16375
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16376
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16377
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16378
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
16379
|
+
[1m[35m (0.0ms)[0m BEGIN
|
16380
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16381
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16382
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
16383
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16384
|
+
[1m[36mHubstats::User Load (0.2ms)[0m [1mSELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 0 LIMIT 1[0m
|
16385
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16386
|
+
[1m[36mHubstats::User Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE `hubstats_users`.`id` = BINARY 0 LIMIT 1[0m
|
16387
|
+
[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-23 17:33:34', NULL, NULL, NULL, NULL, NULL, NULL, 0, 'lolita_will', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2014-07-23 17:33:34', NULL)
|
16388
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16389
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16390
|
+
[1m[36mHubstats::User Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `hubstats_users` WHERE (`hubstats_users`.`id` = BINARY 0 AND `hubstats_users`.`id` != 0) LIMIT 1[0m
|
16391
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16392
|
+
[1m[36mHubstats::Repo Load (0.2ms)[0m [1mSELECT `hubstats_repos`.* FROM `hubstats_repos` WHERE `hubstats_repos`.`id` = 101010 LIMIT 1[0m
|
16393
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16394
|
+
[1m[36mSQL (0.3ms)[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-23 17:33:34', 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-23 17:33:34', NULL, NULL)[0m
|
16395
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16396
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16397
|
+
[1m[35m (0.2ms)[0m UPDATE `hubstats_repos` SET `updated_at` = NULL WHERE `hubstats_repos`.`id` = 101010
|
16398
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16399
|
+
[1m[35mHubstats::PullRequest Load (0.2ms)[0m SELECT `hubstats_pull_requests`.* FROM `hubstats_pull_requests` WHERE `hubstats_pull_requests`.`id` = 51238 LIMIT 1
|
16400
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16401
|
+
[1m[35mSQL (0.2ms)[0m INSERT 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-23 17:33:34', NULL, NULL, NULL, 51238, NULL, NULL, NULL, NULL, NULL, 0, NULL, 101010, NULL, NULL, NULL, NULL, NULL, '2014-07-23 17:33:34', NULL, 0)
|
16402
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16403
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16404
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16405
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
16406
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16407
|
+
[1m[35mHubstats::Repo Load (0.2ms)[0m SELECT `hubstats_repos`.* FROM `hubstats_repos` WHERE `hubstats_repos`.`id` = 151 LIMIT 1
|
16408
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16409
|
+
[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-23 17:33:34', 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-23 17:33:34', NULL, NULL)
|
16410
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16411
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16412
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16413
|
+
[1m[35mHubstats::User Load (0.2ms)[0m SELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 10 LIMIT 1
|
16414
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16415
|
+
[1m[35mHubstats::User Exists (0.1ms)[0m SELECT 1 AS one FROM `hubstats_users` WHERE `hubstats_users`.`id` = BINARY 10 LIMIT 1
|
16416
|
+
[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-23 17:33:34', NULL, NULL, NULL, NULL, NULL, NULL, 10, 'elliothursh', NULL, NULL, NULL, 'User', NULL, NULL, NULL, '2014-07-23 17:33:34', NULL)[0m
|
16417
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16418
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16419
|
+
[1m[35mHubstats::User Exists (0.2ms)[0m SELECT 1 AS one FROM `hubstats_users` WHERE (`hubstats_users`.`id` = BINARY 10 AND `hubstats_users`.`id` != 10) LIMIT 1
|
16420
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16421
|
+
[1m[35mHubstats::Repo Load (0.2ms)[0m SELECT `hubstats_repos`.* FROM `hubstats_repos` WHERE `hubstats_repos`.`id` = 151 LIMIT 1
|
16422
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16423
|
+
[1m[35m (0.2ms)[0m UPDATE `hubstats_repos` SET `updated_at` = NULL WHERE `hubstats_repos`.`id` = 151
|
16424
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16425
|
+
[1m[35mHubstats::PullRequest Load (0.1ms)[0m SELECT `hubstats_pull_requests`.* FROM `hubstats_pull_requests` WHERE `hubstats_pull_requests`.`id` = 1000 LIMIT 1
|
16426
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
16427
|
+
[1m[35mSQL (0.2ms)[0m INSERT 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-23 17:33:34', NULL, NULL, NULL, 1000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 151, NULL, NULL, NULL, NULL, NULL, '2014-07-23 17:33:34', 'www.pull.com', 10)
|
16428
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16429
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16430
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16431
|
+
[1m[35mHubstats::User Load (0.2ms)[0m SELECT `hubstats_users`.* FROM `hubstats_users` WHERE `hubstats_users`.`id` = 10 LIMIT 1
|
16432
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16433
|
+
[1m[35mHubstats::User Exists (0.1ms)[0m SELECT 1 AS one FROM `hubstats_users` WHERE (`hubstats_users`.`id` = BINARY 10 AND `hubstats_users`.`id` != 10) LIMIT 1
|
16434
|
+
[1m[36m (0.1ms)[0m [1mUPDATE `hubstats_users` SET `role` = NULL, `updated_at` = '2014-07-23 17:33:34' WHERE `hubstats_users`.`id` = 10[0m
|
16435
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16436
|
+
[1m[36mHubstats::Comment Load (0.1ms)[0m [1mSELECT `hubstats_comments`.* FROM `hubstats_comments` WHERE `hubstats_comments`.`id` = 100 LIMIT 1[0m
|
16437
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16438
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT 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-23 17:33:34', NULL, NULL, 100, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'www.pull.com', NULL, '2014-07-23 17:33:34', NULL, 10)[0m
|
16439
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16440
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16441
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16442
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elliot Hursh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -193,9 +193,9 @@ files:
|
|
193
193
|
- db/migrate/20140703200752_create_hubstats_labels_pull_requests.rb
|
194
194
|
- lib/generators/hubstats/install_generator.rb
|
195
195
|
- lib/generators/hubstats/octokit.example.yml
|
196
|
-
- lib/generators/hubstats/octokit.rb
|
197
196
|
- lib/hub_helper.rb
|
198
197
|
- lib/hubstats.rb
|
198
|
+
- lib/hubstats/config.rb
|
199
199
|
- lib/hubstats/engine.rb
|
200
200
|
- lib/hubstats/events_handler.rb
|
201
201
|
- lib/hubstats/github_api.rb
|
@@ -220,7 +220,6 @@ files:
|
|
220
220
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
221
221
|
- test/dummy/config/initializers/inflections.rb
|
222
222
|
- test/dummy/config/initializers/mime_types.rb
|
223
|
-
- test/dummy/config/initializers/octokit.rb
|
224
223
|
- test/dummy/config/initializers/secret_token.rb
|
225
224
|
- test/dummy/config/initializers/session_store.rb
|
226
225
|
- test/dummy/config/initializers/wrap_parameters.rb
|
@@ -358,7 +357,6 @@ test_files:
|
|
358
357
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
359
358
|
- test/dummy/config/initializers/inflections.rb
|
360
359
|
- test/dummy/config/initializers/mime_types.rb
|
361
|
-
- test/dummy/config/initializers/octokit.rb
|
362
360
|
- test/dummy/config/initializers/secret_token.rb
|
363
361
|
- test/dummy/config/initializers/session_store.rb
|
364
362
|
- test/dummy/config/initializers/wrap_parameters.rb
|
@@ -1,10 +0,0 @@
|
|
1
|
-
if Pathname("#{Rails.root}/config/octokit.yml").exist?
|
2
|
-
octo = YAML.load_file("#{Rails.root}/config/octokit.yml").with_indifferent_access
|
3
|
-
if (octo[:config].has_key?(:org_name) || octo[:config].has_key?(:repo_list))
|
4
|
-
OCTOCONF = octo[:config]
|
5
|
-
else
|
6
|
-
raise "Must include repos or organization to watch"
|
7
|
-
end
|
8
|
-
|
9
|
-
Hubstats::GithubAPI.configure(octo[:auth])
|
10
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
if Pathname("#{Rails.root}/config/octokit.yml").exist?
|
2
|
-
octo = YAML.load_file("#{Rails.root}/config/octokit.yml").with_indifferent_access
|
3
|
-
if (octo[:config].has_key?(:org_name) || octo[:config].has_key?(:repo_list))
|
4
|
-
OCTOCONF = octo[:config]
|
5
|
-
else
|
6
|
-
raise "Must include repos or organization to watch"
|
7
|
-
end
|
8
|
-
|
9
|
-
Hubstats::GithubAPI.configure(octo[:auth])
|
10
|
-
end
|