command-genie 0.3.1 → 0.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 887abe84b73683ded814fa9fdcc69da78a2565b8
4
- data.tar.gz: 64fe9e554016bd5725986cfdf842da7e5f96b322
3
+ metadata.gz: b8c942e11d27275d1a4617cbec71122935c16e05
4
+ data.tar.gz: b368480b48216443ecbcca52264f9bbac123e75e
5
5
  SHA512:
6
- metadata.gz: 1b3bccc48d6f7003547e6bbaed06943b1c3bfddec2d53c5a4e132c4b4ca99e3d2e657fc54414f618db6aaa9263394c8cf443e6afe9ed7cbd3ff2b9a7ecbca385
7
- data.tar.gz: 513a2bf152d5cac7b33cb80df9927e636b2b306e902167f8c6ac2b6579a64d6634e906c55fe9c751ed6477740dbd37117aa686df52b4e5192c55bddd34713b01
6
+ metadata.gz: a560a56963b60b11a12b2a9aa66495975bf0859e44e74f61bd85f32ea79508587faf87ed166b3e693136db036baa35c85959faf3440bebfe699f0f0280631e2f
7
+ data.tar.gz: c0cb350b51a1d983a6f359cffbf0f73c7c4a4880137a85f7727d7236d3e52dd971e5e716479b27a5354b2be6a6f233e2b8df9b7db6642dd4c142d5d5e42dcd73
@@ -1,13 +1,17 @@
1
1
  genie Changelog
2
2
  ===
3
3
 
4
- v0.3.0
4
+ v0.3.2, v0.3.1, v0.3.0
5
5
  ---
6
+ * Add CHANGELOG
7
+ * Update help to mention `<command> edit`
8
+ * Tweak help text. Also reduce redundancy
6
9
  * Match softlinks correctly
7
10
  * Add license badge and fix gem version badge link
8
11
  * Add gem version badge to README
9
12
  * Improve instructions when only `genie` is typed
10
13
  * Add author name
14
+ * Ignore invalid directories, continue processing
11
15
 
12
16
  v0.2.1, v0.2.0
13
17
  ---
data/bin/genie CHANGED
@@ -159,7 +159,15 @@ or for help:
159
159
  end
160
160
 
161
161
  def dir_matching(dirs, dir)
162
- found = dirs.find {|e| e == dir || File.realpath(File.expand_path(e)) == dir }
162
+ found = dirs.find do |e|
163
+ matched = begin
164
+ File.realpath(File.expand_path(e)) == dir
165
+ rescue Errno::ENOENT => err
166
+ say_error "Path does not exist: #{File.expand_path(e)}"
167
+ false
168
+ end
169
+ e == dir || matched
170
+ end
163
171
  if found
164
172
  found
165
173
  else
@@ -1,3 +1,3 @@
1
1
  module CommandGenie
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: command-genie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
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-04-06 00:00:00.000000000 Z
11
+ date: 2016-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander