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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 503cdd6747e96ed4a1f52aefeebaa637230f109fba44b28cdca43afd4b8ddb06
4
- data.tar.gz: 7e83963f4d4911927c00e507c6fc24391b4d6c8142b25ed0c4a37a7898d28f8a
2
+ SHA1:
3
+ metadata.gz: a0ead1316136280de22c765e00d40f8b0ef89ccd
4
+ data.tar.gz: 760e93ad92c0ca58768a9c7d7e6fe64379ee5932
5
5
  SHA512:
6
- metadata.gz: 3f45d4ea3517647eca5b61f026902cac5ca48e6ad8ad198ba3335e0ce527da5517d3959709d5b9210348e52f25bec98ada3ab55f783dd3b80607683fe4219cc3
7
- data.tar.gz: 94dc59a828357a3d47eeb5bf4db872de42e738d61563bcca1dca23294f20452d3d264af68923029be9b0a99e539dfe358a555ed09be4365ce64d9f79d14e969f
6
+ metadata.gz: 41727a4a51bc98b10e12971bf9cbc34036d346d8c0abc2a49a58d2590cbb5d9c135bb88e7986b334eacd4329b9a4e44ace76977ec8345e443574776f61322095
7
+ data.tar.gz: 6793ad8af6fee4ae2d6ff99e19e00ca7a742a2f7428e967a82aeb288195553161c617fa256f33d7368d0873adcd0f99c9d64fa504a87b9ab9db0365422bee902
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,8 @@
1
+ #### v0.12.1
2
+ * Show 50 items in detailed show pages
3
+
4
+ > Emma Sax: Unknown User: https://github.com/sportngin/hubstats/pull/133
5
+
1
6
  #### v0.12.0
2
7
  #### v0.11.5
3
8
  * Fix bug where adding repositories will break if there are no commits
@@ -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(20)
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(20)
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(20)
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(20)
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(20)
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(20)
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(20)
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(20)
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(20)
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 > 20 %>
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 > 20 %>
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 > 20 %>
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 > 20 %>
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 > 20 %>
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 > 20 %>
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>
@@ -1,3 +1,3 @@
1
1
  module Hubstats
2
- VERSION = "0.12.0"
2
+ VERSION = "0.12.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubstats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
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-07 00:00:00.000000000 Z
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.7.5
410
+ rubygems_version: 2.6.14
411
411
  signing_key:
412
412
  specification_version: 4
413
413
  summary: Github Statistics