Skip to content

Commit d1a2605

Browse files
authored
Merge pull request #12 from ruby/doc
Documents clean-ups
2 parents a2cddea + 53e6ef2 commit d1a2605

File tree

7 files changed

+24
-17
lines changed

7 files changed

+24
-17
lines changed

.builtins.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# :stopdoc:
2+
class Array end
3+
class String end
4+
# :startdoc:

.document

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
LICENSE.txt
2+
README.md
3+
.builtins.rb
4+
lib/

.rdoc_options

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
main_page: README.md

LICENSE.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Redistribution and use in source and binary forms, with or without
44
modification, are permitted provided that the following conditions
55
are met:
66
1. Redistributions of source code must retain the above copyright
7-
notice, this list of conditions and the following disclaimer.
7+
notice, this list of conditions and the following disclaimer.
88
2. Redistributions in binary form must reproduce the above copyright
9-
notice, this list of conditions and the following disclaimer in the
10-
documentation and/or other materials provided with the distribution.
9+
notice, this list of conditions and the following disclaimer in the
10+
documentation and/or other materials provided with the distribution.
1111

1212
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1313
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
This module manipulates strings according to the word parsing rules
44
of the UNIX Bourne shell.
55

6-
The shellwords() function was originally a port of shellwords.pl,
7-
but modified to conform to the Shell & Utilities volume of the IEEE
8-
Std 1003.1-2008, 2016 Edition [1].
6+
The `shellwords()` function was originally a port of shellwords.pl,
7+
but modified to conform to [the Shell & Utilities volume of the IEEE
8+
Std 1003.1-2008, 2016 Edition].
99

10-
[1] [IEEE Std 1003.1-2008, 2016 Edition, the Shell & Utilities volume](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/contents.html)
10+
[the Shell & Utilities volume of the IEEE Std 1003.1-2008, 2016 Edition]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/contents.html
1111

1212
## Installation
1313

@@ -43,4 +43,3 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
4343
## Contributing
4444

4545
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/shellwords.
46-

lib/shellwords.rb

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
# This module manipulates strings according to the word parsing rules
66
# of the UNIX Bourne shell.
77
#
8-
# The shellwords() function was originally a port of shellwords.pl,
9-
# but modified to conform to the Shell & Utilities volume of the IEEE
10-
# Std 1003.1-2008, 2016 Edition [1].
8+
# The <tt>shellwords()</tt> function was originally a port of shellwords.pl, but
9+
# modified to conform to {the Shell & Utilities volume of the IEEE Std 1003.1-2008, 2016
10+
# Edition}[http://pubs.opengroup.org/onlinepubs/9699919799/utilities/contents.html]
1111
#
1212
# === Usage
1313
#
@@ -62,12 +62,9 @@
6262
#
6363
# === Contact
6464
# * Akinori MUSHA <knu@iDaemons.org> (current maintainer)
65-
#
66-
# === Resources
67-
#
68-
# 1: {IEEE Std 1003.1-2008, 2016 Edition, the Shell & Utilities volume}[http://pubs.opengroup.org/onlinepubs/9699919799/utilities/contents.html]
6965

7066
module Shellwords
67+
# The version number string.
7168
VERSION = "0.2.0"
7269

7370
# Splits a string into an array of tokens in the same way the UNIX

shellwords.gemspec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ Gem::Specification.new do |spec|
2121
spec.metadata["homepage_uri"] = spec.homepage
2222
spec.metadata["source_code_uri"] = spec.homepage
2323

24-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
25-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
24+
srcdir, gemspec_file = File.split(__FILE__)
25+
spec.files = Dir.chdir(srcdir) do
26+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:(?:test|spec|features)/|\.git|Rake)}) || f == gemspec_file}
2627
end
2728
spec.bindir = "exe"
2829
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }

0 commit comments

Comments
 (0)