dir-archiver 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e20f03db4bdccb404829b1a47b9c0b868b6dca4a
4
- data.tar.gz: 043a0d7b9eed2929ac99ba5f320f9d741c7dde4f
3
+ metadata.gz: 1309dd7079e7ccef190a73ea9c07497d056874c5
4
+ data.tar.gz: bf205b8d012871ee75fb91598abccaf8a2596215
5
5
  SHA512:
6
- metadata.gz: d263c5cdcf67ffb8dd4eeb5d98729f28ce44f43110acdafb156842e857a29976fc6f08ed05f17fa06c477e73bb3d54cc0eb9acd27def547767a6547163fc8dbf
7
- data.tar.gz: 02234448c622e1ed6a50a5c6fa8b74e04de9cbad73afab6abbebf11260e9214033370fea38cfe9f8414cf69afe69ffbfc52769f2a76a4de968d6179ab0eb4102
6
+ metadata.gz: 8182309eb40c154e0273065b71cb8d4ad1a5a648e0510739738f36da36e6e428c886be7033674fbb28a666190c6287b8108658a489bfd5ac37c83aee09e40568
7
+ data.tar.gz: 271dace63f9d8d91fa96b57c5fce8da2d00f4fbdcb29a88e559b6b142cf8b21665e3ea12319a11f07671a1d97bb225a82670738b5c44fac5eedd4fd4581d1883
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ### Changelogs
2
2
 
3
+ #### 0.1.5
4
+
5
+ - Use -maxdepth n -mindepth n instead of -depth n to make it work better with Linux
6
+
3
7
  #### 0.1.4
4
8
 
5
9
  - Improve the sample usage to make it more clear
@@ -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
- # Get the result from the result of `find` command
21
- result = `find '#{input_path}' -type d -depth #{depth}`
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, ".") }
@@ -1,3 +1,3 @@
1
1
  module DirArchiver
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
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
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-04-06 00:00:00.000000000 Z
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.4.5.1
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