lslinks 0.3.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +20 -0
- data/lib/lslinks/option_parser.rb +1 -4
- data/lib/lslinks/version.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfce8c13edb52a5aaa617c83e96ff2dbdef4efde3706b9365e92429d56e7067d
|
4
|
+
data.tar.gz: 704f7d46de1f21a9a160eea9fba7cc376b28dc5e4ed33d4fc173d78b48ac831a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 479c0fc50676757fa099bf3f1463d296cc26a1333de51226ea6b76ea9ce562d3de2a671c53cedfbde2b936b1c0eecdd8f16d666907c513a04089fd5a3a6939b6
|
7
|
+
data.tar.gz: 0f8b758c8e8907ced8e069104a5a751623476365acff427fdd910792ca411da25428ef5e43281143cfecccea9e861a10ef54cb4b4d33fbf539a53958d79ffd9a
|
data/Dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
FROM ruby:3.2-alpine AS build
|
2
|
+
|
3
|
+
WORKDIR /opt/app
|
4
|
+
COPY . .
|
5
|
+
RUN set -eux && \
|
6
|
+
apk add --no-cache build-base git libxml2-dev && \
|
7
|
+
bundle install && \
|
8
|
+
bundle exec rake build && \
|
9
|
+
git rev-parse HEAD > pkg/COMMIT-ID
|
10
|
+
|
11
|
+
FROM ruby:3.2-alpine
|
12
|
+
RUN set -eux && \
|
13
|
+
apk add --no-cache libxml2
|
14
|
+
COPY --from=build /opt/app/pkg/* /usr/src/
|
15
|
+
RUN set -eux && \
|
16
|
+
apk add --no-cache --virtual build-dependencies build-base libxml2-dev && \
|
17
|
+
gem install /usr/src/*.gem && \
|
18
|
+
apk del --no-cache build-dependencies
|
19
|
+
|
20
|
+
ENTRYPOINT ["lslinks"]
|
@@ -20,10 +20,7 @@ class Lslinks::OptionParser < OptionParser
|
|
20
20
|
}
|
21
21
|
rest_args = parser.permute(argv, into: options)
|
22
22
|
resource_name = rest_args.shift
|
23
|
-
if !resource_name
|
24
|
-
$stderr.puts(parser.help)
|
25
|
-
exit(1)
|
26
|
-
end
|
23
|
+
resource_name = "-" if !resource_name
|
27
24
|
return options, resource_name
|
28
25
|
end
|
29
26
|
end
|
data/lib/lslinks/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lslinks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuya.Nishida.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -45,6 +45,7 @@ executables:
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
+
- Dockerfile
|
48
49
|
- LICENSE.txt
|
49
50
|
- README.md
|
50
51
|
- Rakefile
|
@@ -64,7 +65,8 @@ files:
|
|
64
65
|
- lib/lslinks/version.rb
|
65
66
|
- sig/lslinks.rbs
|
66
67
|
homepage: https://github.com/nishidayuya/lslinks
|
67
|
-
licenses:
|
68
|
+
licenses:
|
69
|
+
- X11
|
68
70
|
metadata:
|
69
71
|
homepage_uri: https://github.com/nishidayuya/lslinks
|
70
72
|
source_code_uri: https://github.com/nishidayuya/lslinks
|
@@ -83,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
85
|
- !ruby/object:Gem::Version
|
84
86
|
version: '0'
|
85
87
|
requirements: []
|
86
|
-
rubygems_version: 3.
|
88
|
+
rubygems_version: 3.5.16
|
87
89
|
signing_key:
|
88
90
|
specification_version: 4
|
89
91
|
summary: A command line tool to list links.
|