recycle 0.1.1 → 0.1.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/exe/recycle +6 -5
  3. data/lib/recycle/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7251c3a6f18d45a2474d8c9b0ece9a1fa31a51d
4
- data.tar.gz: 7b9a37e64aff7153cfe19376edd50d831d05478a
3
+ metadata.gz: dfe167c1e0a322d6203149c50a6a07e0a18fecec
4
+ data.tar.gz: f78bb784fade1ce617339ef4b5f0410355fdd57a
5
5
  SHA512:
6
- metadata.gz: 95089f7f33b4326563ff21e13dd157a5e61c3eaa01ece7e29f3e3c6ae28e062b29948fe045c933571efb5cf5b6dda3dcb6add12a16b2b23126c08e4e4e558338
7
- data.tar.gz: 29d6824548a3f06e919e6c2626bbc5cff90de858d6e5912028e214614e478510545b5e45a78f51debd5dd9a050bca71d38dfea8963da333f855471f730662131
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) : Hash.new do |hash, key|
19
- hash[key] = {}
20
- end
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 dir - Lists out directory entities
57
- recycle list cmd - Lists out command entities
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
@@ -1,3 +1,3 @@
1
1
  module Recycle
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recycle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy W. Rowe