strscan 3.0.2.pre1 → 3.0.4

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: a9fd5b208e7aacf23888bbe6a3f8b935b094c1baef2ab4756b9e7b41804a1b8c
4
- data.tar.gz: 709f8ad4e2d4d8832e2d85e1be00654f621312533646df6f5234f0cb9ea414db
3
+ metadata.gz: ac97143ad3475bb22b506c3841a206ce2c6ef70a44330ba05be5e72a6bf183f2
4
+ data.tar.gz: f66c4ed0b225115748bff2a26352f7bfad39f333be8219b8b84a0b9b5af831d6
5
5
  SHA512:
6
- metadata.gz: 4a08b38d5075dee6450a14904b6e0220423247609d78e84e28272e1f257235d45d4902de656db61286d98e03dcfc1231a60174cdf5eb26b5e2b6735c59dda9a6
7
- data.tar.gz: cc2b8c1637db23c98a590f1d20f59a56ac64b3372afba40dd7aee85fa98fe47708e40238d70ca322a9e93e4d89c216f82a7c9d545c7189e177b5b0e7d0feec77
6
+ metadata.gz: 7f6b0e1faf495ba2e3b8d9f82ba40964eaad9f730477a5253d3fe8890fb75e1756c38d1187fae3e0dd88c71bfed728cd6bd7c7174606b1e004d35f3cefa9dfcd
7
+ data.tar.gz: 5dba60f70b968815b342be3537aec8220176cd49c0a752a12b7e8c3085ed6f17af82052a35557398fb7f259ade8a42bdd1beedb1f35247f59292b3cb7d9cbce2
data/COPYING ADDED
@@ -0,0 +1,56 @@
1
+ StringScanner is copyrighted free software by Minero Aoki.
2
+ You can redistribute it and/or modify it under either the terms of the
3
+ 2-clause BSDL (see the file LICENSE.txt), or the conditions below:
4
+
5
+ 1. You may make and give away verbatim copies of the source form of the
6
+ software without restriction, provided that you duplicate all of the
7
+ original copyright notices and associated disclaimers.
8
+
9
+ 2. You may modify your copy of the software in any way, provided that
10
+ you do at least ONE of the following:
11
+
12
+ a. place your modifications in the Public Domain or otherwise
13
+ make them Freely Available, such as by posting said
14
+ modifications to Usenet or an equivalent medium, or by allowing
15
+ the author to include your modifications in the software.
16
+
17
+ b. use the modified software only within your corporation or
18
+ organization.
19
+
20
+ c. give non-standard binaries non-standard names, with
21
+ instructions on where to get the original software distribution.
22
+
23
+ d. make other distribution arrangements with the author.
24
+
25
+ 3. You may distribute the software in object code or binary form,
26
+ provided that you do at least ONE of the following:
27
+
28
+ a. distribute the binaries and library files of the software,
29
+ together with instructions (in the manual page or equivalent)
30
+ on where to get the original distribution.
31
+
32
+ b. accompany the distribution with the machine-readable source of
33
+ the software.
34
+
35
+ c. give non-standard binaries non-standard names, with
36
+ instructions on where to get the original software distribution.
37
+
38
+ d. make other distribution arrangements with the author.
39
+
40
+ 4. You may modify and include the part of the software into any other
41
+ software (possibly commercial). But some files in the distribution
42
+ are not written by the author, so that they are not under these terms.
43
+
44
+ For the list of those files and their copying conditions, see the
45
+ file LEGAL.
46
+
47
+ 5. The scripts and library files supplied as input to or produced as
48
+ output from the software do not automatically fall under the
49
+ copyright of the software, but belong to whomever generated them,
50
+ and may be sold commercially, and may be aggregated with this
51
+ software.
52
+
53
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
54
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
55
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
56
+ PURPOSE.
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (C) 1999-2006 Minero Aoki. All rights reserved.
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions
5
+ are met:
6
+ 1. Redistributions of source code must retain the above copyright
7
+ notice, this list of conditions and the following disclaimer.
8
+ 2. Redistributions in binary form must reproduce the above copyright
9
+ notice, this list of conditions and the following disclaimer in the
10
+ documentation and/or other materials provided with the distribution.
11
+
12
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
13
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
18
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
21
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22
+ SUCH DAMAGE.
@@ -1,5 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
  require 'mkmf'
3
- $INCFLAGS << " -I$(top_srcdir)" if $extmk
4
- have_func("onig_region_memsize", "ruby.h")
5
- create_makefile 'strscan'
3
+ if RUBY_ENGINE == 'ruby'
4
+ $INCFLAGS << " -I$(top_srcdir)" if $extmk
5
+ have_func("onig_region_memsize", "ruby.h")
6
+ create_makefile 'strscan'
7
+ else
8
+ File.write('Makefile', dummy_makefile("").join)
9
+ end
@@ -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 "3.0.2.pre1"
25
+ #define STRSCAN_VERSION "3.0.4"
26
26
 
27
27
  /* =======================================================================
28
28
  Data Type Definitions
@@ -1468,6 +1468,8 @@ strscan_fixed_anchor_p(VALUE self)
1468
1468
  * StringScanner provides for lexical scanning operations on a String. Here is
1469
1469
  * an example of its usage:
1470
1470
  *
1471
+ * require 'strscan'
1472
+ *
1471
1473
  * s = StringScanner.new('This is an example string')
1472
1474
  * s.eos? # -> false
1473
1475
  *
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strscan
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2.pre1
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minero Aoki
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-04-19 00:00:00.000000000 Z
13
+ date: 2022-07-23 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: Provides lexical scanning operations on a String.
16
16
  email:
@@ -22,6 +22,8 @@ extensions:
22
22
  - ext/strscan/extconf.rb
23
23
  extra_rdoc_files: []
24
24
  files:
25
+ - COPYING
26
+ - LICENSE.txt
25
27
  - ext/strscan/extconf.rb
26
28
  - ext/strscan/strscan.c
27
29
  homepage: https://github.com/ruby/strscan
@@ -40,9 +42,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
40
42
  version: 2.4.0
41
43
  required_rubygems_version: !ruby/object:Gem::Requirement
42
44
  requirements:
43
- - - ">"
45
+ - - ">="
44
46
  - !ruby/object:Gem::Version
45
- version: 1.3.1
47
+ version: '0'
46
48
  requirements: []
47
49
  rubygems_version: 3.3.7
48
50
  signing_key: