biodiversity 6.0.0 → 6.0.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: 323ba157e2da0f89adff6455f76a193dfaf745e3ad2d93f8758aec1624fe97ee
4
- data.tar.gz: aa54199f592c05913431b128e6396bafc7133ee23fad0c62e025e8fac8ae78de
3
+ metadata.gz: 8b41cc07615d0d3938c8178c9733dbc88a78bdc71a70933f0a551d6cb4439456
4
+ data.tar.gz: ff370cafa348d831ba7417857e8c0b8497cd610c3ba38bc3ebbfcb0cb45624cb
5
5
  SHA512:
6
- metadata.gz: 30fc1c8f31ba3ade55a09d31657939503bd7dc3bcd024fa5e9abf6dffbf11cf989bf13ab661ab41407e18c59bf912c9e259f173a1e4295183c49a50870d49214
7
- data.tar.gz: 93c0282ccabbcc634ff226c78c01ca6f3285bcf03427fbef89db045fa7553c98b142f4d9278e6b5c14e1e7853c96f5c1b56b68b04896f59444d7b6a320ff5a2f
6
+ metadata.gz: c1786c6f8b3e657dff293c9e1ebe0df9b96671b6f33f3de8c350ad2ac39a9b1d41bb5cd79069a011f5b7de9ce8e6ca5e340b83448af76cbbb111bc374a061603
7
+ data.tar.gz: 9257844b871b4a24f9e7c8e3b130b29bda313d63d74b04f355fdaf2be35c18ea865078ae9eaaedd854d373ff2831b2dca215f4bc0f81580728aa5d2179ebef0a
Binary file
Binary file
Binary file
@@ -48,8 +48,20 @@ module Biodiversity
48
48
  else
49
49
  raise "Unsupported platform: #{Gem.platforms[1].os}"
50
50
  end
51
+
52
+ target_cpu = RbConfig::CONFIG['target_cpu']
53
+ cpu_arch =
54
+ case target_cpu
55
+ when /x86|x64/
56
+ 'x86'
57
+ when /aarch|arm/
58
+ 'arm'
59
+ else
60
+ raise "Unsupported CPU Architecture: #{target_cpu}"
61
+ end
62
+
51
63
  path = File.join(__dir__, '..', '..', '..',
52
- 'ext', "gnparser-#{platform_suffix}")
64
+ 'ext', "gnparser-#{cpu_arch}-#{platform_suffix}")
53
65
 
54
66
  @stdin, @stdout = Open3.popen2(
55
67
  "#{path} --format #{format} --details --quiet --stream --jobs 1 #{@extra_settings}"
@@ -2,8 +2,8 @@
2
2
 
3
3
  # Biodiversity module provides a namespace for scientific name parser.
4
4
  module Biodiversity
5
- VERSION = '6.0.0'
6
- GNPARSER_VERSION = 'GNparser 1.10.1'
5
+ VERSION = '6.0.1'
6
+ GNPARSER_VERSION = 'GNparser 1.10.3'
7
7
 
8
8
  def self.version
9
9
  VERSION
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biodiversity
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Mozzherin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-12 00:00:00.000000000 Z
11
+ date: 2024-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -126,9 +126,12 @@ files:
126
126
  - README.md
127
127
  - Rakefile
128
128
  - biodiversity.gemspec
129
- - ext/gnparser-linux
130
- - ext/gnparser-mac
131
- - ext/gnparser-win.exe
129
+ - ext/gnparser-arm-linux
130
+ - ext/gnparser-arm-mac
131
+ - ext/gnparser-arm-win.exe
132
+ - ext/gnparser-x86-linux
133
+ - ext/gnparser-x86-mac
134
+ - ext/gnparser-x86-win.exe
132
135
  - lib/biodiversity.rb
133
136
  - lib/biodiversity/parser.rb
134
137
  - lib/biodiversity/parser/gnparser.rb