hubstats 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/.soyuz.yml +4 -5
- data/CHANGELOG.markdown +1 -0
- data/README.md +59 -0
- data/app/controllers/hubstats/repos_controller.rb +0 -1
- data/config/routes.rb +0 -1
- data/lib/hubstats/version.rb +1 -1
- data/test/dummy/db/schema.rb +1 -1
- metadata +25 -26
- data/README.rdoc +0 -34
- data/app/views/hubstats/repos/index.html.erb +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
OWQ4NWFiMTY4ZjY2NGYxODgwZmVlNTI1YjI0ODkxMGRlNzkyMzcwNA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
OTZhZjVlNDk1ZmE4ZDdiZDE2NDVjMGJkMWI0YTkzOTk1MDZhNzAyOQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NWM1MzNiYzg0ZWZmNzU4NGYzNzg3NjRlYzU4NDVkODcyOTEwMzhhMDRlNGFh
|
10
|
+
ZDEzMjRkZmY3NjJlNjU5M2IxY2JjZjBkZGJiODUwMzljYzM5NmUyYTMyNzU4
|
11
|
+
M2ViNDkxZWQxN2UwOGQxNzBmMzEwODI1ZTk3NTZhMDRkYjk3ZGM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NDQ0YTQwNzQ4MGE4MzZlZWNhMTQ2ZjRhNmExOGFhZGRiNjdhY2ViZTUxMWE2
|
14
|
+
Mzk5Y2UzNTNmNzA4ZmYwODU4MzA2YmQwNzNhZTI2MDhkYjM0MDYwYWEwMzNj
|
15
|
+
NTgzMmVlZjI1MTczMTJmNDYzZGZjMWY0ZmEwYzBiNWNmY2ZmNTg=
|
data/.soyuz.yml
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
defaults:
|
2
|
-
|
3
|
-
- gem build hubstats.gemspec
|
4
|
-
- gem push *.gem
|
2
|
+
deploy_cmd: gem push *.gem
|
5
3
|
before_deploy_cmds:
|
6
4
|
- /usr/local/bin/op tag-release
|
7
|
-
- sed -i
|
5
|
+
- sed -i "" -e "s/\".*/\"$(git tag| sort -n -t. -k1,1 -k2,2 -k3,3 | tail -1 | sed s/v//)\"/" lib/hubstats/version.rb
|
8
6
|
- git add lib/hubstats/version.rb
|
9
7
|
- git commit -m "Version Bump" && git push
|
8
|
+
- gem build hubstats.gemspec
|
10
9
|
after_deploy_cmds:
|
11
10
|
- rm *.gem
|
12
11
|
environments:
|
13
12
|
-
|
14
|
-
rubygems: {}
|
13
|
+
rubygems: {}
|
data/CHANGELOG.markdown
CHANGED
data/README.md
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
# Hubstats
|
2
|
+
|
3
|
+
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.
|
4
|
+
|
5
|
+
## Setup
|
6
|
+
|
7
|
+
Run `rails generate hubstats:install`.
|
8
|
+
|
9
|
+
Run `rake hubstats:install:migrations`.
|
10
|
+
|
11
|
+
Run `rake hubstats:setup` to run the necessary migrations and start pulling data from Github.
|
12
|
+
|
13
|
+
Add 'mount Hubstats::Engine => "/hubstats"' to your apps routes file.
|
14
|
+
|
15
|
+
## Configuration
|
16
|
+
|
17
|
+
### Authentication
|
18
|
+
|
19
|
+
Hubstats needs Github credentials to access your repos, these can be setup in one of two ways:
|
20
|
+
|
21
|
+
#### octokit.yml
|
22
|
+
|
23
|
+
Add your GitHub API token or ClientID and Secret to octokit.yml.
|
24
|
+
|
25
|
+
#### Environment Variables
|
26
|
+
|
27
|
+
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.
|
28
|
+
|
29
|
+
### Webhooks
|
30
|
+
|
31
|
+
Hubstats uses GitHub webhooks to keep itself update. It requires you to set a secret as well as an endpoint to push to.
|
32
|
+
|
33
|
+
To generate a secret run:
|
34
|
+
|
35
|
+
```
|
36
|
+
ruby -rsecurerandom -e 'puts SecureRandom.hex(20)'
|
37
|
+
```
|
38
|
+
|
39
|
+
Set the endpoint to be:
|
40
|
+
|
41
|
+
www.yourdomain.com/hubstats/handler
|
42
|
+
|
43
|
+
### Repositories
|
44
|
+
|
45
|
+
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.
|
46
|
+
|
47
|
+
## TL:DR
|
48
|
+
|
49
|
+
Run `rails generate hubstats:install`.
|
50
|
+
|
51
|
+
Configure octokit.yml with your Github information.
|
52
|
+
|
53
|
+
Run `rake hubstats:install:migrations`.
|
54
|
+
|
55
|
+
Run `rake hubstats:setup`.
|
56
|
+
|
57
|
+
Add 'mount Hubstats::Engine => "/hubstats"' to your routes file.
|
58
|
+
|
59
|
+
This project rocks and uses MIT-LICENSE.
|
data/config/routes.rb
CHANGED
@@ -7,7 +7,6 @@ Hubstats::Engine.routes.draw do
|
|
7
7
|
get "/users" => "users#index", :as => :users
|
8
8
|
get "/repos" => "repos#index", :as => :repos
|
9
9
|
get "/user/:id" => "users#show", :as => :user
|
10
|
-
|
11
10
|
get "/:repo" => "repos#show", :as => :repo
|
12
11
|
scope "/:repo", :as => :repo do
|
13
12
|
get '/pull/:id' => "pull_requests#show", :as => :pull
|
data/lib/hubstats/version.rb
CHANGED
data/test/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20150521203261) do
|
15
15
|
|
16
16
|
create_table "hubstats_comments", :force => true do |t|
|
17
17
|
t.string "kind"
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hubstats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elliot Hursh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.2.18
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.2.18
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: octokit
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '3.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: will_paginate-bootstrap
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ! '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ! '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
@@ -70,56 +70,56 @@ dependencies:
|
|
70
70
|
name: rspec-rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 3.0.0.beta
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 3.0.0.beta
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: shoulda-matchers
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ~>
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '2.6'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ~>
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '2.6'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: factory_girl_rails
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ~>
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '4.4'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '4.4'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: faker
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ~>
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '1.3'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ~>
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '1.3'
|
125
125
|
description: Github Statistics
|
@@ -129,15 +129,15 @@ executables: []
|
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
|
-
-
|
133
|
-
-
|
134
|
-
-
|
135
|
-
-
|
136
|
-
-
|
132
|
+
- .gitignore
|
133
|
+
- .octopolo.yml
|
134
|
+
- .rspec
|
135
|
+
- .soyuz.yml
|
136
|
+
- .travis.yml
|
137
137
|
- CHANGELOG.markdown
|
138
138
|
- Gemfile
|
139
139
|
- MIT-LICENSE
|
140
|
-
- README.
|
140
|
+
- README.md
|
141
141
|
- Rakefile
|
142
142
|
- app/assets/fonts/hubstats/octicons.ttf
|
143
143
|
- app/assets/fonts/hubstats/octicons.woff
|
@@ -185,7 +185,6 @@ files:
|
|
185
185
|
- app/views/hubstats/pull_requests/index.html.erb
|
186
186
|
- app/views/hubstats/pull_requests/show.html.erb
|
187
187
|
- app/views/hubstats/repos/dashboard.html.erb
|
188
|
-
- app/views/hubstats/repos/index.html.erb
|
189
188
|
- app/views/hubstats/repos/show.html.erb
|
190
189
|
- app/views/hubstats/tables/_comments-condensed.html.erb
|
191
190
|
- app/views/hubstats/tables/_comments.html.erb
|
@@ -284,17 +283,17 @@ require_paths:
|
|
284
283
|
- lib
|
285
284
|
required_ruby_version: !ruby/object:Gem::Requirement
|
286
285
|
requirements:
|
287
|
-
- -
|
286
|
+
- - ! '>='
|
288
287
|
- !ruby/object:Gem::Version
|
289
288
|
version: '0'
|
290
289
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
291
290
|
requirements:
|
292
|
-
- -
|
291
|
+
- - ! '>='
|
293
292
|
- !ruby/object:Gem::Version
|
294
293
|
version: '0'
|
295
294
|
requirements: []
|
296
295
|
rubyforge_project:
|
297
|
-
rubygems_version: 2.4.
|
296
|
+
rubygems_version: 2.4.7
|
298
297
|
signing_key:
|
299
298
|
specification_version: 4
|
300
299
|
summary: Github Statistics
|
data/README.rdoc
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
= Hubstats
|
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.
|
3
|
-
|
4
|
-
= Setup
|
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.
|
25
|
-
|
26
|
-
|
27
|
-
=TL:DR
|
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.
|