biosyntax 0.1.1 → 0.1.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.
data/README.md CHANGED
@@ -147,9 +147,10 @@ bundle exec rake
147
147
 
148
148
  ## License
149
149
 
150
- `biosyntax` vendors `libbiosyntax`, which is licensed under the GNU General
151
- Public License version 3 only. This gem is therefore distributed under
152
- `GPL-3.0-only`. See `LICENSE.md`.
150
+ The Ruby code and native binding are licensed under the [MIT License](LICENSE.md).
151
+ The vendored `libbiosyntax` source is licensed under
152
+ [LGPL-2.1-or-later](LICENSE.libbiosyntax.md), and the compiled extension is
153
+ subject to its terms.
153
154
 
154
155
  This project is inspired by the original bioSyntax project:
155
156
  <https://github.com/bioSyntax/bioSyntax>
@@ -1,7 +1,7 @@
1
1
 
2
2
  /*
3
3
  * libbiosyntax: dependency-free C tokenizer/highlighter core for biological files.
4
- * SPDX-License-Identifier: GPL-3.0-only
4
+ * SPDX-License-Identifier: LGPL-2.1-or-later
5
5
  */
6
6
  #define BIOSYN_BUILDING_LIBRARY
7
7
  #include "biosyntax.h"
@@ -431,25 +431,25 @@ static uint32_t mapq_score(int64_t v) { if (v == 255 || v < 10) return BIOSYN_CL
431
431
 
432
432
  static void hi_fasta_scheme(writer_t *w, const char *s, size_t n, uint32_t scheme) { n = trim_eol(s, n); if (!n) return; if (s[0] == '>') emit(w, 0, n, BIOSYN_CLASS_HEADER); else if (s[0] == ';' || s[0] == '#') emit(w, 0, n, BIOSYN_CLASS_COMMENT); else seq_runs_scheme(w, s, 0, n, scheme); }
433
433
  static int is_start_codon(const char *s, size_t i, size_t n) {
434
- unsigned char a, b, c;
434
+ int a, b, c;
435
435
  if (i + 3 > n) return 0;
436
436
  a = up((unsigned char)s[i]); b = up((unsigned char)s[i + 1]); c = up((unsigned char)s[i + 2]);
437
437
  return a == 'A' && b == 'T' && c == 'G';
438
438
  }
439
439
  static int is_stop_codon(const char *s, size_t i, size_t n) {
440
- unsigned char a, b, c;
440
+ int a, b, c;
441
441
  if (i + 3 > n) return 0;
442
442
  a = up((unsigned char)s[i]); b = up((unsigned char)s[i + 1]); c = up((unsigned char)s[i + 2]);
443
443
  return a == 'T' && ((b == 'A' && (c == 'A' || c == 'G')) || (b == 'G' && c == 'A'));
444
444
  }
445
445
  static int is_rna_start_codon(const char *s, size_t i, size_t n) {
446
- unsigned char a, b, c;
446
+ int a, b, c;
447
447
  if (i + 3 > n) return 0;
448
448
  a = up((unsigned char)s[i]); b = up((unsigned char)s[i + 1]); c = up((unsigned char)s[i + 2]);
449
449
  return a == 'A' && b == 'U' && c == 'G';
450
450
  }
451
451
  static int is_rna_stop_codon(const char *s, size_t i, size_t n) {
452
- unsigned char a, b, c;
452
+ int a, b, c;
453
453
  if (i + 3 > n) return 0;
454
454
  a = up((unsigned char)s[i]); b = up((unsigned char)s[i + 1]); c = up((unsigned char)s[i + 2]);
455
455
  return a == 'U' && ((b == 'A' && (c == 'A' || c == 'G')) || (b == 'G' && c == 'A'));
@@ -4,7 +4,7 @@
4
4
  /*
5
5
  * libbiosyntax: dependency-free C tokenizer/highlighter core for biological files.
6
6
  * The core performs no IO; callers pass one already-read text line at a time.
7
- * SPDX-License-Identifier: GPL-3.0-only
7
+ * SPDX-License-Identifier: LGPL-2.1-or-later
8
8
  */
9
9
 
10
10
  #include <stddef.h>
@@ -32,7 +32,7 @@ extern "C" {
32
32
 
33
33
  #define BIOSYN_VERSION_MAJOR 0
34
34
  #define BIOSYN_VERSION_MINOR 1
35
- #define BIOSYN_VERSION_PATCH 0
35
+ #define BIOSYN_VERSION_PATCH 1
36
36
  #define BIOSYN_ABI_VERSION 1u
37
37
 
38
38
  #define BIOSYN_STRINGIFY_DETAIL(x) #x
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * Ruby native extension for libbiosyntax.
3
- * SPDX-License-Identifier: GPL-3.0-only
3
+ * SPDX-License-Identifier: MIT
4
4
  */
5
5
 
6
6
  #include "ruby.h"
@@ -1,5 +1,5 @@
1
1
  module BioSyntax
2
2
  # Ruby gem version.
3
3
  # @return [String]
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biosyntax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kojix2
@@ -16,6 +16,7 @@ extensions:
16
16
  - ext/biosyntax/extconf.rb
17
17
  extra_rdoc_files: []
18
18
  files:
19
+ - LICENSE.libbiosyntax.md
19
20
  - LICENSE.md
20
21
  - README.md
21
22
  - exe/biocat
@@ -25,9 +26,9 @@ files:
25
26
  - ext/biosyntax/extconf.rb
26
27
  - lib/biosyntax.rb
27
28
  - lib/biosyntax/version.rb
28
- homepage: https://github.com/kojix2/biosyntax
29
+ homepage: https://github.com/kojix2/ruby-biosyntax
29
30
  licenses:
30
- - GPL-3.0-only
31
+ - MIT
31
32
  metadata: {}
32
33
  rdoc_options: []
33
34
  require_paths:
@@ -43,7 +44,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
43
44
  - !ruby/object:Gem::Version
44
45
  version: '0'
45
46
  requirements: []
46
- rubygems_version: 4.0.10
47
+ rubygems_version: 4.0.16
47
48
  specification_version: 4
48
49
  summary: Ruby native binding for libbiosyntax
49
50
  test_files: []