davenport 1.0.2 → 1.1.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 +4 -4
- data/History.txt +5 -0
- data/README.rdoc +5 -3
- data/ext/davenport_ruby/davenport_ruby.c +4 -2
- data/lib/davenport.rb +1 -1
- metadata +4 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 264eb6bb65d755db8d6e53a9a1e246d0d36259d370896f443070a08632fb3894
|
4
|
+
data.tar.gz: c3ae0152257786a0d1d9662608a7c9d8402fad120935a2a7bb21a94454cd0a64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b81becce4d86dafbcbd8a25ef04198d5da7d0a19e92e12649ad03345eff58cd1e0cb25167a4fffe4e442b9ba562ea8af0206f879940c05ccef13d3e50d63ac3
|
7
|
+
data.tar.gz: 1bd62bebeb3e68e3271771aef808496d7d15ff662c72e04022dd82239841b9b5a7940adbf072434906ab692fd0114d59adc8c44e6fa1d08e26d6b6039394bbf5
|
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -59,17 +59,19 @@ This requires the Davenport library installed according to
|
|
59
59
|
|
60
60
|
After checking out the source, run:
|
61
61
|
|
62
|
-
$ rake
|
62
|
+
$ rake compile
|
63
63
|
|
64
64
|
This task will install any missing dependencies, run the tests/specs,
|
65
65
|
and generate the RDoc.
|
66
66
|
|
67
|
+
See https://guides.rubygems.org/make-your-own-gem/ for how to publish.
|
68
|
+
|
67
69
|
== LICENSE:
|
68
70
|
|
69
|
-
GNU Lesser General Public License v3 (LGPL-3.0)
|
71
|
+
GNU Lesser General Public License v3 (LGPL-3.0) or later
|
70
72
|
|
71
73
|
See the file,
|
72
74
|
{LICENSE}[https://github.com/wbreeze/davenport-ruby/blob/master/LICENSE]
|
73
75
|
for the full text.
|
74
76
|
|
75
|
-
Copyright (c) 2019 Douglas Lovell
|
77
|
+
Copyright (c) 2019, 2025 Douglas Lovell
|
@@ -90,7 +90,9 @@ VALUE davenport(VALUE self)
|
|
90
90
|
|
91
91
|
AggregateSolution *asol = aggregate_solution_create(node_ct);
|
92
92
|
Davenport *dv = davenport_create(majority_graph, node_ct);
|
93
|
-
davenport_set_solution_callback(dv,
|
93
|
+
davenport_set_solution_callback(dv,
|
94
|
+
(DavenportSolutionCallback)&aggregate_solution_add_solution,
|
95
|
+
asol);
|
94
96
|
davenport_compute(dv);
|
95
97
|
dv = davenport_destroy(dv);
|
96
98
|
|
@@ -108,7 +110,7 @@ VALUE davenport(VALUE self)
|
|
108
110
|
void Init_davenport_ruby()
|
109
111
|
{
|
110
112
|
VALUE mDv = rb_define_module("Davenport");
|
111
|
-
VALUE cPg = rb_define_class_under(mDv, "PreferenceGraph",
|
113
|
+
VALUE cPg = rb_define_class_under(mDv, "PreferenceGraph", rb_cObject);
|
112
114
|
rb_define_alloc_func(cPg, pg_allocate);
|
113
115
|
rb_define_method(cPg, "initialize", initialize, 1);
|
114
116
|
rb_define_method(cPg, "add_preference", add_preference, 1);
|
data/lib/davenport.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: davenport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Douglas Lovell <https://wbreeze.com/>
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-02-18 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: rake-compiler
|
@@ -26,7 +25,6 @@ dependencies:
|
|
26
25
|
version: '1.0'
|
27
26
|
description: 'Provides a Ruby interface for aggregating partial order expressions
|
28
27
|
into a partial order with minimal Kemeny-Young distance '
|
29
|
-
email:
|
30
28
|
executables: []
|
31
29
|
extensions:
|
32
30
|
- ext/davenport_ruby/extconf.rb
|
@@ -40,14 +38,13 @@ files:
|
|
40
38
|
- lib/davenport.rb
|
41
39
|
homepage: https://github.com/wbreeze/davenport-ruby
|
42
40
|
licenses:
|
43
|
-
- LGPL-3.0
|
41
|
+
- LGPL-3.0-or-later
|
44
42
|
metadata:
|
45
43
|
bug_tracker_uri: https://github.com/wbreeze/davenport-ruby/issues
|
46
44
|
changelog_uri: https://github.com/wbreeze/davenport-ruby/pulls
|
47
45
|
documentation_uri: https://github.com/wbreeze/davenport-ruby
|
48
46
|
homepage_uri: https://github.com/wbreeze/davenport-ruby
|
49
47
|
source_code_uri: https://github.com/wbreeze/davenport-ruby
|
50
|
-
post_install_message:
|
51
48
|
rdoc_options: []
|
52
49
|
require_paths:
|
53
50
|
- lib
|
@@ -63,8 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
60
|
version: '0'
|
64
61
|
requirements:
|
65
62
|
- libdavenport
|
66
|
-
rubygems_version: 3.
|
67
|
-
signing_key:
|
63
|
+
rubygems_version: 3.6.2
|
68
64
|
specification_version: 4
|
69
65
|
summary: Ruby binding for the Davenport library
|
70
66
|
test_files: []
|