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);
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
Original file line number Diff line number Diff line change 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+
213Gem ::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
You can’t perform that action at this time.
0 commit comments