annoy-rb 0.7.2 → 0.8.0
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/CHANGELOG.md +4 -0
- data/ext/annoy/annoyext.cpp +1 -1
- data/ext/annoy/annoyext.hpp +1 -1
- data/ext/annoy/extconf.rb +16 -2
- data/lib/annoy/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2915a30ae70f5576f11387dca86af4ffa9f1f8666bddb28e0a29cded7a9b62a3
|
4
|
+
data.tar.gz: 3f8ec0c5ccc0ef40fc20d3fdb2ee240aa41924146db1771a4e0cab7064aaa8f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f59a94752f360831dff68ff5ef973a9ce79c9471d8926891bcbfbf6c37cca17defa8b5ef24b84fe9977b2eb45e40533affac95439b3a03a22dc4d74e1e6f944
|
7
|
+
data.tar.gz: 6a2758e4ade3eaec8aad95fb45f85c62746095d8332b22e2aeb46ff0250c6baf9a973110e41ee9cc55c00ad1d6c3bb83d649df33420c9e46d00c4960cb06549e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## [[0.8.0](https://github.com/yoshoku/annoy-rb/compare/v0.7.2...v0.8.0)] - 2025-08-10
|
2
|
+
|
3
|
+
- Change to set library options accoding to platform when building ([#6](https://github.com/yoshoku/annoy-rb/issues/6)).
|
4
|
+
|
1
5
|
## 0.7.2
|
2
6
|
|
3
7
|
- Refactor native extension codes to set rb_data_type_t.wrap_struct_name for each metric and dtype.
|
data/ext/annoy/annoyext.cpp
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* Annoy.rb is a Ruby binding for the Annoy (Approximate Nearest Neighbors Oh Yeah).
|
3
3
|
*
|
4
|
-
* Copyright (c) 2020-
|
4
|
+
* Copyright (c) 2020-2025 Atsushi Tatsuma
|
5
5
|
*
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
* you may not use this file except in compliance with the License.
|
data/ext/annoy/annoyext.hpp
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* Annoy.rb is a Ruby binding for the Annoy (Approximate Nearest Neighbors Oh Yeah).
|
3
3
|
*
|
4
|
-
* Copyright (c) 2020-
|
4
|
+
* Copyright (c) 2020-2025 Atsushi Tatsuma
|
5
5
|
*
|
6
6
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
* you may not use this file except in compliance with the License.
|
data/ext/annoy/extconf.rb
CHANGED
@@ -1,8 +1,22 @@
|
|
1
1
|
require 'mkmf'
|
2
2
|
|
3
|
-
|
3
|
+
IS_MSWIN = /mswin/ =~ RUBY_PLATFORM
|
4
|
+
IS_DARWIN = /darwin/ =~ RUBY_PLATFORM
|
5
|
+
|
6
|
+
if IS_DARWIN
|
7
|
+
abort 'libc++ is not found.' unless have_library('c++')
|
8
|
+
end
|
9
|
+
|
10
|
+
if !IS_DARWIN && !IS_MSWIN
|
11
|
+
abort 'libstdc++ is not found.' unless have_library('stdc++')
|
12
|
+
end
|
13
|
+
|
14
|
+
if IS_MSWIN
|
15
|
+
$CXXFLAGS << ' /std:c++17'
|
16
|
+
else
|
17
|
+
$CXXFLAGS << ' -std=c++14'
|
18
|
+
end
|
4
19
|
|
5
|
-
$CXXFLAGS << " -std=c++14"
|
6
20
|
$INCFLAGS << " -I$(srcdir)/src"
|
7
21
|
$VPATH << "$(srcdir)/src"
|
8
22
|
|
data/lib/annoy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: annoy-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yoshoku
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies: []
|
13
12
|
description: Annoy.rb provides Ruby bindings for the Annoy (Approximate Nearest Neighbors
|
14
13
|
Oh Yeah).
|
@@ -42,7 +41,6 @@ metadata:
|
|
42
41
|
changelog_uri: https://github.com/yoshoku/annoy-rb/blob/main/CHANGELOG.md
|
43
42
|
documentation_uri: https://yoshoku.github.io/annoy-rb/doc/
|
44
43
|
rubygems_mfa_required: 'true'
|
45
|
-
post_install_message:
|
46
44
|
rdoc_options: []
|
47
45
|
require_paths:
|
48
46
|
- lib
|
@@ -57,8 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
55
|
- !ruby/object:Gem::Version
|
58
56
|
version: '0'
|
59
57
|
requirements: []
|
60
|
-
rubygems_version: 3.
|
61
|
-
signing_key:
|
58
|
+
rubygems_version: 3.7.0
|
62
59
|
specification_version: 4
|
63
60
|
summary: Ruby bindings for the Annoy (Approximate Nearest Neighbors Oh Yeah).
|
64
61
|
test_files: []
|