shellwords 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.builtins.rb +4 -0
- data/.document +4 -0
- data/.rdoc_options +2 -0
- data/{LICENSE.txt → BSDL} +3 -3
- data/COPYING +56 -0
- data/README.md +4 -5
- data/lib/shellwords.rb +5 -8
- metadata +11 -13
- data/.github/CODEOWNERS +0 -1
- data/.github/dependabot.yml +0 -6
- data/.github/workflows/test.yml +0 -31
- data/.gitignore +0 -9
- data/Rakefile +0 -10
- data/shellwords.gemspec +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0753cd7454585ac9e3396f0ce90063eb24f892e450133448e4c7003ed0bd3d5a
|
4
|
+
data.tar.gz: 252b5aad6e67bc8c776ef848e567808a9dddcf66292849735b1d379e01c2de12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e548901809637b5f5b18a7f53d3b2cf748572151f668b288deaa13d59805d64a2c9737ebe1796980ef858a32e2d9065369c3d392fa3dfbcb1df00bdffc53a34c
|
7
|
+
data.tar.gz: 673b55ffce8fe25968f9f0a1f19c58b9e7b0835eb37ffec8a60766b4838851e266d22edec0dd4489aad163de1157e70c2fffcfd4834f142cfcd353e6aa691f0b
|
data/.builtins.rb
ADDED
data/.document
ADDED
data/.rdoc_options
ADDED
data/{LICENSE.txt → BSDL}
RENAMED
@@ -4,10 +4,10 @@ Redistribution and use in source and binary forms, with or without
|
|
4
4
|
modification, are permitted provided that the following conditions
|
5
5
|
are met:
|
6
6
|
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.
|
8
8
|
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.
|
11
11
|
|
12
12
|
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
13
13
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
data/COPYING
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
|
2
|
+
You can redistribute it and/or modify it under either the terms of the
|
3
|
+
2-clause BSDL (see the file BSDL), or the conditions below:
|
4
|
+
|
5
|
+
1. You may make and give away verbatim copies of the source form of the
|
6
|
+
software without restriction, provided that you duplicate all of the
|
7
|
+
original copyright notices and associated disclaimers.
|
8
|
+
|
9
|
+
2. You may modify your copy of the software in any way, provided that
|
10
|
+
you do at least ONE of the following:
|
11
|
+
|
12
|
+
a. place your modifications in the Public Domain or otherwise
|
13
|
+
make them Freely Available, such as by posting said
|
14
|
+
modifications to Usenet or an equivalent medium, or by allowing
|
15
|
+
the author to include your modifications in the software.
|
16
|
+
|
17
|
+
b. use the modified software only within your corporation or
|
18
|
+
organization.
|
19
|
+
|
20
|
+
c. give non-standard binaries non-standard names, with
|
21
|
+
instructions on where to get the original software distribution.
|
22
|
+
|
23
|
+
d. make other distribution arrangements with the author.
|
24
|
+
|
25
|
+
3. You may distribute the software in object code or binary form,
|
26
|
+
provided that you do at least ONE of the following:
|
27
|
+
|
28
|
+
a. distribute the binaries and library files of the software,
|
29
|
+
together with instructions (in the manual page or equivalent)
|
30
|
+
on where to get the original distribution.
|
31
|
+
|
32
|
+
b. accompany the distribution with the machine-readable source of
|
33
|
+
the software.
|
34
|
+
|
35
|
+
c. give non-standard binaries non-standard names, with
|
36
|
+
instructions on where to get the original software distribution.
|
37
|
+
|
38
|
+
d. make other distribution arrangements with the author.
|
39
|
+
|
40
|
+
4. You may modify and include the part of the software into any other
|
41
|
+
software (possibly commercial). But some files in the distribution
|
42
|
+
are not written by the author, so that they are not under these terms.
|
43
|
+
|
44
|
+
For the list of those files and their copying conditions, see the
|
45
|
+
file LEGAL.
|
46
|
+
|
47
|
+
5. The scripts and library files supplied as input to or produced as
|
48
|
+
output from the software do not automatically fall under the
|
49
|
+
copyright of the software, but belong to whomever generated them,
|
50
|
+
and may be sold commercially, and may be aggregated with this
|
51
|
+
software.
|
52
|
+
|
53
|
+
6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
|
54
|
+
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
55
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
56
|
+
PURPOSE.
|
data/README.md
CHANGED
@@ -3,11 +3,11 @@
|
|
3
3
|
This module manipulates strings according to the word parsing rules
|
4
4
|
of the UNIX Bourne shell.
|
5
5
|
|
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
|
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].
|
9
9
|
|
10
|
-
[
|
10
|
+
[the Shell & Utilities volume of the IEEE Std 1003.1-2008, 2016 Edition]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/contents.html
|
11
11
|
|
12
12
|
## Installation
|
13
13
|
|
@@ -43,4 +43,3 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
43
43
|
## Contributing
|
44
44
|
|
45
45
|
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/shellwords.
|
46
|
-
|
data/lib/shellwords.rb
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
# This module manipulates strings according to the word parsing rules
|
6
6
|
# of the UNIX Bourne shell.
|
7
7
|
#
|
8
|
-
# The shellwords() function was originally a port of shellwords.pl,
|
9
|
-
#
|
10
|
-
#
|
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]
|
11
11
|
#
|
12
12
|
# === Usage
|
13
13
|
#
|
@@ -62,13 +62,10 @@
|
|
62
62
|
#
|
63
63
|
# === Contact
|
64
64
|
# * 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]
|
69
65
|
|
70
66
|
module Shellwords
|
71
|
-
|
67
|
+
# The version number string.
|
68
|
+
VERSION = "0.2.1"
|
72
69
|
|
73
70
|
# Splits a string into an array of tokens in the same way the UNIX
|
74
71
|
# Bourne shell does.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shellwords
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akinori MUSHA
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Manipulates strings with word parsing rules of UNIX Bourne shell.
|
14
14
|
email:
|
@@ -17,18 +17,16 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
- ".
|
21
|
-
- ".
|
22
|
-
- ".
|
23
|
-
-
|
20
|
+
- ".builtins.rb"
|
21
|
+
- ".document"
|
22
|
+
- ".rdoc_options"
|
23
|
+
- BSDL
|
24
|
+
- COPYING
|
24
25
|
- Gemfile
|
25
|
-
- LICENSE.txt
|
26
26
|
- README.md
|
27
|
-
- Rakefile
|
28
27
|
- bin/console
|
29
28
|
- bin/setup
|
30
29
|
- lib/shellwords.rb
|
31
|
-
- shellwords.gemspec
|
32
30
|
homepage: https://github.com/ruby/shellwords
|
33
31
|
licenses:
|
34
32
|
- Ruby
|
@@ -36,7 +34,7 @@ licenses:
|
|
36
34
|
metadata:
|
37
35
|
homepage_uri: https://github.com/ruby/shellwords
|
38
36
|
source_code_uri: https://github.com/ruby/shellwords
|
39
|
-
post_install_message:
|
37
|
+
post_install_message:
|
40
38
|
rdoc_options: []
|
41
39
|
require_paths:
|
42
40
|
- lib
|
@@ -51,8 +49,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
51
49
|
- !ruby/object:Gem::Version
|
52
50
|
version: '0'
|
53
51
|
requirements: []
|
54
|
-
rubygems_version: 3.5.
|
55
|
-
signing_key:
|
52
|
+
rubygems_version: 3.5.11
|
53
|
+
signing_key:
|
56
54
|
specification_version: 4
|
57
55
|
summary: Manipulates strings with word parsing rules of UNIX Bourne shell.
|
58
56
|
test_files: []
|
data/.github/CODEOWNERS
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
* @knu
|
data/.github/dependabot.yml
DELETED
data/.github/workflows/test.yml
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
name: test
|
2
|
-
|
3
|
-
on: [push, pull_request]
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
ruby-versions:
|
7
|
-
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
|
8
|
-
with:
|
9
|
-
min_version: 2.5
|
10
|
-
|
11
|
-
test:
|
12
|
-
needs: ruby-versions
|
13
|
-
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
|
14
|
-
strategy:
|
15
|
-
matrix:
|
16
|
-
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
|
17
|
-
os: [ ubuntu-latest, macos-latest, windows-latest ]
|
18
|
-
exclude:
|
19
|
-
- { os: windows-latest, ruby: truffleruby-head }
|
20
|
-
- { os: windows-latest, ruby: truffleruby }
|
21
|
-
runs-on: ${{ matrix.os }}
|
22
|
-
steps:
|
23
|
-
- uses: actions/checkout@v4
|
24
|
-
- name: Set up Ruby
|
25
|
-
uses: ruby/setup-ruby@v1
|
26
|
-
with:
|
27
|
-
ruby-version: ${{ matrix.ruby }}
|
28
|
-
- name: Install dependencies
|
29
|
-
run: bundle install
|
30
|
-
- name: Run test
|
31
|
-
run: rake test
|
data/.gitignore
DELETED
data/Rakefile
DELETED
data/shellwords.gemspec
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
name = File.basename(__FILE__, ".gemspec")
|
2
|
-
version = ["lib", Array.new(name.count("-")+1).join("/")].find do |dir|
|
3
|
-
break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
|
4
|
-
/^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
|
5
|
-
end rescue nil
|
6
|
-
end
|
7
|
-
|
8
|
-
|
9
|
-
Gem::Specification.new do |spec|
|
10
|
-
spec.name = name
|
11
|
-
spec.version = version
|
12
|
-
spec.authors = ["Akinori MUSHA"]
|
13
|
-
spec.email = ["knu@idaemons.org"]
|
14
|
-
|
15
|
-
spec.summary = %q{Manipulates strings with word parsing rules of UNIX Bourne shell.}
|
16
|
-
spec.description = %q{Manipulates strings with word parsing rules of UNIX Bourne shell.}
|
17
|
-
spec.homepage = "https://github.com/ruby/shellwords"
|
18
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
19
|
-
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
20
|
-
|
21
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
22
|
-
spec.metadata["source_code_uri"] = spec.homepage
|
23
|
-
|
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)/}) }
|
26
|
-
end
|
27
|
-
spec.bindir = "exe"
|
28
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
|
-
spec.require_paths = ["lib"]
|
30
|
-
end
|