summaryrefslogtreecommitdiff
path: root/ext/strscan
Commit message (Collapse)AuthorAgeFilesLines
* Update the depend filesMatt Valentine-House2023-02-281-1/+0
|
* Remove intern/gc.h from Make depsMatt Valentine-House2023-02-271-1/+0
|
* [ruby/strscan] Bump versionSutou Kouhei2023-02-211-1/+1
| | | | https://github.com/ruby/strscan/commit/681cde0f27
* [ruby/strscan] Mention return value of `rest?` in the docOKURA Masafumi2023-02-211-2/+3
| | | | | | | (https://github.com/ruby/strscan/pull/49) The doc of `rest?` was unclear about return value. This commit adds the return value to the doc.
* Extract include/ruby/internal/attr/packed_struct.hNobuyoshi Nakada2023-02-081-0/+1
| | | | | | | | | Split `PACKED_STRUCT` and `PACKED_STRUCT_UNALIGNED` macros into the macros bellow: * `RBIMPL_ATTR_PACKED_STRUCT_BEGIN` * `RBIMPL_ATTR_PACKED_STRUCT_END` * `RBIMPL_ATTR_PACKED_STRUCT_UNALIGNED_BEGIN` * `RBIMPL_ATTR_PACKED_STRUCT_UNALIGNED_END`
* [ruby/strscan] Bump versionSutou Kouhei2022-12-261-1/+1
| | | | https://github.com/ruby/strscan/commit/3ada12613d
* Merge strscan-3.0.5Hiroshi SHIBATA2022-12-093-14/+83
|
* [Feature #18249] Update dependenciesPeter Zhu2022-02-221-0/+1
|
* Update dependenciesNobuyoshi Nakada2021-11-211-1/+0
|
* [ruby/strscan] Bump versionSutou Kouhei2021-10-241-1/+1
| | | | | | | | If we use the same version as the default strscan gem in Ruby, "gem install" doesn't extract .gem. It fails "gem install" because "gem install" can't find ext/strscan/ to be built. https://github.com/ruby/strscan/commit/3ceafa6cdc
* ruby tool/update-deps --fix卜部昌平2021-10-051-14/+23
|
* [ruby/strscan] Replace "iff" with "if and only if" (#18)Gannon McGibbon2021-05-061-3/+3
| | | | | | | | | iff means if and only if, but readers without that knowledge might assume this to be a spelling mistake. To me, this seems like exclusionary language that is unnecessary. Simply using "if and only if" instead should suffice. https://github.com/ruby/strscan/commit/066451c11e
* [ruby/strscan] Fix segmentation fault of `StringScanner#charpos` when ↵Kenichi Kamiya2021-05-061-4/+1
| | | | | | `String#byteslice` returns non string value [Bug #17756] (#20) https://github.com/ruby/strscan/commit/92961cde2b
* Import from https://github.com/ruby/strscan/pull/19Hiroshi SHIBATA2021-05-061-4/+0
| | | | | | * Use Gemfile instead of Gem::Specification#add_development_dependency. * Use pend instead of skip for test-unit.
* dependency updates卜部昌平2021-04-131-1/+0
|
* Update class documentation for StringScannerJeremy Evans2021-02-101-3/+3
| | | | | | | The [] wasn't being displayed, and try to fix formatting for bol? and << (even if they aren't linked). Fixes [Bug #17620]
* [strscan] Fix license comment and filesKenta Murata2020-12-181-2/+2
| | | | https://github.com/ruby/strscan/commit/a999f2c6d1
* [strscan] Version 3.0.0Kenta Murata2020-12-182-2/+13
| | | | https://github.com/ruby/strscan/commit/08645e4e77
* [strscan] Make strscan Ractor safe (#17)Kenta Murata2020-12-182-0/+5
| | | | | | | | * Make strscan Ractor safe * Add test-unit in the development dependencies https://github.com/ruby/strscan/commit/3c93c2bebe
* mark regex internal to string scannerAaron Patterson2020-10-021-1/+3
|
* Document that StringScanner#matched_size returns size in bytes [ci skip]Jeremy Evans2020-09-021-2/+3
| | | | Fixes [Bug #17139]
* [ruby/strscan] Bump versionSutou Kouhei2020-08-312-2/+2
| | | | https://github.com/ruby/strscan/commit/df90d541fa
* [ruby/strscan] Replaced examples using $KCODE with encodingsNobuyoshi Nakada2020-08-311-7/+5
| | | | | | `$KCODE` has been deprecated and not effective since years ago. https://github.com/ruby/strscan/commit/7c4dbd4cb3
* sed -i '/rmodule.h/d'卜部昌平2020-08-271-1/+0
|
* sed -i '/r_cast.h/d'卜部昌平2020-08-271-1/+0
|
* sed -i '\,2/extern.h,d'卜部昌平2020-08-271-1/+0
|
* Update the license for the default gems to dual licensesHiroshi SHIBATA2020-08-181-1/+1
|
* sed -i 's|ruby/impl|ruby/internal|'卜部昌平2020-05-111-141/+141
| | | | To fix build failures.
* sed -i s|ruby/3|ruby/impl|g卜部昌平2020-05-111-141/+141
| | | | This shall fix compile errors.
* Suppress -Wshorten-64-to-32 warningsNobuyoshi Nakada2020-04-081-3/+3
|
* Merge pull request #2991 from shyouhei/ruby.h卜部昌平2020-04-081-0/+153
| | | Split ruby.h
* Update dependenciesNobuyoshi Nakada2019-11-181-2/+0
|
* [ruby/strscan] Remove taint supportJeremy Evans2019-11-181-16/+8
| | | | | | Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous Ruby versions.
* Fixed overflow at onig_region_setNobuyoshi Nakada2019-10-141-3/+7
| | | | | | To get rid of a bug of `onig_region_set` which takes `int`s instead of `OnigPosition`s, set elements of `beg` and `end` members directly, for the time being.
* Import StringScanner 1.0.3 (#2553)Sutou Kouhei2019-10-143-67/+233
|
* Include ruby/assert.h in ruby/ruby.h so that assertions can be thereNobuyoshi Nakada2019-07-141-0/+1
|
* Removed needless date attribute from gemspec of default gems.hsbt2018-08-071-1/+0
| | | | | | They are assigned automatically when pushing gem file to rubygems.org. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* no ID cache in Init functionsnobu2018-02-161-0/+1
| | | | | | Init functions are called only once, cache is useless. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update version of strscan to 1.0.0.hsbt2017-12-191-4/+4
| | | | | | | | | | | | | But we couldn't ship strscan (and stringio) gem. Because rubygems.org still masked them. https://github.com/rubygems/rubygems.org/pull/1696 I'm going to ship them after it deployed. From: SHIBATA Hiroshi <hsbt@ruby-lang.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/strscan/strscan.c: [DOC] grammar fixesstomar2017-12-081-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* strscan.c: add MatchData-like methodsnobu2017-11-291-0/+89
| | | | | | | | | * ext/strscan/strscan.c: added `size`, `captures` and `values_at` to StringScanner, shorthands of accessing the matched data. based on the patch by apeiros (Stefan Rusterholz) at [ruby-core:20412]. [Feature #836] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* To use github url for gemspec.hsbt2017-09-151-1/+1
| | | | | | [Bug #13906][ruby-core:82817] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update gemspec for gem released versions.hsbt2017-09-141-1/+3
| | | | | | | * These are dbm, fcntl, io-console, sdbm, stringio, strscan, zlib, cmath, scanf. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* strscan.c: fix segfault in arefnobu2017-07-211-0/+1
| | | | | | | | * ext/strscan/strscan.c (strscan_aref): fix segfault after get_byte or getch which do not apply regexp. [ruby-core:82116] [Bug #13759] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Make string literal to frozen object on gemspec of defulte gems.hsbt2017-06-191-0/+1
| | | | | | | | | | | | Added following gemspecs. * extensions: date, dbm, etc, fiddle, gdbm, sdbm, stringio, strscan, zlib * pure ruby libraries: cmath, csv, fileutils, scanf, webrick psych and rdoc is out of scope of this commit. I will merge after upstream was change to `frozen_string_literal: true`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby tool/update-deps --fixshyouhei2017-03-221-0/+1
| | | | | | | | | | | | | | Onigumo 6 (r57045) introduced new onigumo.h header file, which is required from quite much everywhere. This commit adds necessary dependencies. Note: ruby/oniguruma.h now includes onigumo.h, ruby/io.h includes oniguruma.h, ruby/encoding.h also includes oniguruma.h, and internal.h includes encoding.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added initial gemspec for StringScanner class.hsbt2017-02-071-0/+17
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* {ext,test}/strscan: Specify frozen_string_literal: true.kazu2017-02-061-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* strscan.c: minlnobu2016-09-281-9/+11
| | | | | | * ext/strscan/strscan.c (minl): extract to reduce repeated S_LEN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* strscan.c: use S_RESTLENnobu2016-09-281-6/+6
| | | | | | | * ext/strscan/strscan.c (strscan_getch, strscan_peek), (strscan_rest_size, inspect2): use S_RESTLEN consistently. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e