weighted_list_rank 0.4.0 → 0.4.1

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
  SHA256:
3
- metadata.gz: f9afa895dc286e9cc5dd2370376b965eda825669debad06e21c232b996e2cab6
4
- data.tar.gz: 6116b3e97dc978a0ca8021f683ff7d5b31b1ebd1e0e3f07fc10c7a266b34659e
3
+ metadata.gz: 3efeef897377d594e12ae8c6faee355301d88e737b7c5bf29a949bd1e340f268
4
+ data.tar.gz: 7decd73970158dc3d7617cf361b358554251ed3cc2aaa5dba47dbf83d5501d43
5
5
  SHA512:
6
- metadata.gz: 71656bad8660b6ae1455afc06a406dddf69f688feb22b690b6dcef57b39aa2ba60df1fe14be91aa22af957b71960b7fe856a980b1769090ea039149fcb005abe
7
- data.tar.gz: cb30e3d19ed531e74ff7d665c92029a105c83a6d18e3ce98671c3471218c1c5fa6fc39672394161444b38cc2a97d0dfc2aeab60cfaedefde2664f246cd9ac5c6
6
+ metadata.gz: 822ea0d168a09174a6ecfe4ba3b6a638c23ef10bb48d878e343d02d5ea420e314059df5285436aca8fa8e99c7ae7943711ee38fa26535b787bc51363913686ac
7
+ data.tar.gz: ff30961a974e44a43c065c66ca5f212f69793422ab4e5f888ef7954692ff9d587105b6b888d86582571a60eadd8d4ce76fc95e88c8c8ab5f4ea5ec5bb7762fbd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.4.1] - 2024-06-30
4
+ - add score_penalty to the list details hash
5
+
3
6
  ## [0.4.0] - 2024-06-26
4
7
  - Added score_penalty feature to allow percentage-based penalties on item scores.
5
8
  - Updated all dependencies to their latest versions.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- weighted_list_rank (0.4.0)
4
+ weighted_list_rank (0.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -22,7 +22,7 @@ module WeightedListRank
22
22
  items[item.id] ||= {}
23
23
  # Ensure the list_details array exists, then append the new score detail
24
24
  items[item.id][:list_details] ||= []
25
- items[item.id][:list_details] << {list_id: list.id, score: score, weight: list.weight}
25
+ items[item.id][:list_details] << {list_id: list.id, score: score, weight: list.weight, score_penalty: item.score_penalty}
26
26
 
27
27
  # Ensure the total_score is initialized, then add the score
28
28
  items[item.id][:total_score] ||= 0
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WeightedListRank
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weighted_list_rank
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Sherman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-27 00:00:00.000000000 Z
11
+ date: 2024-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop