Quote-aware whitespace string splitting like `Shellwords.split` but doesn't blow up with unbalanced quotes.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
spec
.gitignore
.rspec
.travis.yml
Gemfile
README.md
Rakefile
quotesplit.gemspec

README.md

Quotesplit

Build Status

Quote-aware whitespace string splitting like Shellwords.split but doesn't raise ArgumentError: Unmatched double quote.

require 'quotesplit'

Quotesplit.split("It's a Wonderful Life")
# => ["It's", "a", "Wonderful", "Life"]
require 'shellwords'

Shellwords.split("It's a Wonderful Life")
# ArgumentError: Unmatched double quote: "It's a Wonderful Life"