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 +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/lib/weighted_list_rank/context.rb +1 -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: 3efeef897377d594e12ae8c6faee355301d88e737b7c5bf29a949bd1e340f268
|
4
|
+
data.tar.gz: 7decd73970158dc3d7617cf361b358554251ed3cc2aaa5dba47dbf83d5501d43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 822ea0d168a09174a6ecfe4ba3b6a638c23ef10bb48d878e343d02d5ea420e314059df5285436aca8fa8e99c7ae7943711ee38fa26535b787bc51363913686ac
|
7
|
+
data.tar.gz: ff30961a974e44a43c065c66ca5f212f69793422ab4e5f888ef7954692ff9d587105b6b888d86582571a60eadd8d4ce76fc95e88c8c8ab5f4ea5ec5bb7762fbd
|
data/CHANGELOG.md
CHANGED
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.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-
|
11
|
+
date: 2024-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|