Skip to content

Commit

Permalink
update gnparser to v1.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dimus committed Apr 19, 2023
1 parent a1ac704 commit 62c7bdb
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.2
3.1.2
10 changes: 5 additions & 5 deletions biodiversity.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ Gem::Specification.new do |gem|
gem.files = `git ls-files`.split("\n")
gem.require_paths = ['lib']

gem.add_runtime_dependency 'ffi', '~> 1.14'
gem.add_runtime_dependency 'ffi', '~> 1.15'

gem.add_development_dependency 'bundler', '~> 2.2'
gem.add_development_dependency 'bundler', '~> 2.4'
gem.add_development_dependency 'byebug', '~> 11.1'
gem.add_development_dependency 'rake', '~> 13.0'
gem.add_development_dependency 'rspec', '~> 3.10'
gem.add_development_dependency 'rubocop', '~> 1.8'
gem.add_development_dependency 'solargraph', '~> 0.43'
gem.add_development_dependency 'rspec', '~> 3.12'
gem.add_development_dependency 'rubocop', '~> 1.50'
gem.add_development_dependency 'solargraph', '~> 0.49'
end
16 changes: 11 additions & 5 deletions clib/linux/libgnparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#line 1 "cgo-builtin-export-prolog"

#include <stddef.h> /* for ptrdiff_t below */
#include <stddef.h>

#ifndef GO_CGO_EXPORT_PROLOGUE_H
#define GO_CGO_EXPORT_PROLOGUE_H
Expand All @@ -21,7 +21,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_;

#line 5 "main.go"

#include "stdlib.h"
#include "stdlib.h"

#line 1 "cgo-generated-wrapper"

Expand All @@ -45,11 +45,17 @@ typedef long long GoInt64;
typedef unsigned long long GoUint64;
typedef GoInt64 GoInt;
typedef GoUint64 GoUint;
typedef __SIZE_TYPE__ GoUintptr;
typedef size_t GoUintptr;
typedef float GoFloat32;
typedef double GoFloat64;
#ifdef _MSC_VER
#include <complex.h>
typedef _Fcomplex GoComplex64;
typedef _Dcomplex GoComplex128;
#else
typedef float _Complex GoComplex64;
typedef double _Complex GoComplex128;
#endif

/*
static assertion to make sure the file is being used on architecture
Expand Down Expand Up @@ -80,7 +86,7 @@ extern "C" {
// 'csv', 'compact', 'pretty'. If withDetails argument is 0, additional
// parsed details are ommited, if it is 1 -- they are included.
// true.
extern char* ParseToString(char* name, char* f, int details, int cultivars);
extern char* ParseToString(char* name, char* f, int details, int cultivars, int diaereses);

// FreeMemory takes a string pointer and frees its memory.
extern void FreeMemory(char* p);
Expand All @@ -90,7 +96,7 @@ extern void FreeMemory(char* p);
// either CSV or JSON format. Format argument can take values of 'csv',
// 'compact', or 'pretty'. For withDetails argument 0 means false, 1 means
// true.
extern char* ParseAryToString(char** in, int length, char* f, int details, int cultivars);
extern char* ParseAryToString(char** in, int length, char* f, int details, int cultivars, int diaereses);

#ifdef __cplusplus
}
Expand Down
Binary file modified clib/linux/libgnparser.so
Binary file not shown.
16 changes: 11 additions & 5 deletions clib/mac/libgnparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#line 1 "cgo-builtin-export-prolog"

#include <stddef.h> /* for ptrdiff_t below */
#include <stddef.h>

#ifndef GO_CGO_EXPORT_PROLOGUE_H
#define GO_CGO_EXPORT_PROLOGUE_H
Expand All @@ -21,7 +21,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_;

#line 5 "main.go"

#include "stdlib.h"
#include "stdlib.h"

#line 1 "cgo-generated-wrapper"

Expand All @@ -45,11 +45,17 @@ typedef long long GoInt64;
typedef unsigned long long GoUint64;
typedef GoInt64 GoInt;
typedef GoUint64 GoUint;
typedef __SIZE_TYPE__ GoUintptr;
typedef size_t GoUintptr;
typedef float GoFloat32;
typedef double GoFloat64;
#ifdef _MSC_VER
#include <complex.h>
typedef _Fcomplex GoComplex64;
typedef _Dcomplex GoComplex128;
#else
typedef float _Complex GoComplex64;
typedef double _Complex GoComplex128;
#endif

/*
static assertion to make sure the file is being used on architecture
Expand Down Expand Up @@ -80,7 +86,7 @@ extern "C" {
// 'csv', 'compact', 'pretty'. If withDetails argument is 0, additional
// parsed details are ommited, if it is 1 -- they are included.
// true.
extern char* ParseToString(char* name, char* f, int details, int cultivars);
extern char* ParseToString(char* name, char* f, int details, int cultivars, int diaereses);

// FreeMemory takes a string pointer and frees its memory.
extern void FreeMemory(char* p);
Expand All @@ -90,7 +96,7 @@ extern void FreeMemory(char* p);
// either CSV or JSON format. Format argument can take values of 'csv',
// 'compact', or 'pretty'. For withDetails argument 0 means false, 1 means
// true.
extern char* ParseAryToString(char** in, int length, char* f, int details, int cultivars);
extern char* ParseAryToString(char** in, int length, char* f, int details, int cultivars, int diaereses);

#ifdef __cplusplus
}
Expand Down
Binary file modified clib/mac/libgnparser.so
Binary file not shown.
16 changes: 11 additions & 5 deletions clib/win/libgnparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#line 1 "cgo-builtin-export-prolog"

#include <stddef.h> /* for ptrdiff_t below */
#include <stddef.h>

#ifndef GO_CGO_EXPORT_PROLOGUE_H
#define GO_CGO_EXPORT_PROLOGUE_H
Expand All @@ -21,7 +21,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_;

#line 5 "main.go"

#include "stdlib.h"
#include "stdlib.h"

#line 1 "cgo-generated-wrapper"

Expand All @@ -45,11 +45,17 @@ typedef long long GoInt64;
typedef unsigned long long GoUint64;
typedef GoInt64 GoInt;
typedef GoUint64 GoUint;
typedef __SIZE_TYPE__ GoUintptr;
typedef size_t GoUintptr;
typedef float GoFloat32;
typedef double GoFloat64;
#ifdef _MSC_VER
#include <complex.h>
typedef _Fcomplex GoComplex64;
typedef _Dcomplex GoComplex128;
#else
typedef float _Complex GoComplex64;
typedef double _Complex GoComplex128;
#endif

/*
static assertion to make sure the file is being used on architecture
Expand Down Expand Up @@ -80,7 +86,7 @@ extern "C" {
// 'csv', 'compact', 'pretty'. If withDetails argument is 0, additional
// parsed details are ommited, if it is 1 -- they are included.
// true.
extern __declspec(dllexport) char* ParseToString(char* name, char* f, int details, int cultivars);
extern __declspec(dllexport) char* ParseToString(char* name, char* f, int details, int cultivars, int diaereses);

// FreeMemory takes a string pointer and frees its memory.
extern __declspec(dllexport) void FreeMemory(char* p);
Expand All @@ -90,7 +96,7 @@ extern __declspec(dllexport) void FreeMemory(char* p);
// either CSV or JSON format. Format argument can take values of 'csv',
// 'compact', or 'pretty'. For withDetails argument 0 means false, 1 means
// true.
extern __declspec(dllexport) char* ParseAryToString(char** in, int length, char* f, int details, int cultivars);
extern __declspec(dllexport) char* ParseAryToString(char** in, int length, char* f, int details, int cultivars, int diaereses);

#ifdef __cplusplus
}
Expand Down
Binary file modified clib/win/libgnparser.so
Binary file not shown.
4 changes: 2 additions & 2 deletions lib/biodiversity/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# Biodiversity module provides a namespace for scientific name parser.
module Biodiversity
VERSION = '5.5.2'
GNPARSER_VERSION = 'GNparser 1.5.2'
VERSION = '5.7.2'
GNPARSER_VERSION = 'GNparser 1.7.2'

def self.version
VERSION
Expand Down

0 comments on commit 62c7bdb

Please sign in to comment.