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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25b6e3d18705801e5458c656517e57d5bb42fb42846bc4cde36107787bc0f506
4
- data.tar.gz: caca0acd3a163bc4a0e09dfe7a30dfcd975d3b123f7bce76f44263545271d8d1
3
+ metadata.gz: 2915a30ae70f5576f11387dca86af4ffa9f1f8666bddb28e0a29cded7a9b62a3
4
+ data.tar.gz: 3f8ec0c5ccc0ef40fc20d3fdb2ee240aa41924146db1771a4e0cab7064aaa8f4
5
5
  SHA512:
6
- metadata.gz: 5c8a5dca9dacb2004e17ac14c2e362424b40a1532ee785c17ba85e01b02a5c40e2defd352362b97e6098b3a69d7f5e62011dba62d7ddf47b4b81fa6cd4e482f9
7
- data.tar.gz: e50f8d449dc142bb80c4caeab0c4450a80b1f3f0f0979d6a460f9115bbbc80fa6d934d006463ce8da04a10a17929ed125ffd985aadc8a50c5d6979dbe1be3026
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.
@@ -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-2023 Atsushi Tatsuma
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.
@@ -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-2023 Atsushi Tatsuma
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
- abort 'libstdc++ is not found.' unless have_library('stdc++')
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
@@ -3,7 +3,7 @@
3
3
  # Annoy.rb is a Ruby wrapper for Annoy (Approximate Nearest Neighbors Oh Yeah).
4
4
  module Annoy
5
5
  # The version of Annoy.rb you are using.
6
- VERSION = '0.7.2'
6
+ VERSION = '0.8.0'
7
7
 
8
8
  # The version of Annoy included with gem.
9
9
  ANNOY_VERSION = '1.17.1'
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.7.2
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: 2023-02-05 00:00:00.000000000 Z
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.3.26
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: []