shellwords 0.1.0 → 0.2.0
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/.github/CODEOWNERS +1 -0
- data/.github/dependabot.yml +6 -0
- data/.github/workflows/test.yml +14 -7
- data/.gitignore +1 -0
- data/lib/shellwords.rb +2 -0
- data/shellwords.gemspec +10 -2
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e221d4a4dfd65b01ce8fefcff226e75c20a50e4c80a8df1c4598b312bad28799
|
|
4
|
+
data.tar.gz: 22a1c6b889c1cbc8cb18b74804c92eb5697ef85c046c03e2cd3a8037c77c8992
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f76872d1bdcc53a155dbab7cdc356ad85c570f8d67c2b82c22d148581bd5ec1072bdc7d6a22aa1f5625640bfff900d4906569a66b866854523cf82807169992c
|
|
7
|
+
data.tar.gz: 85f44a10ae9aece86aa1890588882cddbf1d54d709a6456d766c3f53511ee781c9ac0b84bc6cb784ea195e1c5ca9a56c2f6f730e4c6abf780b6585b6f222464f
|
data/.github/CODEOWNERS
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @knu
|
data/.github/workflows/test.yml
CHANGED
|
@@ -3,22 +3,29 @@ name: test
|
|
|
3
3
|
on: [push, pull_request]
|
|
4
4
|
|
|
5
5
|
jobs:
|
|
6
|
-
|
|
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
|
|
7
13
|
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
|
|
8
14
|
strategy:
|
|
9
15
|
matrix:
|
|
10
|
-
ruby:
|
|
11
|
-
os: [ ubuntu-latest, macos-latest ]
|
|
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 }
|
|
12
21
|
runs-on: ${{ matrix.os }}
|
|
13
22
|
steps:
|
|
14
|
-
- uses: actions/checkout@
|
|
23
|
+
- uses: actions/checkout@v4
|
|
15
24
|
- name: Set up Ruby
|
|
16
25
|
uses: ruby/setup-ruby@v1
|
|
17
26
|
with:
|
|
18
27
|
ruby-version: ${{ matrix.ruby }}
|
|
19
28
|
- name: Install dependencies
|
|
20
|
-
run:
|
|
21
|
-
gem install bundler --no-document
|
|
22
|
-
bundle install
|
|
29
|
+
run: bundle install
|
|
23
30
|
- name: Run test
|
|
24
31
|
run: rake test
|
data/.gitignore
CHANGED
data/lib/shellwords.rb
CHANGED
|
@@ -68,6 +68,8 @@
|
|
|
68
68
|
# 1: {IEEE Std 1003.1-2008, 2016 Edition, the Shell & Utilities volume}[http://pubs.opengroup.org/onlinepubs/9699919799/utilities/contents.html]
|
|
69
69
|
|
|
70
70
|
module Shellwords
|
|
71
|
+
VERSION = "0.2.0"
|
|
72
|
+
|
|
71
73
|
# Splits a string into an array of tokens in the same way the UNIX
|
|
72
74
|
# Bourne shell does.
|
|
73
75
|
#
|
data/shellwords.gemspec
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
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
|
+
|
|
1
9
|
Gem::Specification.new do |spec|
|
|
2
|
-
spec.name =
|
|
3
|
-
spec.version =
|
|
10
|
+
spec.name = name
|
|
11
|
+
spec.version = version
|
|
4
12
|
spec.authors = ["Akinori MUSHA"]
|
|
5
13
|
spec.email = ["knu@idaemons.org"]
|
|
6
14
|
|
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.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Akinori MUSHA
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-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,6 +17,8 @@ executables: []
|
|
|
17
17
|
extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
|
19
19
|
files:
|
|
20
|
+
- ".github/CODEOWNERS"
|
|
21
|
+
- ".github/dependabot.yml"
|
|
20
22
|
- ".github/workflows/test.yml"
|
|
21
23
|
- ".gitignore"
|
|
22
24
|
- Gemfile
|
|
@@ -49,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
49
51
|
- !ruby/object:Gem::Version
|
|
50
52
|
version: '0'
|
|
51
53
|
requirements: []
|
|
52
|
-
rubygems_version: 3.
|
|
54
|
+
rubygems_version: 3.5.0.dev
|
|
53
55
|
signing_key:
|
|
54
56
|
specification_version: 4
|
|
55
57
|
summary: Manipulates strings with word parsing rules of UNIX Bourne shell.
|