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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 873a5d51310ab9ee4a5615a33668fc497b9dedb1
4
- data.tar.gz: e1c4bf65ceaf1ee356b04534e2864a9487bb3637
3
+ metadata.gz: 6da861f041a2a1a129245de7a643e83650598f4e
4
+ data.tar.gz: 864924f4e7b9b86bed5edcdcd6e1ee91a125da53
5
5
  SHA512:
6
- metadata.gz: 627179e0e4b7d192b7d5761931084a7b0dd23c8cfa2c9a2ec4c0d3c6c861af51cc3cb793e67318cb2d2ef97e5670b549c8886f16b2c1bac3f7fb98145aacdfe2
7
- data.tar.gz: c03bff450c4a4069b5efdbf4f468072accab6bc405df43967fbbea00d8044408445085422f0a630ce464bdedb0dc4c9ac158d562a3fd4b68f9e46fc5a33c5601
6
+ metadata.gz: 6111af1041627514787ccdfcb2a66d8f880e036cc29d895e97992eb004e6da3885a1e1a910d3617a62abf65f81ea371eb2d5b18a118dea828d5b0e0a8dfceb60
7
+ data.tar.gz: 22079d9f13c5e5fb6347b4fcebb9fb825001a40f9a4a2446c75e7cd3d306a6290b97da423422131dbc6dc4f81f68190b0aba3a54ec5a4ec7ed24fcf69494783a
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,8 @@
1
+ #### v0.10.0
2
+ * Show list of QA Signoffs on User's show page
3
+
4
+ > Emma Sax: Unknown User: https://github.com/sportngin/hubstats/pull/120
5
+
1
6
  #### v0.9.5
2
7
  * Linking Today button in Hubstats datepicker
3
8
 
@@ -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>
@@ -1,3 +1,3 @@
1
1
  module Hubstats
2
- VERSION = "0.9.5"
2
+ VERSION = "0.10.0"
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.9.5
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-03-22 00:00:00.000000000 Z
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