recycle 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/recycle +6 -5
- data/lib/recycle/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfe167c1e0a322d6203149c50a6a07e0a18fecec
|
4
|
+
data.tar.gz: f78bb784fade1ce617339ef4b5f0410355fdd57a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 767ca325adb7e2653adc950669097bd961b046c689b90092ae4e12c60341c989108825e18df55c127e5ad55a0e46238f9cee2772da1d5ca4992e4987918f6534
|
7
|
+
data.tar.gz: 98b6fbbebd17b32ba4be3e6592c2db129f15e9f35f73ccd19cb5ee00cd4b8bfbc1f72438ca4b507674f659a945ee24e5c6be91d50e5ef48295d129f2c6b56a07
|
data/exe/recycle
CHANGED
@@ -15,9 +15,10 @@ default_command :help
|
|
15
15
|
|
16
16
|
RECYCLE_HOME = File.join(ENV['RECYCLE_ROOT'] || Dir.home, '.recycle')
|
17
17
|
DATA_FILE = File.join(RECYCLE_HOME, 'data.yml')
|
18
|
-
RECYCLE_CONFIG = File.exists?(DATA_FILE) ? YAML.load_file(DATA_FILE) :
|
19
|
-
|
20
|
-
|
18
|
+
RECYCLE_CONFIG = File.exists?(DATA_FILE) ? YAML.load_file(DATA_FILE) : {}
|
19
|
+
|
20
|
+
RECYCLE_CONFIG['commands'] ||= {}
|
21
|
+
RECYCLE_CONFIG['directories'] ||= {}
|
21
22
|
|
22
23
|
command :init do |cmd|
|
23
24
|
cmd.syntax = 'recycle init'
|
@@ -53,8 +54,8 @@ command :list do |cmd|
|
|
53
54
|
================================================================================
|
54
55
|
|
55
56
|
recycle list - Lists out all entities
|
56
|
-
recycle list
|
57
|
-
recycle list
|
57
|
+
recycle list -d - Lists out directory entities
|
58
|
+
recycle list -c - Lists out command entities
|
58
59
|
DOC
|
59
60
|
end
|
60
61
|
puts output
|
data/lib/recycle/version.rb
CHANGED