upm 0.1.10 → 0.1.11

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/VERSION +1 -1
  3. data/lib/upm/tool_dsl.rb +5 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f8e2c0aca1eba8bc509f6f89582039a586d77e943ffced223e343860dfd378b
4
- data.tar.gz: 5934a3b056109aceaa4f48e7d9403af2b9187fc4d64654596e4d99c97f1ce14a
3
+ metadata.gz: 7e29ff72e67c8c3d41fc81f20ea1bcd602750f5ab997e2bc96d8bf241e13c93e
4
+ data.tar.gz: ea27773719646de552edada4c42557f61b56768811bf5e9e2e723a459fea1eaf
5
5
  SHA512:
6
- metadata.gz: e660590380098da3bb5faf99a8d57f7e87aaa8d310a4d9526f743a7b76a40071fd3ba83bd06b6de4bcd002bbf5ea3630cea0e12df7e1ebe3b15e964e9aaf575f
7
- data.tar.gz: 48986e26050f65d7665092cf48458cf88ef179edc5bf09550d52c8a92026acfdb16e973e5d99c2264c7b75e00f6a2b7e31922bcaacbaa1fcbadfa61a42873732
6
+ metadata.gz: a9415ca2e35cc161f196b0e4ba44e27bb71181962893a4273fc04fadbedb5f12298f60cd738efcb38eb08218e0897d45aa54fc8aadb03103bacbfb37bc4b8a47
7
+ data.tar.gz: 1c4df75f46acb38709627f71dcf874b158f93b694ad5040740c6470de1750b3a4e74fc051a58adfcc21c397183f8b0e89cebf2cb19b180df0141269a4fb7c630
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.10
1
+ 0.1.11
data/lib/upm/tool_dsl.rb CHANGED
@@ -33,10 +33,14 @@ module UPM
33
33
  end
34
34
 
35
35
  @cmds[name] = proc do |args|
36
- query = highlight && args.join(" ")
36
+ query = highlight ? args.join(" ") : nil
37
37
  run(*shell_command, *args, paged: paged, root: root, highlight: query)
38
38
  end
39
39
 
40
+ else
41
+
42
+ raise "Error: Must supply a block or shell command"
43
+
40
44
  end
41
45
  end
42
46
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - epitron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-24 00:00:00.000000000 Z
11
+ date: 2018-05-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Wrap all known command-line package tools with a consistent and pretty
14
14
  interface.