plview 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/plview +9 -5
  3. data/lib/plview/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 981ba8c007476823108d5ba135113b173b25b277
4
- data.tar.gz: bcfa7e4d29a4d65163c7bc3b7c570278f9a5aae9
3
+ metadata.gz: 0d13e184a3cc4300ac8dc6eebe1010d103f2d944
4
+ data.tar.gz: e9c8c0824962c761dd84d0ca65bd50955801effc
5
5
  SHA512:
6
- metadata.gz: 520ac14dbdb96d4431b8808d9665ddf173c3a7349b180189b49f59eb10582800ca10101fa51bc056dd1f2bab61c0fa145b4a0cc463d2fb79af388e9de68eab45
7
- data.tar.gz: a44cec29f87f76a853d5f864a0a7563b1c5e0ab5a581a8b1da62b6533cda10f6400673d9a5da49df3652954b25a6a1c08f1f4d42cff319ce88ebf06b8edf97f6
6
+ metadata.gz: fdfabff450eac9fdb1e2f95e5a41d7a4710b45e0b63e60aa17696b0bb9fe16d6295bcd9db19afb924c07ab444b6c19b3e33df2e327b1a29493e63d820cc6060e
7
+ data.tar.gz: f0a4be073bfbe7d4bc6b246a00370cecb121679a0d1cf38dc3a81bc1150c1f86947d8387f2b8687c4e97fd57b7b467952813c1dff0cb035bb273793dcd6c5a5e
data/bin/plview CHANGED
@@ -66,15 +66,19 @@ if opts.plists?
66
66
  exit
67
67
  end
68
68
 
69
- if opts.path?
70
- puts apps[app]
71
- exit
72
- end
73
-
74
69
  if plists.has_key?(opts[:p])
75
70
  plist = plists[opts[:p]]
71
+ if opts.path?
72
+ puts plist.filename
73
+ exit
74
+ end
76
75
  else
77
76
  plist = plists.values.first
78
77
  end
79
78
 
79
+ if opts.path?
80
+ puts apps[app]
81
+ exit
82
+ end
83
+
80
84
  puts plist.value.to_hash.to_json
@@ -1,3 +1,3 @@
1
1
  module Plview
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plview
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
  - Yusuke Mito