hubstats 0.9.5 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +5 -0
- data/app/controllers/hubstats/users_controller.rb +1 -0
- data/app/views/hubstats/partials/_qa-signoffs-condensed.html.erb +30 -0
- data/app/views/hubstats/tables/_qa_signoffs_condensed.html.erb +8 -0
- data/app/views/hubstats/users/show.html.erb +9 -0
- data/lib/hubstats/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6da861f041a2a1a129245de7a643e83650598f4e
|
4
|
+
data.tar.gz: 864924f4e7b9b86bed5edcdcd6e1ee91a125da53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6111af1041627514787ccdfcb2a66d8f880e036cc29d895e97992eb004e6da3885a1e1a910d3617a62abf65f81ea371eb2d5b18a118dea828d5b0e0a8dfceb60
|
7
|
+
data.tar.gz: 22079d9f13c5e5fb6347b4fcebb9fb825001a40f9a4a2446c75e7cd3d306a6290b97da423422131dbc6dc4f81f68190b0aba3a54ec5a4ec7ed24fcf69494783a
|
data/CHANGELOG.markdown
CHANGED
@@ -36,6 +36,7 @@ module Hubstats
|
|
36
36
|
@pull_count = Hubstats::PullRequest.belonging_to_user(@user.id).merged_in_date_range(@start_date, @end_date).count(:all)
|
37
37
|
@deploys = Hubstats::Deploy.belonging_to_user(@user.id).deployed_in_date_range(@start_date, @end_date).order("deployed_at DESC").limit(20)
|
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
40
|
@qa_signoff_count = Hubstats::QaSignoff.belonging_to_user(@user.id).signed_within_date_range(@start_date, @end_date).count(:all)
|
40
41
|
@comment_count = Hubstats::Comment.belonging_to_user(@user.id).created_in_date_range(@start_date, @end_date).count(:all)
|
41
42
|
@net_additions = Hubstats::PullRequest.merged_in_date_range(@start_date, @end_date).belonging_to_user(@user.id).sum(:additions).to_i -
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<div class="row single-qasignoff">
|
2
|
+
<div class="user-image-small col-lg-1 col-md-1 col-sm-1 col-xs-2" >
|
3
|
+
<img src= <%= qa_signoff.user.avatar_url%> alt= <%= qa_signoff.user.login %> >
|
4
|
+
</div>
|
5
|
+
|
6
|
+
<!-- Show the repo name and the specific qa_signoff request name and who made it when -->
|
7
|
+
<div class="qasignoff-info col-lg-9 col-md-9 col-sm-9 col-xs-8">
|
8
|
+
<h4>
|
9
|
+
<%= link_to qa_signoff.repo.name, repo_path(qa_signoff.repo.name) %> /
|
10
|
+
<%= link_to qa_signoff.pull_request.title, qa_signoff.pull_request.html_url, :target => '_blank' %>
|
11
|
+
</h4>
|
12
|
+
by <%= link_to qa_signoff.user.login, user_path(qa_signoff.user) %>
|
13
|
+
<% if qa_signoff.pull_request.merged == '1'%>
|
14
|
+
<%= "merged #{time_ago_in_words(qa_signoff.pull_request.merged_at)} ago "%>
|
15
|
+
<% elsif qa_signoff.pull_request.state == 'closed' %>
|
16
|
+
<%= "closed #{time_ago_in_words(qa_signoff.pull_request.closed_at)} ago "%>
|
17
|
+
<% else %>
|
18
|
+
<%= "opened #{time_ago_in_words(qa_signoff.pull_request.created_at)} ago "%>
|
19
|
+
<% end %>
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<!-- Show the pull request number and a link to the github PR -->
|
23
|
+
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2" >
|
24
|
+
<div class="qasignoff-right">
|
25
|
+
<%= qa_signoff.pull_request.number %>
|
26
|
+
<span class="octicon octicon-mark-github"></span>
|
27
|
+
</span>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
</div>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<!-- Show the QA Signoffs or say there are no signoffs available -->
|
2
|
+
<% if @qa_signoffs.length > 0 %>
|
3
|
+
<div class="qa_signoffs">
|
4
|
+
<%= render partial: 'hubstats/partials/qa-signoffs-condensed', collection: @qa_signoffs, as: :qa_signoff %>
|
5
|
+
</div>
|
6
|
+
<% else %>
|
7
|
+
<p> No QA signoff information available</p>
|
8
|
+
<% end %>
|
@@ -44,5 +44,14 @@
|
|
44
44
|
<p class="pull-right"><%= link_to "View All", deploys_path(:users => @user.id) %></p>
|
45
45
|
<% end %>
|
46
46
|
</div>
|
47
|
+
|
48
|
+
<!-- Show all of this user's QA Signoffs in a "condensed" view -->
|
49
|
+
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
50
|
+
<h3> QA Signoffs </h3>
|
51
|
+
<%= render 'hubstats/tables/qa_signoffs_condensed' %>
|
52
|
+
<% if @qa_signoff_count > 20 %>
|
53
|
+
<p class="pull-right">Hubstats is currently not set up to View All QA signoffs</p>
|
54
|
+
<% end %>
|
55
|
+
</div>
|
47
56
|
</div>
|
48
57
|
</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.
|
4
|
+
version: 0.10.0
|
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: 2017-
|
12
|
+
date: 2017-06-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -255,6 +255,7 @@ files:
|
|
255
255
|
- app/views/hubstats/partials/_header.html.erb
|
256
256
|
- app/views/hubstats/partials/_pull-condensed.html.erb
|
257
257
|
- app/views/hubstats/partials/_pull.html.erb
|
258
|
+
- app/views/hubstats/partials/_qa-signoffs-condensed.html.erb
|
258
259
|
- app/views/hubstats/partials/_quick_stats_one.html.erb
|
259
260
|
- app/views/hubstats/partials/_quick_stats_two.html.erb
|
260
261
|
- app/views/hubstats/partials/_repo.html.erb
|
@@ -273,6 +274,7 @@ files:
|
|
273
274
|
- app/views/hubstats/tables/_grouped_pulls.html.erb
|
274
275
|
- app/views/hubstats/tables/_pulls.html.erb
|
275
276
|
- app/views/hubstats/tables/_pulls_condensed.html.erb
|
277
|
+
- app/views/hubstats/tables/_qa_signoffs_condensed.html.erb
|
276
278
|
- app/views/hubstats/tables/_repos.html.erb
|
277
279
|
- app/views/hubstats/tables/_repos_condensed.html.erb
|
278
280
|
- app/views/hubstats/tables/_teams.html.erb
|