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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72b04371df2e152286b300ce8a1d4a0caae9e17366d6128e010f42609e309001
4
- data.tar.gz: cd9c7ea7b87414f768065b67b19ec1f96bb1aa887b07fa9c6522fee1c1622fe0
3
+ metadata.gz: bfce8c13edb52a5aaa617c83e96ff2dbdef4efde3706b9365e92429d56e7067d
4
+ data.tar.gz: 704f7d46de1f21a9a160eea9fba7cc376b28dc5e4ed33d4fc173d78b48ac831a
5
5
  SHA512:
6
- metadata.gz: f9acce0ebd0999cb187556c2787d13a2ecb45bf6b5056fe2197ad9cab9b06886b15f0993ac1538d1cd6071816b87033e12703039b029a5e93942bc69c733d543
7
- data.tar.gz: 31b73cacd96f6498577ccaf2b98cd9d8b587c2d8f7c50cf6547676294ff84db2855c628a40214b78178e4b119eeef844221c371d7b38befab61856a92c175b42
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
@@ -1,3 +1,3 @@
1
1
  module Lslinks
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.1"
3
3
  end
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.3.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: 2023-11-23 00:00:00.000000000 Z
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.4.10
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.