biodiversity 4.0.1 → 4.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16f738b68e5581556761d12404e66562493718d0075df611f65780f445ebd265
4
- data.tar.gz: 24822d2bfa6f0fb5ed1f035dfc5ef9461025b50766fd8191a853d70d2349a348
3
+ metadata.gz: 8e1a5a67bcea7c0e234726d7702c4224b109a7852899a2d3b84d25b38ee9ad84
4
+ data.tar.gz: 69e7781d05858faa63ed40b4d964499e0718bec3b6fecc9e5620879bd72acf34
5
5
  SHA512:
6
- metadata.gz: 96b035faa977f9b10d253af2fe82938d7234bc572c031e726b1893ef5c93293771afe8e37a20d46355ee04958b7432ece52a9eba9ee8789432e8ea46f283ccb2
7
- data.tar.gz: 57d5a7fdf457fa6fe236ca5ff6b0e270632b39dd7529629bc12f2f16822e08f8fbbf2ef57a8f298fbad8e50fd69794d052f21cc93ceb8e3f29b27424d4bba040
6
+ metadata.gz: be191bc9156447da5883c7a910b83012422869bbe7fdb6950833e2090b1ad33fb521dd5196376fba821d2991857a5c0adcc06b80f5752b7434c428a449d662b1
7
+ data.tar.gz: 4bc7244b2d4c24146aa19f191c78e9645779298cfb67a18904aaddae3c0baa866035ecfed82827bc2e78cde54e8ee4fd9dccdedd76f8a43d222f06212a07ce35
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 4.0.2 -- add MS Windows libraries
2
+
3
+ 4.0.1 -- fix for simple output
4
+
1
5
  4.0.0 -- migrate code to gnparser C-shared library. This change breaks
2
6
  backward compatibility, and makes parser dramatically faster.
3
7
 
@@ -0,0 +1,93 @@
1
+ /* Code generated by cmd/cgo; DO NOT EDIT. */
2
+
3
+ /* package gitlab.com/gogna/gnparser/binding */
4
+
5
+
6
+ #line 1 "cgo-builtin-export-prolog"
7
+
8
+ #include <stddef.h> /* for ptrdiff_t below */
9
+
10
+ #ifndef GO_CGO_EXPORT_PROLOGUE_H
11
+ #define GO_CGO_EXPORT_PROLOGUE_H
12
+
13
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
14
+ typedef struct { const char *p; ptrdiff_t n; } _GoString_;
15
+ #endif
16
+
17
+ #endif
18
+
19
+ /* Start of preamble from import "C" comments. */
20
+
21
+
22
+ #line 3 "main.go"
23
+
24
+ #include "stdlib.h"
25
+
26
+ #line 1 "cgo-generated-wrapper"
27
+
28
+
29
+ /* End of preamble from import "C" comments. */
30
+
31
+
32
+ /* Start of boilerplate cgo prologue. */
33
+ #line 1 "cgo-gcc-export-header-prolog"
34
+
35
+ #ifndef GO_CGO_PROLOGUE_H
36
+ #define GO_CGO_PROLOGUE_H
37
+
38
+ typedef signed char GoInt8;
39
+ typedef unsigned char GoUint8;
40
+ typedef short GoInt16;
41
+ typedef unsigned short GoUint16;
42
+ typedef int GoInt32;
43
+ typedef unsigned int GoUint32;
44
+ typedef long long GoInt64;
45
+ typedef unsigned long long GoUint64;
46
+ typedef GoInt64 GoInt;
47
+ typedef GoUint64 GoUint;
48
+ typedef __SIZE_TYPE__ GoUintptr;
49
+ typedef float GoFloat32;
50
+ typedef double GoFloat64;
51
+ typedef float _Complex GoComplex64;
52
+ typedef double _Complex GoComplex128;
53
+
54
+ /*
55
+ static assertion to make sure the file is being used on architecture
56
+ at least with matching size of GoInt.
57
+ */
58
+ typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
59
+
60
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
61
+ typedef _GoString_ GoString;
62
+ #endif
63
+ typedef void *GoMap;
64
+ typedef void *GoChan;
65
+ typedef struct { void *t; void *v; } GoInterface;
66
+ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
67
+
68
+ #endif
69
+
70
+ /* End of boilerplate cgo prologue. */
71
+
72
+ #ifdef __cplusplus
73
+ extern "C" {
74
+ #endif
75
+
76
+
77
+ // ParseToString function takes a name-string, desired format, and parses
78
+ // the name-string to either JSON, or pipe-separated values, depending on
79
+ // the desired format. Format can take values of 'simple', 'compact', 'pretty'.
80
+
81
+ extern char* ParseToString(char* p0, char* p1);
82
+
83
+ // ParseAryToStrings function takes an array of names, parsing format and a
84
+ // reference to an output: an empty array of strings to return the the data
85
+ // back. It populates the output array with raw strings of either JSON or
86
+ // pipe-separated parsed values (depending on a given format). Format can take
87
+ // values of 'simple', 'compact', or 'pretty'.
88
+
89
+ extern void ParseAryToStrings(char** p0, int p1, char* p2, char*** p3);
90
+
91
+ #ifdef __cplusplus
92
+ }
93
+ #endif
Binary file
@@ -17,7 +17,7 @@ module Biodiversity
17
17
  'linux'
18
18
  when 'darwin'
19
19
  'mac'
20
- when 'mswin64'
20
+ when 'mingw32'
21
21
  'win'
22
22
  else
23
23
  raise "Unsupported platform: #{Gem.platforms[1].os}"
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Biodiversity module provides a namespace for scientific name parser.
4
4
  module Biodiversity
5
- VERSION = '4.0.1'
5
+ VERSION = '4.0.2'
6
6
 
7
7
  def self.version
8
8
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biodiversity
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Mozzherin
@@ -115,6 +115,8 @@ files:
115
115
  - clib/linux/libgnparser.so
116
116
  - clib/mac/libgnparser.h
117
117
  - clib/mac/libgnparser.so
118
+ - clib/win/libgnparser.h
119
+ - clib/win/libgnparser.so
118
120
  - lib/biodiversity.rb
119
121
  - lib/biodiversity/parser.rb
120
122
  - lib/biodiversity/version.rb