hubstats 0.12.0 → 0.12.1
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 +5 -5
- data/CHANGELOG.markdown +5 -0
- data/app/controllers/hubstats/deploys_controller.rb +1 -1
- data/app/controllers/hubstats/pull_requests_controller.rb +1 -1
- data/app/controllers/hubstats/repos_controller.rb +3 -3
- data/app/controllers/hubstats/teams_controller.rb +1 -1
- data/app/controllers/hubstats/users_controller.rb +3 -3
- data/app/views/hubstats/deploys/show.html.erb +1 -1
- data/app/views/hubstats/repos/show.html.erb +2 -2
- data/app/views/hubstats/teams/show.html.erb +2 -2
- data/app/views/hubstats/users/show.html.erb +1 -1
- data/lib/hubstats/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a0ead1316136280de22c765e00d40f8b0ef89ccd
|
4
|
+
data.tar.gz: 760e93ad92c0ca58768a9c7d7e6fe64379ee5932
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41727a4a51bc98b10e12971bf9cbc34036d346d8c0abc2a49a58d2590cbb5d9c135bb88e7986b334eacd4329b9a4e44ace76977ec8345e443574776f61322095
|
7
|
+
data.tar.gz: 6793ad8af6fee4ae2d6ff99e19e00ca7a742a2f7428e967a82aeb288195553161c617fa256f33d7368d0873adcd0f99c9d64fa504a87b9ab9db0365422bee902
|
data/CHANGELOG.markdown
CHANGED
@@ -24,7 +24,7 @@ module Hubstats
|
|
24
24
|
def show
|
25
25
|
@deploy = Hubstats::Deploy.includes(:repo, :pull_requests).find(params[:id])
|
26
26
|
repo = @deploy.repo
|
27
|
-
@pull_requests = @deploy.pull_requests.limit(
|
27
|
+
@pull_requests = @deploy.pull_requests.limit(50)
|
28
28
|
@pull_request_count = @pull_requests.length
|
29
29
|
@stats_row_one = {
|
30
30
|
pull_count: @pull_request_count,
|
@@ -30,7 +30,7 @@ module Hubstats
|
|
30
30
|
def show
|
31
31
|
@repo = Hubstats::Repo.where(name: params[:repo]).first
|
32
32
|
@pull_request = Hubstats::PullRequest.belonging_to_repo(@repo.id).where(id: params[:id]).first
|
33
|
-
@comments = Hubstats::Comment.belonging_to_pull_request(params[:id]).created_in_date_range(@start_date, @end_date).limit(
|
33
|
+
@comments = Hubstats::Comment.belonging_to_pull_request(params[:id]).created_in_date_range(@start_date, @end_date).limit(50)
|
34
34
|
comment_count = Hubstats::Comment.belonging_to_pull_request(params[:id]).created_in_date_range(@start_date, @end_date).count(:all)
|
35
35
|
@deploys = Hubstats::Deploy.where(id: @pull_request.deploy_id).order("deployed_at DESC")
|
36
36
|
@stats_row_one = {
|
@@ -31,12 +31,12 @@ module Hubstats
|
|
31
31
|
# Returns - the specific repository data
|
32
32
|
def show
|
33
33
|
@repo = Hubstats::Repo.where(name: params[:repo]).first
|
34
|
-
@pull_requests = Hubstats::PullRequest.belonging_to_repo(@repo.id).merged_in_date_range(@start_date, @end_date).order("updated_at DESC").limit(
|
34
|
+
@pull_requests = Hubstats::PullRequest.belonging_to_repo(@repo.id).merged_in_date_range(@start_date, @end_date).order("updated_at DESC").limit(50)
|
35
35
|
@pull_count = Hubstats::PullRequest.belonging_to_repo(@repo.id).merged_in_date_range(@start_date, @end_date).count(:all)
|
36
|
-
@deploys = Hubstats::Deploy.belonging_to_repo(@repo.id).deployed_in_date_range(@start_date, @end_date).order("deployed_at DESC").limit(
|
36
|
+
@deploys = Hubstats::Deploy.belonging_to_repo(@repo.id).deployed_in_date_range(@start_date, @end_date).order("deployed_at DESC").limit(50)
|
37
37
|
@deploy_count = Hubstats::Deploy.belonging_to_repo(@repo.id).deployed_in_date_range(@start_date, @end_date).count(:all)
|
38
38
|
@comment_count = Hubstats::Comment.belonging_to_repo(@repo.id).created_in_date_range(@start_date, @end_date).count(:all)
|
39
|
-
@users = Hubstats::User.with_pulls_or_comments_or_deploys(@start_date, @end_date, @repo.id).only_active.order("login ASC").limit(
|
39
|
+
@users = Hubstats::User.with_pulls_or_comments_or_deploys(@start_date, @end_date, @repo.id).only_active.order("login ASC").limit(50)
|
40
40
|
@active_user_count = Hubstats::User.with_pulls_or_comments_or_deploys(@start_date, @end_date, @repo.id).only_active.length
|
41
41
|
@qa_signoff_count = Hubstats::QaSignoff.belonging_to_repo(@repo.id).signed_within_date_range(@start_date, @end_date).count(:all)
|
42
42
|
@net_additions = Hubstats::PullRequest.merged_in_date_range(@start_date, @end_date).belonging_to_repo(@repo.id).sum(:additions).to_i -
|
@@ -31,7 +31,7 @@ module Hubstats
|
|
31
31
|
# Returns - the data of the specific team
|
32
32
|
def show
|
33
33
|
@team = Hubstats::Team.where(id: params[:id]).first
|
34
|
-
@pull_requests = Hubstats::PullRequest.belonging_to_team(@team.id).merged_in_date_range(@start_date, @end_date).order("updated_at DESC").limit(
|
34
|
+
@pull_requests = Hubstats::PullRequest.belonging_to_team(@team.id).merged_in_date_range(@start_date, @end_date).order("updated_at DESC").limit(50)
|
35
35
|
@pull_count = Hubstats::PullRequest.belonging_to_team(@team.id).merged_in_date_range(@start_date, @end_date).count(:all)
|
36
36
|
@users = @team.users.where.not(login: Hubstats.config.github_config["ignore_users_list"] || []).order("login ASC").distinct
|
37
37
|
@active_user_count = @users.length
|
@@ -32,11 +32,11 @@ module Hubstats
|
|
32
32
|
# Returns - the data of the specific user
|
33
33
|
def show
|
34
34
|
@user = Hubstats::User.where(login: params[:id]).first
|
35
|
-
@pull_requests = Hubstats::PullRequest.belonging_to_user(@user.id).merged_in_date_range(@start_date, @end_date).order("updated_at DESC").limit(
|
35
|
+
@pull_requests = Hubstats::PullRequest.belonging_to_user(@user.id).merged_in_date_range(@start_date, @end_date).order("updated_at DESC").limit(50)
|
36
36
|
@pull_count = Hubstats::PullRequest.belonging_to_user(@user.id).merged_in_date_range(@start_date, @end_date).count(:all)
|
37
|
-
@deploys = Hubstats::Deploy.belonging_to_user(@user.id).deployed_in_date_range(@start_date, @end_date).order("deployed_at DESC").limit(
|
37
|
+
@deploys = Hubstats::Deploy.belonging_to_user(@user.id).deployed_in_date_range(@start_date, @end_date).order("deployed_at DESC").limit(50)
|
38
38
|
@deploy_count = Hubstats::Deploy.belonging_to_user(@user.id).deployed_in_date_range(@start_date, @end_date).count(:all)
|
39
|
-
@qa_signoffs = Hubstats::QaSignoff.belonging_to_user(@user.id).signed_within_date_range(@start_date, @end_date).order("signed_at DESC").limit(
|
39
|
+
@qa_signoffs = Hubstats::QaSignoff.belonging_to_user(@user.id).signed_within_date_range(@start_date, @end_date).order("signed_at DESC").limit(50)
|
40
40
|
@qa_signoff_count = Hubstats::QaSignoff.belonging_to_user(@user.id).signed_within_date_range(@start_date, @end_date).count(:all)
|
41
41
|
@comment_count = Hubstats::Comment.belonging_to_user(@user.id).created_in_date_range(@start_date, @end_date).count(:all)
|
42
42
|
@net_additions = Hubstats::PullRequest.merged_in_date_range(@start_date, @end_date).belonging_to_user(@user.id).sum(:additions).to_i -
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<div class="row">
|
22
22
|
<h4> Merged Pull Requests </h4>
|
23
23
|
<%= render 'hubstats/tables/pulls_condensed' %>
|
24
|
-
<% if @pull_request_count >
|
24
|
+
<% if @pull_request_count > 50 %>
|
25
25
|
<p class="pull-right"><%= link_to "View All", pulls_path(:deploys => @deploy.id) %></p>
|
26
26
|
<% end %>
|
27
27
|
</div>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<div class="col col-lg-6">
|
22
22
|
<h3> Merged Pull Requests</h3>
|
23
23
|
<%= render 'hubstats/tables/pulls_condensed'%>
|
24
|
-
<% if @pull_count >
|
24
|
+
<% if @pull_count > 50 %>
|
25
25
|
<p class="pull-right"><%= link_to "View All", pulls_path(:repos => @repo.id) %></p>
|
26
26
|
<% end %>
|
27
27
|
</div>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
31
31
|
<h3> Active Users </h3>
|
32
32
|
<%= render 'hubstats/tables/users_condensed' %>
|
33
|
-
<% if @active_user_count >
|
33
|
+
<% if @active_user_count > 50 %>
|
34
34
|
<p class="pull-right">Hubstats is currently not set up to view all active users for this repository</p>
|
35
35
|
<% end %>
|
36
36
|
</div>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
<div class="col-lg-6 col-md-5 col-sm-5 col-xs-5">
|
22
22
|
<h3> Merged Pull Requests</h3>
|
23
23
|
<%= render 'hubstats/tables/pulls_condensed' %>
|
24
|
-
<% if @pull_count >
|
24
|
+
<% if @pull_count > 50 %>
|
25
25
|
<p class="pull-right"><%= link_to "View All", pulls_path(:teams => @team.id) %></p>
|
26
26
|
<% end %>
|
27
27
|
</div>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
31
31
|
<h3> Active Users </h3>
|
32
32
|
<%= render 'hubstats/tables/users_condensed' %>
|
33
|
-
<% if @active_user_count >
|
33
|
+
<% if @active_user_count > 50 %>
|
34
34
|
<p class="pull-right">Hubstats is currently not set up to view all active users for this team</p>
|
35
35
|
<% end %>
|
36
36
|
</div>
|
@@ -31,7 +31,7 @@
|
|
31
31
|
<div class="col-lg-6 col-md-5 col-sm-5 col-xs-5">
|
32
32
|
<h3> Merged Pull Requests</h3>
|
33
33
|
<%= render 'hubstats/tables/pulls_condensed' %>
|
34
|
-
<% if @pull_count >
|
34
|
+
<% if @pull_count > 50 %>
|
35
35
|
<p class="pull-right"><%= link_to "View All", pulls_path(:users => @user.id) %></p>
|
36
36
|
<% end %>
|
37
37
|
</div>
|
data/lib/hubstats/version.rb
CHANGED
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.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elliot Hursh
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-06-
|
12
|
+
date: 2018-06-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -407,7 +407,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
407
407
|
version: '0'
|
408
408
|
requirements: []
|
409
409
|
rubyforge_project:
|
410
|
-
rubygems_version: 2.
|
410
|
+
rubygems_version: 2.6.14
|
411
411
|
signing_key:
|
412
412
|
specification_version: 4
|
413
413
|
summary: Github Statistics
|