A summary of data about the Ruby ecosystem.

https://github.com/ruby/strscan

Provides lexical scanning operations on a String.
https://github.com/ruby/strscan

Keywords

ruby strscan

Keywords from Contributors

rubygems repl webrick bigdecimal activerecord debugger documentation-tool json-parser debugging-tool activejob

Last synced: about 23 hours ago
JSON representation

Repository metadata

Provides lexical scanning operations on a String.

README.md

StringScanner

CI

StringScanner provides for lexical scanning operations on a String.

Installation

Add this line to your application's Gemfile:

gem 'strscan'

And then execute:

$ bundle

Or install it yourself as:

$ gem install strscan

Usage

require 'strscan'

s = StringScanner.new('This is an example string')
s.eos?               # -> false

p s.scan(/\w+/)      # -> "This"
p s.scan(/\w+/)      # -> nil
p s.scan(/\s+/)      # -> " "
p s.scan(/\s+/)      # -> nil
p s.scan(/\w+/)      # -> "is"
s.eos?               # -> false

p s.scan(/\s+/)      # -> " "
p s.scan(/\w+/)      # -> "an"
p s.scan(/\s+/)      # -> " "
p s.scan(/\w+/)      # -> "example"
p s.scan(/\s+/)      # -> " "
p s.scan(/\w+/)      # -> "string"
s.eos?               # -> true

p s.scan(/\s+/)      # -> nil
p s.scan(/\w+/)      # -> nil

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake to compile this and run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/strscan.

License

The gem is available as open source under the terms of the 2-Clause BSD License.


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 1 day ago

Total Commits: 333
Total Committers: 53
Avg Commits per committer: 6.283
Development Distribution Score (DDS): 0.73

Commits in past year: 52
Committers in past year: 14
Avg Commits per committer in past year: 3.714
Development Distribution Score (DDS) in past year: 0.692

Name Email Commits
Sutou Kouhei k****u@c****m 90
nobu n****u@b****e 51
SHIBATA Hiroshi h****t@r****g 25
Charles Oliver Nutter h****s@h****m 22
aamine a****e@b****e 17
NAITOH Jun n****h@g****m 12
matz m****z@b****e 10
naruse n****e@b****e 8
Kenta Murata m****n@m****p 7
akr a****r@b****e 7
dependabot[bot] 4****] 7
Olle Jonsson o****n@g****m 6
Jean Boussier j****r@g****m 6
mame m****e@b****e 5
Jeremy Evans c****e@j****t 4
OKURA Masafumi m****8@g****m 4
kosako k****o@b****e 3
Benoit Daloze e****p@g****m 3
Burdette Lamar B****r@Y****m 3
Takashi Kokubun t****n@g****m 3
ko1 k****1@b****e 3
Aaron Patterson t****e@r****g 2
Andrii Konchyn a****n@g****m 2
Karol Bucek k****s 2
Kenichi Kamiya k****1@g****m 2
eban e****n@b****e 2
Étienne Barrié e****e@g****m 1
usa u****a@b****e 1
stomar s****r@b****e 1
(no author) (****)@b****e 1
and 23 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 24 days ago

Total issues: 43
Total pull requests: 170
Average time to close issues: about 1 month
Average time to close pull requests: 12 days
Total issue authors: 27
Total pull request authors: 40
Average comments per issue: 3.86
Average comments per pull request: 1.96
Merged pull request: 145
Bot issues: 0
Bot pull requests: 7

Past year issues: 11
Past year pull requests: 46
Past year average time to close issues: 8 days
Past year average time to close pull requests: 10 days
Past year issue authors: 7
Past year pull request authors: 17
Past year average comments per issue: 1.55
Past year average comments per pull request: 1.3
Past year merged pull request: 38
Past year bot issues: 0
Past year bot pull requests: 5

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/ruby/strscan

Top Issue Authors

  • headius (6)
  • andrykonchin (5)
  • naitoh (4)
  • olleolleolle (2)
  • akimd (2)
  • kou (2)
  • shreeve (2)
  • yxhuvud (1)
  • k77ch7 (1)
  • rogerluan (1)
  • gettalong (1)
  • jasonperrone (1)
  • le0pard (1)
  • shyouhei (1)
  • tenpaiyomi (1)

Top Pull Request Authors

  • naitoh (25)
  • headius (24)
  • nobu (15)
  • hsbt (11)
  • byroot (10)
  • olleolleolle (8)
  • dependabot[bot] (7)
  • okuramasafumi (6)
  • andrykonchin (4)
  • casperisfine (4)
  • BurdetteLamar (4)
  • kou (4)
  • mame (4)
  • eregon (3)
  • kachick (3)

Top Issue Labels

  • enhancement (1)
  • help wanted (1)
  • jruby (1)

Top Pull Request Labels

  • dependencies (7)
  • github_actions (5)
  • documentation (4)

Package metadata

gem.coop: strscan

Provides lexical scanning operations on a String.

  • Homepage: https://github.com/ruby/strscan
  • Documentation: http://www.rubydoc.info/gems/strscan/
  • Licenses: Ruby,BSD-2-Clause
  • Latest release: 3.1.7 (published about 2 months ago)
  • Last Synced: 2026-03-02T09:02:46.603Z (1 day ago)
  • Versions: 39
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 89,276,853 Total
  • Docker Downloads: 4,493,562,873
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Docker downloads count: 0.005%
    • Average: 0.086%
    • Downloads: 0.339%
  • Maintainers (4)
rubygems.org: strscan

Provides lexical scanning operations on a String.

  • Homepage: https://github.com/ruby/strscan
  • Documentation: http://www.rubydoc.info/gems/strscan/
  • Licenses: Ruby,BSD-2-Clause
  • Latest release: 3.1.7 (published about 2 months ago)
  • Last Synced: 2026-02-28T11:03:09.958Z (3 days ago)
  • Versions: 39
  • Dependent Packages: 10
  • Dependent Repositories: 18,009
  • Downloads: 89,198,614 Total
  • Docker Downloads: 4,493,562,873
  • Rankings:
    • Docker downloads count: 0.009%
    • Dependent repos count: 0.269%
    • Downloads: 0.85%
    • Dependent packages count: 1.753%
    • Average: 2.396%
    • Forks count: 4.86%
    • Stargazers count: 6.635%
  • Maintainers (4)
proxy.golang.org: github.com/ruby/strscan

  • Homepage:
  • Documentation: https://pkg.go.dev/github.com/ruby/strscan#section-documentation
  • Licenses: bsd-2-clause
  • Latest release: v3.1.7+incompatible (published about 2 months ago)
  • Last Synced: 2026-02-28T11:03:11.986Z (3 days ago)
  • Versions: 22
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Forks count: 4.172%
    • Stargazers count: 5.252%
    • Average: 7.45%
    • Dependent packages count: 9.576%
    • Dependent repos count: 10.802%

Dependencies

Gemfile rubygems
  • benchmark-driver >= 0 development
  • rake-compiler >= 0 development
  • ruby-maven >= 0 development
  • test-unit >= 0 development
.github/workflows/ci.yml actions
  • actions/checkout v3 composite
  • actions/upload-artifact v3 composite
  • ruby/setup-ruby v1 composite
  • softprops/action-gh-release v1 composite
strscan.gemspec rubygems

Score: 31.419877704641543