Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/shellwords.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
# 1: {IEEE Std 1003.1-2008, 2016 Edition, the Shell & Utilities volume}[http://pubs.opengroup.org/onlinepubs/9699919799/utilities/contents.html]

module Shellwords

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Omit this blank line and start with a non-blank one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed this comment. I applied it at b45de51

VERSION = "0.1.0"

# Splits a string into an array of tokens in the same way the UNIX
# Bourne shell does.
#
Expand Down
12 changes: 10 additions & 2 deletions shellwords.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name = File.basename(__FILE__, ".gemspec")
version = ["lib", Array.new(name.count("-")+1).join("/")].find do |dir|
break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
/^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
end rescue nil
end


Gem::Specification.new do |spec|
spec.name = "shellwords"
spec.version = "0.1.0"
spec.name = name
spec.version = version
spec.authors = ["Akinori MUSHA"]
spec.email = ["knu@idaemons.org"]

Expand Down