biodiversity 5.5.2 → 5.7.2
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/.ruby-version +1 -1
- data/README.md +3 -3
- data/biodiversity.gemspec +5 -5
- data/clib/linux/libgnparser.h +11 -5
- data/clib/linux/libgnparser.so +0 -0
- data/clib/mac/libgnparser.h +11 -5
- data/clib/mac/libgnparser.so +0 -0
- data/clib/win/libgnparser.h +11 -5
- data/clib/win/libgnparser.so +0 -0
- data/lib/biodiversity/version.rb +2 -2
- metadata +13 -13
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a3292e26446509d2a6a57737a4d12785bda835b566c0565998aead1dfd6a685
|
|
4
|
+
data.tar.gz: 807c8d7a3feca1c993fd9bd4e19f3740d85066e5dcc672366fd8f90db7bf1d7b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ea4ba8091f6b22076416b76dfcd0dd4a0bf9d34592e8297ab3a13c0974797f24172b8d2223b07b06ac448bfccd0d879b8b3ca611cc405d9cfcd4cdc2215de69
|
|
7
|
+
data.tar.gz: e31042c099df51aa7d74d069e6030575f28382aa986618f90cabf3fb97ad696b966ff95683b46bf61acfc6a8ca62bdabcf148efe097d963f80a95a952c70adbd
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.1.2
|
data/README.md
CHANGED
|
@@ -32,7 +32,7 @@ The gem should work on Linux, Mac and Windows (64bit) machines
|
|
|
32
32
|
## Benchmarks
|
|
33
33
|
|
|
34
34
|
The fastest way to go through a massive amount of names is to use
|
|
35
|
-
`Biodiversity::Parser.parse_ary([big array], simple
|
|
35
|
+
`Biodiversity::Parser.parse_ary([big array], simple: true)` function.
|
|
36
36
|
|
|
37
37
|
For example parsing a large file with one name per line:
|
|
38
38
|
|
|
@@ -75,10 +75,10 @@ Biodiversity.version
|
|
|
75
75
|
# gnparser.
|
|
76
76
|
|
|
77
77
|
# to parse a scientific name into a simple Ruby hash
|
|
78
|
-
Biodiversity::Parser.parse("Plantago major", simple
|
|
78
|
+
Biodiversity::Parser.parse("Plantago major", simple: true)
|
|
79
79
|
|
|
80
80
|
# to parse many scientific names using all computer CPUs
|
|
81
|
-
Biodiversity::Parser.parse_ary(["Plantago major", ... ], simple
|
|
81
|
+
Biodiversity::Parser.parse_ary(["Plantago major", ... ], simple: true)
|
|
82
82
|
|
|
83
83
|
# to parse a scientific name into a very detailed Ruby hash
|
|
84
84
|
Biodiversity::Parser.parse("Plantago major")
|
data/biodiversity.gemspec
CHANGED
|
@@ -18,12 +18,12 @@ Gem::Specification.new do |gem|
|
|
|
18
18
|
gem.files = `git ls-files`.split("\n")
|
|
19
19
|
gem.require_paths = ['lib']
|
|
20
20
|
|
|
21
|
-
gem.add_runtime_dependency 'ffi', '~> 1.
|
|
21
|
+
gem.add_runtime_dependency 'ffi', '~> 1.15'
|
|
22
22
|
|
|
23
|
-
gem.add_development_dependency 'bundler', '~> 2.
|
|
23
|
+
gem.add_development_dependency 'bundler', '~> 2.4'
|
|
24
24
|
gem.add_development_dependency 'byebug', '~> 11.1'
|
|
25
25
|
gem.add_development_dependency 'rake', '~> 13.0'
|
|
26
|
-
gem.add_development_dependency 'rspec', '~> 3.
|
|
27
|
-
gem.add_development_dependency 'rubocop', '~> 1.
|
|
28
|
-
gem.add_development_dependency 'solargraph', '~> 0.
|
|
26
|
+
gem.add_development_dependency 'rspec', '~> 3.12'
|
|
27
|
+
gem.add_development_dependency 'rubocop', '~> 1.50'
|
|
28
|
+
gem.add_development_dependency 'solargraph', '~> 0.49'
|
|
29
29
|
end
|
data/clib/linux/libgnparser.h
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
#line 1 "cgo-builtin-export-prolog"
|
|
7
7
|
|
|
8
|
-
#include <stddef.h>
|
|
8
|
+
#include <stddef.h>
|
|
9
9
|
|
|
10
10
|
#ifndef GO_CGO_EXPORT_PROLOGUE_H
|
|
11
11
|
#define GO_CGO_EXPORT_PROLOGUE_H
|
|
@@ -21,7 +21,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_;
|
|
|
21
21
|
|
|
22
22
|
#line 5 "main.go"
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
#include "stdlib.h"
|
|
25
25
|
|
|
26
26
|
#line 1 "cgo-generated-wrapper"
|
|
27
27
|
|
|
@@ -45,11 +45,17 @@ typedef long long GoInt64;
|
|
|
45
45
|
typedef unsigned long long GoUint64;
|
|
46
46
|
typedef GoInt64 GoInt;
|
|
47
47
|
typedef GoUint64 GoUint;
|
|
48
|
-
typedef
|
|
48
|
+
typedef size_t GoUintptr;
|
|
49
49
|
typedef float GoFloat32;
|
|
50
50
|
typedef double GoFloat64;
|
|
51
|
+
#ifdef _MSC_VER
|
|
52
|
+
#include <complex.h>
|
|
53
|
+
typedef _Fcomplex GoComplex64;
|
|
54
|
+
typedef _Dcomplex GoComplex128;
|
|
55
|
+
#else
|
|
51
56
|
typedef float _Complex GoComplex64;
|
|
52
57
|
typedef double _Complex GoComplex128;
|
|
58
|
+
#endif
|
|
53
59
|
|
|
54
60
|
/*
|
|
55
61
|
static assertion to make sure the file is being used on architecture
|
|
@@ -80,7 +86,7 @@ extern "C" {
|
|
|
80
86
|
// 'csv', 'compact', 'pretty'. If withDetails argument is 0, additional
|
|
81
87
|
// parsed details are ommited, if it is 1 -- they are included.
|
|
82
88
|
// true.
|
|
83
|
-
extern char* ParseToString(char* name, char* f, int details, int cultivars);
|
|
89
|
+
extern char* ParseToString(char* name, char* f, int details, int cultivars, int diaereses);
|
|
84
90
|
|
|
85
91
|
// FreeMemory takes a string pointer and frees its memory.
|
|
86
92
|
extern void FreeMemory(char* p);
|
|
@@ -90,7 +96,7 @@ extern void FreeMemory(char* p);
|
|
|
90
96
|
// either CSV or JSON format. Format argument can take values of 'csv',
|
|
91
97
|
// 'compact', or 'pretty'. For withDetails argument 0 means false, 1 means
|
|
92
98
|
// true.
|
|
93
|
-
extern char* ParseAryToString(char** in, int length, char* f, int details, int cultivars);
|
|
99
|
+
extern char* ParseAryToString(char** in, int length, char* f, int details, int cultivars, int diaereses);
|
|
94
100
|
|
|
95
101
|
#ifdef __cplusplus
|
|
96
102
|
}
|
data/clib/linux/libgnparser.so
CHANGED
|
Binary file
|
data/clib/mac/libgnparser.h
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
#line 1 "cgo-builtin-export-prolog"
|
|
7
7
|
|
|
8
|
-
#include <stddef.h>
|
|
8
|
+
#include <stddef.h>
|
|
9
9
|
|
|
10
10
|
#ifndef GO_CGO_EXPORT_PROLOGUE_H
|
|
11
11
|
#define GO_CGO_EXPORT_PROLOGUE_H
|
|
@@ -21,7 +21,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_;
|
|
|
21
21
|
|
|
22
22
|
#line 5 "main.go"
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
#include "stdlib.h"
|
|
25
25
|
|
|
26
26
|
#line 1 "cgo-generated-wrapper"
|
|
27
27
|
|
|
@@ -45,11 +45,17 @@ typedef long long GoInt64;
|
|
|
45
45
|
typedef unsigned long long GoUint64;
|
|
46
46
|
typedef GoInt64 GoInt;
|
|
47
47
|
typedef GoUint64 GoUint;
|
|
48
|
-
typedef
|
|
48
|
+
typedef size_t GoUintptr;
|
|
49
49
|
typedef float GoFloat32;
|
|
50
50
|
typedef double GoFloat64;
|
|
51
|
+
#ifdef _MSC_VER
|
|
52
|
+
#include <complex.h>
|
|
53
|
+
typedef _Fcomplex GoComplex64;
|
|
54
|
+
typedef _Dcomplex GoComplex128;
|
|
55
|
+
#else
|
|
51
56
|
typedef float _Complex GoComplex64;
|
|
52
57
|
typedef double _Complex GoComplex128;
|
|
58
|
+
#endif
|
|
53
59
|
|
|
54
60
|
/*
|
|
55
61
|
static assertion to make sure the file is being used on architecture
|
|
@@ -80,7 +86,7 @@ extern "C" {
|
|
|
80
86
|
// 'csv', 'compact', 'pretty'. If withDetails argument is 0, additional
|
|
81
87
|
// parsed details are ommited, if it is 1 -- they are included.
|
|
82
88
|
// true.
|
|
83
|
-
extern char* ParseToString(char* name, char* f, int details, int cultivars);
|
|
89
|
+
extern char* ParseToString(char* name, char* f, int details, int cultivars, int diaereses);
|
|
84
90
|
|
|
85
91
|
// FreeMemory takes a string pointer and frees its memory.
|
|
86
92
|
extern void FreeMemory(char* p);
|
|
@@ -90,7 +96,7 @@ extern void FreeMemory(char* p);
|
|
|
90
96
|
// either CSV or JSON format. Format argument can take values of 'csv',
|
|
91
97
|
// 'compact', or 'pretty'. For withDetails argument 0 means false, 1 means
|
|
92
98
|
// true.
|
|
93
|
-
extern char* ParseAryToString(char** in, int length, char* f, int details, int cultivars);
|
|
99
|
+
extern char* ParseAryToString(char** in, int length, char* f, int details, int cultivars, int diaereses);
|
|
94
100
|
|
|
95
101
|
#ifdef __cplusplus
|
|
96
102
|
}
|
data/clib/mac/libgnparser.so
CHANGED
|
Binary file
|
data/clib/win/libgnparser.h
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
#line 1 "cgo-builtin-export-prolog"
|
|
7
7
|
|
|
8
|
-
#include <stddef.h>
|
|
8
|
+
#include <stddef.h>
|
|
9
9
|
|
|
10
10
|
#ifndef GO_CGO_EXPORT_PROLOGUE_H
|
|
11
11
|
#define GO_CGO_EXPORT_PROLOGUE_H
|
|
@@ -21,7 +21,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_;
|
|
|
21
21
|
|
|
22
22
|
#line 5 "main.go"
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
#include "stdlib.h"
|
|
25
25
|
|
|
26
26
|
#line 1 "cgo-generated-wrapper"
|
|
27
27
|
|
|
@@ -45,11 +45,17 @@ typedef long long GoInt64;
|
|
|
45
45
|
typedef unsigned long long GoUint64;
|
|
46
46
|
typedef GoInt64 GoInt;
|
|
47
47
|
typedef GoUint64 GoUint;
|
|
48
|
-
typedef
|
|
48
|
+
typedef size_t GoUintptr;
|
|
49
49
|
typedef float GoFloat32;
|
|
50
50
|
typedef double GoFloat64;
|
|
51
|
+
#ifdef _MSC_VER
|
|
52
|
+
#include <complex.h>
|
|
53
|
+
typedef _Fcomplex GoComplex64;
|
|
54
|
+
typedef _Dcomplex GoComplex128;
|
|
55
|
+
#else
|
|
51
56
|
typedef float _Complex GoComplex64;
|
|
52
57
|
typedef double _Complex GoComplex128;
|
|
58
|
+
#endif
|
|
53
59
|
|
|
54
60
|
/*
|
|
55
61
|
static assertion to make sure the file is being used on architecture
|
|
@@ -80,7 +86,7 @@ extern "C" {
|
|
|
80
86
|
// 'csv', 'compact', 'pretty'. If withDetails argument is 0, additional
|
|
81
87
|
// parsed details are ommited, if it is 1 -- they are included.
|
|
82
88
|
// true.
|
|
83
|
-
extern __declspec(dllexport) char* ParseToString(char* name, char* f, int details, int cultivars);
|
|
89
|
+
extern __declspec(dllexport) char* ParseToString(char* name, char* f, int details, int cultivars, int diaereses);
|
|
84
90
|
|
|
85
91
|
// FreeMemory takes a string pointer and frees its memory.
|
|
86
92
|
extern __declspec(dllexport) void FreeMemory(char* p);
|
|
@@ -90,7 +96,7 @@ extern __declspec(dllexport) void FreeMemory(char* p);
|
|
|
90
96
|
// either CSV or JSON format. Format argument can take values of 'csv',
|
|
91
97
|
// 'compact', or 'pretty'. For withDetails argument 0 means false, 1 means
|
|
92
98
|
// true.
|
|
93
|
-
extern __declspec(dllexport) char* ParseAryToString(char** in, int length, char* f, int details, int cultivars);
|
|
99
|
+
extern __declspec(dllexport) char* ParseAryToString(char** in, int length, char* f, int details, int cultivars, int diaereses);
|
|
94
100
|
|
|
95
101
|
#ifdef __cplusplus
|
|
96
102
|
}
|
data/clib/win/libgnparser.so
CHANGED
|
Binary file
|
data/lib/biodiversity/version.rb
CHANGED
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: 5.
|
|
4
|
+
version: 5.7.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitry Mozzherin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-04-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|
|
@@ -16,28 +16,28 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '1.
|
|
19
|
+
version: '1.15'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '1.
|
|
26
|
+
version: '1.15'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: bundler
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '2.
|
|
33
|
+
version: '2.4'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '2.
|
|
40
|
+
version: '2.4'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: byebug
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -72,42 +72,42 @@ dependencies:
|
|
|
72
72
|
requirements:
|
|
73
73
|
- - "~>"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '3.
|
|
75
|
+
version: '3.12'
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
80
|
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '3.
|
|
82
|
+
version: '3.12'
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: rubocop
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
|
87
87
|
- - "~>"
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '1.
|
|
89
|
+
version: '1.50'
|
|
90
90
|
type: :development
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
94
|
- - "~>"
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '1.
|
|
96
|
+
version: '1.50'
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: solargraph
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
101
|
- - "~>"
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: '0.
|
|
103
|
+
version: '0.49'
|
|
104
104
|
type: :development
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
108
|
- - "~>"
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: '0.
|
|
110
|
+
version: '0.49'
|
|
111
111
|
description: Parsing tool for biodiversity informatics
|
|
112
112
|
email: dmozzherin@gmail.com
|
|
113
113
|
executables: []
|
|
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
156
156
|
- !ruby/object:Gem::Version
|
|
157
157
|
version: '0'
|
|
158
158
|
requirements: []
|
|
159
|
-
rubygems_version: 3.
|
|
159
|
+
rubygems_version: 3.3.7
|
|
160
160
|
signing_key:
|
|
161
161
|
specification_version: 4
|
|
162
162
|
summary: Parser of scientific names
|