File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ extern size_t onig_region_memsize(const struct re_registers *regs);
22
22
23
23
#include <stdbool.h>
24
24
25
- #define STRSCAN_VERSION "1 .0.4 "
25
+ #define STRSCAN_VERSION "3 .0.0 "
26
26
27
27
/* =======================================================================
28
28
Data Type Definitions
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
+ #
3
+ source_version = [ "" , "ext/strscan/" ] . find do |dir |
4
+ begin
5
+ break File . open ( File . join ( __dir__ , "#{ dir } strscan.c" ) ) { |f |
6
+ f . gets ( "\n #define STRSCAN_VERSION " )
7
+ f . gets [ /\s *"(.+)"/ , 1 ]
8
+ }
9
+ rescue Errno ::ENOENT
10
+ end
11
+ end
12
+
2
13
Gem ::Specification . new do |s |
3
14
s . name = "strscan"
4
- s . version = "1.0.4"
15
+ s . version = source_version
5
16
s . summary = "Provides lexical scanning operations on a String."
6
17
s . description = "Provides lexical scanning operations on a String."
7
18
You can’t perform that action at this time.
0 commit comments