bible270 1.13.0 → 1.13.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
2
  SHA256:
3
- metadata.gz: 67a4da0561f2ba1326490041bdc95c5a12121c2ad2ebab526e8c99da823d1f02
4
- data.tar.gz: 2e0faf9a902a23e4a4aa8df4bde6c9b89217073a175e1c154eaaeb722879ceba
3
+ metadata.gz: e9d0ae7ef6cafbcec6296f6f54bbe2194a170d19e224eb318c9fae72c550f6a2
4
+ data.tar.gz: b52e287e826a433094a68e533cc4cc00fcff49f3e93ee4d3325e5fbc68029070
5
5
  SHA512:
6
- metadata.gz: d49d1ec657acffb1c61b881a21a302edb638afa298c24362703fb0e02033a6bc9d9db46c4aa1bd8170df9f3a7260e09ee7b914851c581f2791be816b0be25464
7
- data.tar.gz: ae25c7f62f00bb8e15e0af6d60acb6b9b2ab9b6733c5524c269a0eeb8d2815ea8929a798169dc1a3822a43f06935f5d01c1673963096afa5853b54a10bb96457
6
+ metadata.gz: 275ee16199f0be8709b15143a2bd2770f9d36c4bb970c7407bc3af85ff29bf812437024b05f316aacb48e3beb29f2d3a18034cd7dce81732c4b3bc71802169b9
7
+ data.tar.gz: faed055aa4509349e590b2fc53f4e9bfbc8c6779896872b7cb20b13e1885649380645292a86e1373865a526056d843beeb7fad098aaa1b8f663679b420aaaa1a
data/CHANGELOG.md CHANGED
@@ -7,7 +7,8 @@ All notable changes to bible270. Format follows [Keep a Changelog](https://keepa
7
7
  ### Added
8
8
 
9
9
  - add a Consistency ranking sort to Admin readers, based on average end-of-day schedule performance: 100 on track, +5 per day ahead capped at seven days, and −10 per day behind
10
- - show consistency scores, the percentage of evaluated evenings on track or ahead, and evaluated-day counts when sorting by consistency; place provisional readers with fewer than seven days after established rankings, and unranked readers last
10
+ - show consistency scores, the percentage of evaluated evenings on track or ahead, and evaluated-day counts for every Admin reader sort; display negative scores as `0` without changing ranking calculations
11
+ - when sorting by consistency, place provisional readers with fewer than seven days after established rankings, and unranked readers last
11
12
  - include a leftmost Rank column in Reader Stats when sorting by consistency, sharing competition ranks for tied metrics (for example, `1, 1, 1, 4`) and showing a dash for unranked readers
12
13
  - reconstruct consistency from recorded completion timestamps and current personal/shared schedules, excluding today and dates before enrollment or after the plan's end; changing check-offs or start dates can change reconstructed history
13
14
 
@@ -75,12 +75,10 @@
75
75
  aria-controls="b270-reader-stats-dialog" data-b270-reader-stats-open hidden>Reader Stats</button>
76
76
  </div>
77
77
 
78
- <% if @reader_sort == 'consistency' %>
79
- <p class="b270-hint">
80
- Average daily score through yesterday: 100 on track, +5 per day ahead (max +35), −10 per day behind.
81
- Under 7 days is provisional; no history is unranked. Check-off or schedule changes can alter scores.
82
- </p>
83
- <% end %>
78
+ <p class="b270-hint">
79
+ Average daily score through yesterday: 100 on track, +5 per day ahead (max +35), −10 per day behind.
80
+ Under 7 days is provisional; no history is unranked. Check-off or schedule changes can alter scores.
81
+ </p>
84
82
 
85
83
  <div class="b270-list">
86
84
  <% @readers.each do |reader| %>
@@ -101,19 +99,17 @@
101
99
  · <%= @days_completed[reader.id] %>/<%= Bible270::Plan::DAYS %> days
102
100
  · <%= @reader_report.status_for(reader) %>
103
101
  </div>
104
- <% if @reader_sort == 'consistency' %>
105
- <% consistency = @reader_report.consistency_for(reader) %>
106
- <div class="sub b270-reader-consistency">
107
- <% if consistency.ranked? %>
108
- <% if consistency.provisional? %><strong>Provisional</strong> · <% end %>
109
- Consistency: <%= number_with_precision(consistency.score.to_f, precision: 1) %>
110
- · On track/ahead: <%= consistency.on_track_percentage.round %>%
111
- · <%= pluralize(consistency.days_evaluated, 'day') %> evaluated
112
- <% else %>
113
- Consistency: Not ranked
114
- <% end %>
115
- </div>
116
- <% end %>
102
+ <% consistency = @reader_report.consistency_for(reader) %>
103
+ <div class="sub b270-reader-consistency">
104
+ <% if consistency.ranked? %>
105
+ <% if consistency.provisional? %><strong>Provisional</strong> · <% end %>
106
+ Consistency: <%= consistency.score.negative? ? '0' : number_with_precision(consistency.score.to_f, precision: 1) %>
107
+ · On track/ahead: <%= consistency.on_track_percentage.round %>%
108
+ · <%= pluralize(consistency.days_evaluated, 'day') %> evaluated
109
+ <% else %>
110
+ Consistency: Not ranked
111
+ <% end %>
112
+ </div>
117
113
  <div class="sub b270-reader-activity">
118
114
  <% if (activity = @recent_reader_activities[reader.id]) %>
119
115
  <%= b270_activity_datetime(activity.occurred_at) %>: <%= b270_reader_activity_description(activity) %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bible270
4
- VERSION = '1.13.0'
4
+ VERSION = '1.13.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bible270
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.0
4
+ version: 1.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew vonderLuft