dir-archiver 0.1.4 → 0.1.5
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/CHANGELOG.md +4 -0
- data/lib/dir_archiver/dir_archiver.rb +3 -2
- data/lib/dir_archiver/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1309dd7079e7ccef190a73ea9c07497d056874c5
|
4
|
+
data.tar.gz: bf205b8d012871ee75fb91598abccaf8a2596215
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8182309eb40c154e0273065b71cb8d4ad1a5a648e0510739738f36da36e6e428c886be7033674fbb28a666190c6287b8108658a489bfd5ac37c83aee09e40568
|
7
|
+
data.tar.gz: 271dace63f9d8d91fa96b57c5fce8da2d00f4fbdcb29a88e559b6b142cf8b21665e3ea12319a11f07671a1d97bb225a82670738b5c44fac5eedd4fd4581d1883
|
data/CHANGELOG.md
CHANGED
@@ -17,8 +17,9 @@ module DirArchiver
|
|
17
17
|
# Create one if the output directory is not exist!
|
18
18
|
FileUtils.mkdir_p(output_path) unless File.exists?(output_path) && File.directory?(output_path)
|
19
19
|
|
20
|
-
|
21
|
-
result = `find '#{input_path}' -
|
20
|
+
## Get the result from the result of `find` command
|
21
|
+
result = `find '#{input_path}' -mindepth #{depth} -maxdepth #{depth} -type d`
|
22
|
+
|
22
23
|
return if result && result.empty?
|
23
24
|
|
24
25
|
files = result.split("\n").map { |i| i.gsub(input_path, ".") }
|
data/lib/dir_archiver/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dir-archiver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Burin Choomnuan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
223
223
|
version: '0'
|
224
224
|
requirements: []
|
225
225
|
rubyforge_project:
|
226
|
-
rubygems_version: 2.
|
226
|
+
rubygems_version: 2.5.1
|
227
227
|
signing_key:
|
228
228
|
specification_version: 4
|
229
229
|
summary: Archive multiple directories having a given depth from a given starting directory
|