where_to 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/bin/whereto +9 -3
- data/lib/where_to/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDNiOTM2NjQyODFkODhhZGFiYzk1ZjkwM2E4YmU5MGYzNjBhNzE3YQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTdmM2RkODNhZWI0ZmU5NGU3YWU0YWNiOWRmZGQ4YmJlN2EzZjY5OA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjRlMDQ1YWZjMjUwY2Q2MjMzYzllOGI1NDRlMmY1MGViNmUxNjUxMDMyMGVl
|
10
|
+
YjIyZjM5MzhjNmU4MzgxZTRhNzViYjI4ZTdmY2QwNzcxZTZmMzFhZTU1Yjdi
|
11
|
+
MTMyMWUxN2Q2NDk3MjgzM2QzMjI5OTFkNGM4NjI3NDM2MTk0MGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjM5ZWQwYzBmM2ZlNjk1YWJlNDQ1MzY1MzNkMmY1MmNjZjI5NDFjMDNlNWNl
|
14
|
+
MzhmMjg3MmViYzA4NDFmODBlYjY3OTRlYzk3YTI5YTFhYWU5MDc3MjFlZmZl
|
15
|
+
NGI2NWVhYjg4MzkzYTY2M2JlNmEzMWRlMTUzYTEyY2NjOTU1NGU=
|
data/bin/whereto
CHANGED
@@ -65,9 +65,15 @@ command :organize do |cmd|
|
|
65
65
|
|
66
66
|
@options = options
|
67
67
|
|
68
|
-
|
69
|
-
|
70
|
-
|
68
|
+
files = if File.directory?(location)
|
69
|
+
Dir.chdir location
|
70
|
+
files = Dir.glob "*#{options[:ext]}"
|
71
|
+
raise WhereTo::NoFilesError.new(options[:ext], location) if files.none?
|
72
|
+
files
|
73
|
+
else
|
74
|
+
Array(location)
|
75
|
+
end
|
76
|
+
|
71
77
|
puts "I found the following files:"
|
72
78
|
puts files
|
73
79
|
puts ""
|
data/lib/where_to/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: where_to
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Toniazzo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|