sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Rouge::TextAnalyzer#shebang?
Check if the given shebang is present.
This normalizes things so that `text.shebang?('bash')` will detect
`#!/bash`, '#!/bin/bash', '#!/usr/bin/env bash', and '#!/bin/bash -x'Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/rouge/lib/rouge/text_analyzer.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Rouge--TextAnalyzer-shebang--for-pr
# Commit to gitgit add app/server/ruby/vendor/rouge/lib/rouge/text_analyzer.rbgit commit -m "better docs for Rouge::TextAnalyzer#shebang?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Rouge--TextAnalyzer-shebang--for-pr
hub pull-request
# Celebrate!