sysdeps 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/sysdeps +14 -10
  3. data/changelog +3 -0
  4. metadata +3 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b049bc12869573168bae746e7dc2d32ef34208fa0345dbd22ff57db43d20123f
4
- data.tar.gz: a23f152be8710b210b2690beb713c7899747bbff45133fd2ac015b675df0ae95
3
+ metadata.gz: d5f78517e09a48df91284a9d757e074fba51edd7b9ddf02fcddbc2db6a54973c
4
+ data.tar.gz: e6450a60d29d1bcfe2f396da7619368fad53499c1001ff3a088217bd24aa7854
5
5
  SHA512:
6
- metadata.gz: 3d462d0039710534402652461f0cbfa54d39e7d1fcd5713af1a09dbdc273bec260ff467ce8e893eccffa2397e0a4109e5aac7cf62aeb76fb3ba7f32ad6a566f3
7
- data.tar.gz: a32ee64a4bf7803bebde727d817265b79912630a1e4731ec9acb522cd6bde0d84626dca7dbc76f8e820e33d8d86e700d15c561d948e61421d3e664b3c339da28
6
+ metadata.gz: 88298ab34df52ad56b5f2f50cb056b24f26e86877d67569e70c613dcc3876ade5a5bfe174f1218f1cbfa2cc5a325c4bbc2062c147071da8932487a562548aea3
7
+ data.tar.gz: 826094aeb421e3a3ee5e030cdede219c23e4b046b3b3ab49ab4eecf30d3ce3a1dd9e8bfc13204dcc92883a2398657ee70824fedde42db295f46af4edc13483d3
@@ -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.each { |prog, deps|
128
- puts "#{prog}:"
129
- deps.each { |d| puts(("\x20" * 4) + d) }} unless dependencies.first.last.empty? rescue nil
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.each { |pattern, match|
132
- puts "#{pattern}:"
133
- match.each { |lib, deps|
134
- puts(("\x20" * 4) + "#{lib}:")
135
- deps.each { |d| puts(("\x20" * 8) + d) }}} unless dependon.first.last.empty? rescue nil }
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
 
@@ -0,0 +1,3 @@
1
+ 0.0.2:
2
+ - fixed -p and -d argument passing
3
+ - fixed -p and -d printing
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.1
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: