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 json-parser documentation-tool mvc activejob

Last synced: about 4 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: 344
Total Committers: 53
Avg Commits per committer: 6.491
Development Distribution Score (DDS): 0.733

Commits in past year: 54
Committers in past year: 15
Avg Commits per committer in past year: 3.6
Development Distribution Score (DDS) in past year: 0.667

Name Email Commits
Sutou Kouhei k****u@c****m 92
nobu n****u@b****e 53
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
dependabot[bot] 4****] 9
naruse n****e@b****e 8
Kenta Murata m****n@m****p 7
akr a****r@b****e 7
Jean Boussier j****r@g****m 7
Olle Jonsson o****n@g****m 6
Benoit Daloze e****p@g****m 5
mame m****e@b****e 5
Burdette Lamar B****r@Y****m 4
Jeremy Evans c****e@j****t 4
OKURA Masafumi m****8@g****m 4
kosako k****o@b****e 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
Peter Zhu p****r@p****a 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
and 23 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 44
Total pull requests: 179
Average time to close issues: about 1 month
Average time to close pull requests: 11 days
Total issue authors: 27
Total pull request authors: 42
Average comments per issue: 3.93
Average comments per pull request: 2.02
Merged pull request: 151
Bot issues: 0
Bot pull requests: 9

Past year issues: 5
Past year pull requests: 37
Past year average time to close issues: 26 days
Past year average time to close pull requests: 12 days
Past year issue authors: 5
Past year pull request authors: 15
Past year average comments per issue: 3.0
Past year average comments per pull request: 1.92
Past year merged pull request: 29
Past year bot issues: 0
Past year bot pull requests: 7

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)
  • eregon (2)
  • yxhuvud (1)
  • k77ch7 (1)
  • rogerluan (1)
  • gettalong (1)
  • jasonperrone (1)
  • le0pard (1)
  • shyouhei (1)

Top Pull Request Authors

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

Top Issue Labels

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

Top Pull Request Labels

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

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.8 (published about 1 month ago)
  • Last Synced: 2026-04-30T03:00:30.366Z (about 18 hours ago)
  • Versions: 41
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 94,153,172 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.8 (published about 1 month ago)
  • Last Synced: 2026-04-28T16:03:29.520Z (2 days ago)
  • Versions: 41
  • Dependent Packages: 10
  • Dependent Repositories: 18,009
  • Downloads: 94,025,325 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.8+incompatible (published about 1 month ago)
  • Last Synced: 2026-04-28T16:03:41.215Z (2 days ago)
  • Versions: 23
  • 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.431864847484157