sysdeps 0.0.1 → 0.0.2
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/bin/sysdeps +14 -10
- data/changelog +3 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5f78517e09a48df91284a9d757e074fba51edd7b9ddf02fcddbc2db6a54973c
|
4
|
+
data.tar.gz: e6450a60d29d1bcfe2f396da7619368fad53499c1001ff3a088217bd24aa7854
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88298ab34df52ad56b5f2f50cb056b24f26e86877d67569e70c613dcc3876ade5a5bfe174f1218f1cbfa2cc5a325c4bbc2062c147071da8932487a562548aea3
|
7
|
+
data.tar.gz: 826094aeb421e3a3ee5e030cdede219c23e4b046b3b3ab49ab4eecf30d3ce3a1dd9e8bfc13204dcc92883a2398657ee70824fedde42db295f46af4edc13483d3
|
data/bin/sysdeps
CHANGED
@@ -124,15 +124,19 @@ display_p_and_d_options = ->(prog_procs, deps_procs) {
|
|
124
124
|
dependencies = result[KDEPENDENCIES]
|
125
125
|
dependon = result[KDEPENDON]
|
126
126
|
|
127
|
-
dependencies
|
128
|
-
|
129
|
-
|
127
|
+
if dependencies
|
128
|
+
dependencies.each { |prog, deps|
|
129
|
+
puts "#{prog}:"
|
130
|
+
deps.each { |d| puts(("\x20" * 4) + d) }}
|
131
|
+
end
|
130
132
|
|
131
|
-
dependon
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
133
|
+
if dependon
|
134
|
+
dependon.each { |pattern, match|
|
135
|
+
puts "#{pattern}:" unless match.empty?
|
136
|
+
match.each { |lib, deps|
|
137
|
+
puts(("\x20" * 4) + "#{lib}:")
|
138
|
+
deps.each { |d| puts(("\x20" * 8) + d) }}}
|
139
|
+
end }
|
136
140
|
|
137
141
|
|
138
142
|
main = ->{
|
@@ -149,8 +153,8 @@ main = ->{
|
|
149
153
|
break unless a
|
150
154
|
|
151
155
|
opts = { '-u' => ->{ build_cache.call ; exit },
|
152
|
-
'-p' => ->{ (arg = ARGV.shift) ? prog_procs.push(arg) : (help.call ; exit 1) },
|
153
|
-
'-d' => ->{ (arg = ARGV.shift) ? deps_procs.push(arg) : (help.call ; exit 1) },
|
156
|
+
'-p' => ->{ ((arg = ARGV.shift) && !arg[/^-/]) ? prog_procs.push(arg) : (help.call ; exit 1) },
|
157
|
+
'-d' => ->{ ((arg = ARGV.shift) && !arg[/^-/]) ? deps_procs.push(arg) : (help.call ; exit 1) },
|
154
158
|
'-j' => ->{ $to_json = true },
|
155
159
|
'-h' => ->{ help.call ; exit }, }
|
156
160
|
|
data/changelog
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sysdeps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francesco Palumbo
|
@@ -18,10 +18,12 @@ extensions: []
|
|
18
18
|
extra_rdoc_files:
|
19
19
|
- README
|
20
20
|
- COPYING
|
21
|
+
- changelog
|
21
22
|
files:
|
22
23
|
- COPYING
|
23
24
|
- README
|
24
25
|
- bin/sysdeps
|
26
|
+
- changelog
|
25
27
|
- lib/sysdeps.rb
|
26
28
|
homepage: https://gitlab.com/phranz/sysdeps
|
27
29
|
licenses:
|