weighted_list_rank 0.4.0 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/weighted_list_rank/context.rb +1 -1
- data/lib/weighted_list_rank/strategies/exponential.rb +4 -1
- data/lib/weighted_list_rank/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5d85e4ccc5456ad1bce7763d39d34d4dc14f831806b9c9bcee94f0c4d926898
|
4
|
+
data.tar.gz: dcf0013d694ce996c21335ed6d56d29f7dad96c03376e9a49ede00ae634c980b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6983978ad5b4b876e6e47100ec1134aa937606d5ba0a7bafcfd235c7a737b1f84063f7ee3b8bb19f1b56521cd7e6d53196fd15ef64c2f040b90ac8facf50354e
|
7
|
+
data.tar.gz: bc4fe3145c9f563c69fc13a718c65ba0696473a134b23fa46b960ffd0952c9a1ad775502e402f798661f758d9b63a745a3fa3dd953402e34e7ae854782da6d64
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.4.2] - 2024-07-01
|
4
|
+
- fixed bug where a score could be set to 0. the lowest a score can be now is 1
|
5
|
+
|
6
|
+
## [0.4.1] - 2024-06-30
|
7
|
+
- add score_penalty to the list details hash
|
8
|
+
|
3
9
|
## [0.4.0] - 2024-06-26
|
4
10
|
- Added score_penalty feature to allow percentage-based penalties on item scores.
|
5
11
|
- Updated all dependencies to their latest versions.
|
data/Gemfile.lock
CHANGED
@@ -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
|
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.
|
4
|
+
version: 0.4.2
|
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-
|
11
|
+
date: 2024-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|