Skip to content

Commit 08645e4

Browse files
committed
Version 3.0.0
1 parent 3c93c2b commit 08645e4

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

ext/strscan/strscan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extern size_t onig_region_memsize(const struct re_registers *regs);
2222

2323
#include <stdbool.h>
2424

25-
#define STRSCAN_VERSION "1.0.4"
25+
#define STRSCAN_VERSION "3.0.0"
2626

2727
/* =======================================================================
2828
Data Type Definitions

strscan.gemspec

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
# 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+
213
Gem::Specification.new do |s|
314
s.name = "strscan"
4-
s.version = "1.0.4"
15+
s.version = source_version
516
s.summary = "Provides lexical scanning operations on a String."
617
s.description = "Provides lexical scanning operations on a String."
718

0 commit comments

Comments
 (0)