davenport 1.0.2.pre → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 602601c1968346a69a93ba33634853205c2c53602d44edebf49bd1e406a64fe5
4
- data.tar.gz: 2115f76023c51ae60625863d8fab0370d17db500d0c4cc8f8781a473a363e934
3
+ metadata.gz: 264eb6bb65d755db8d6e53a9a1e246d0d36259d370896f443070a08632fb3894
4
+ data.tar.gz: c3ae0152257786a0d1d9662608a7c9d8402fad120935a2a7bb21a94454cd0a64
5
5
  SHA512:
6
- metadata.gz: a68bd514867d1958e63cb4cd05254d2deb743dade10b38291f7bfa7240dbcfc6ab80c689caa1ec24050b323cc145acb45eee9ca1a7adb09738b84ff6ed45e1e8
7
- data.tar.gz: 888c2a41f62baf512a7f2c29185d27e64d89a2d7fa606fc8c9d8727a0bc900d672dcd2624c56e3c9b1e0dbe1e134204b1b26babec953466b53a1671f7edc3eb5
6
+ metadata.gz: 7b81becce4d86dafbcbd8a25ef04198d5da7d0a19e92e12649ad03345eff58cd1e0cb25167a4fffe4e442b9ba562ea8af0206f879940c05ccef13d3e50d63ac3
7
+ data.tar.gz: 1bd62bebeb3e68e3271771aef808496d7d15ff662c72e04022dd82239841b9b5a7940adbf072434906ab692fd0114d59adc8c44e6fa1d08e26d6b6039394bbf5
data/History.txt CHANGED
@@ -4,3 +4,8 @@
4
4
 
5
5
  * Initialize Ruby gem using Hoe
6
6
 
7
+ === 1.1.1 / 2025-02-18
8
+
9
+ * 1 major enhancement
10
+
11
+ * Compile with ruby 3.4.2
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 newb
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, &aggregate_solution_add_solution, asol);
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", rb_cData);
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
@@ -1,7 +1,7 @@
1
1
  require 'davenport_ruby/davenport_ruby'
2
2
 
3
3
  module Davenport
4
- VERSION = "1.0.2"
4
+ VERSION = "1.1.1"
5
5
 
6
6
  class PreferenceGraphCountException < StandardError
7
7
  end
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.0.2.pre
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: 2019-07-24 00:00:00.000000000 Z
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
@@ -58,13 +55,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
55
  version: '0'
59
56
  required_rubygems_version: !ruby/object:Gem::Requirement
60
57
  requirements:
61
- - - ">"
58
+ - - ">="
62
59
  - !ruby/object:Gem::Version
63
- version: 1.3.1
60
+ version: '0'
64
61
  requirements:
65
62
  - libdavenport
66
- rubygems_version: 3.0.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: []