A summary of data about the Ruby ecosystem.

https://github.com/joker1007/proc_to_ast

convert Proc to Parser::AST::Node, using parser gem.
https://github.com/joker1007/proc_to_ast

Last synced: about 7 hours ago
JSON representation

Repository metadata

convert Proc to Parser::AST::Node, using parser gem.

README.md

proc_to_ast

Gem Version
RSpec

Add #to_ast method to Proc.

#to_ast convert Proc to Parser::AST::Node, using parser gem.

Installation

Add this line to your application's Gemfile:

gem 'proc_to_ast'

And then execute:

$ bundle

Or install it yourself as:

$ gem install proc_to_ast

Usage

require 'proc_to_ast'

foo = proc { p(1 + 1) }

foo.to_ast
# =>
# (block
#   (send nil :proc)
#   (args)
#   (send nil :p
#     (send
#       (int 1) :+
#       (int 1))))

foo.to_source
# => "proc do\n  p(1 + 1)\nend"

foo.to_source(highlight: true)
# => "proc \e[32mdo\e[0m\n  p(\e[1;34m1\e[0m + \e[1;34m1\e[0m)\n\e[32mend\e[0m"

Contributing

  1. Fork it ( https://github.com/[my-github-username]/proc_to_ast/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 7 days ago

Total Commits: 27
Total Committers: 3
Avg Commits per committer: 9.0
Development Distribution Score (DDS): 0.074

Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
joker1007 k****t@g****m 25
sue445 s****5@s****t 1
Ievgen Voloshchuk e****k@g****m 1

Committer domains:


Issue and Pull Request metadata

Last synced: about 2 months ago

Total issues: 0
Total pull requests: 4
Average time to close issues: N/A
Average time to close pull requests: about 2 years
Total issue authors: 0
Total pull request authors: 4
Average comments per issue: 0
Average comments per pull request: 1.0
Merged pull request: 3
Bot issues: 0
Bot pull requests: 0

Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0

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

Top Issue Authors

Top Pull Request Authors

  • synth (2)
  • joker1007 (2)
  • evoloshchuk (1)
  • sue445 (1)

Top Issue Labels

Top Pull Request Labels


Package metadata

gem.coop: proc_to_ast

Add #to_ast method to Proc. #to_ast converts Proc object to AST::Node.

  • Homepage: https://github.com/joker1007/proc_to_ast
  • Documentation: http://www.rubydoc.info/gems/proc_to_ast/
  • Licenses: MIT
  • Latest release: 0.2.0 (published over 1 year ago)
  • Last Synced: 2025-12-07T01:02:05.380Z (5 days ago)
  • Versions: 9
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 70,561,271 Total
  • Docker Downloads: 435,118,677
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.17%
    • Docker downloads count: 0.281%
    • Downloads: 0.399%
  • Maintainers (1)
rubygems.org: proc_to_ast

Add #to_ast method to Proc. #to_ast converts Proc object to AST::Node.

  • Homepage: https://github.com/joker1007/proc_to_ast
  • Documentation: http://www.rubydoc.info/gems/proc_to_ast/
  • Licenses: MIT
  • Latest release: 0.2.0 (published over 1 year ago)
  • Last Synced: 2025-12-05T17:03:48.157Z (6 days ago)
  • Versions: 9
  • Dependent Packages: 6
  • Dependent Repositories: 2,959
  • Downloads: 70,539,470 Total
  • Docker Downloads: 435,118,677
  • Rankings:
    • Docker downloads count: 0.347%
    • Downloads: 0.481%
    • Dependent repos count: 0.578%
    • Dependent packages count: 2.484%
    • Average: 5.784%
    • Forks count: 15.072%
    • Stargazers count: 15.74%
  • Maintainers (1)

Dependencies

proc_to_ast.gemspec rubygems
  • bundler >= 1.5 development
  • rake >= 0 development
  • rspec >= 0 development
  • coderay >= 0
  • parser >= 0
  • unparser >= 0
.github/workflows/rspec.yml actions
  • actions/checkout v2 composite
  • ruby/setup-ruby v1 composite
Gemfile rubygems

Score: 24.31806234686425