desktop-boom 0.0.1 → 0.1.0
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/boom +13 -2
- data/lib/boom/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37d7612174f483b10ab7e6daae61a2e670d88994
|
4
|
+
data.tar.gz: 64edf7e95895b2bad708e077ef811fb69e5aa03d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 862199945e542d6c6df102d8a023e2b0ec0f1de0eaca1c40ad7cda05f963e3f5ef61dd9270d2a69dc7f5db80095dadf6536372d54b78c2bc928eb0179b3daf4d
|
7
|
+
data.tar.gz: 87a36e6d4fa17a598049c67c1a9001dbe0c402f96ea99d5a0c6b3261568cff92790a3825396c9ee854d7b81c2c0477e21a96325e2211872fe895b35d9989a414
|
data/bin/boom
CHANGED
@@ -91,6 +91,7 @@ command :list do |c|
|
|
91
91
|
c.summary = 'Show list of projects'
|
92
92
|
c.description = c.summary
|
93
93
|
c.example 'Run command', "$ #{APP_NAME} list"
|
94
|
+
c.option '-l', 'List in long format'
|
94
95
|
c.action do |args, options|
|
95
96
|
create_configuration_file unless File.file? config_path
|
96
97
|
File.open(config_path) do |f|
|
@@ -100,9 +101,19 @@ command :list do |c|
|
|
100
101
|
current_project = mapping['current_project']
|
101
102
|
projects.each do |e|
|
102
103
|
if e == current_project
|
103
|
-
|
104
|
+
if options.l
|
105
|
+
entries = Dir.entries(File.expand_path(DESKTOP_DIR)).reject {|e| e == '.' || e == '..' || e.start_with?('.')}
|
106
|
+
say "#{e} (#{entries.size}) <="
|
107
|
+
else
|
108
|
+
say "#{e} <="
|
109
|
+
end
|
104
110
|
else
|
105
|
-
|
111
|
+
if options.l
|
112
|
+
entries = Dir.entries(File.expand_path(e, projects_directory)).reject {|e| e == '.' || e == '..' || e.start_with?('.')}
|
113
|
+
say "#{e} (#{entries.size})"
|
114
|
+
else
|
115
|
+
say e
|
116
|
+
end
|
106
117
|
end
|
107
118
|
end
|
108
119
|
end
|
data/lib/boom/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: desktop-boom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hwee-Boon Yar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|