dir-archiver 0.1.2 → 0.1.3

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: f869ba3e462621682990dc68dd84b42cd1c09f3c
4
- data.tar.gz: 729cd98ee25896f9d9b800d45636be164667d13b
3
+ metadata.gz: 87c04ae7ebe44d1e845c781af0f534bcc29de206
4
+ data.tar.gz: 321a35e0c780f89535795a050e2c04a34d063496
5
5
  SHA512:
6
- metadata.gz: dcbd3944b49ccb96290fb8ef581dcf9d6efdcd10302a973aedfee78a70ea79ae990b7d506e44fb9333883d8cbf0c9ce387729ea43a776195aa4bccabff6426ea
7
- data.tar.gz: 092e251fddbaddca030ec7476e04ef3d86e3130c4cdf731ad5361e760b1fad99ce330f2c193a527fc28418d2e934589223ce57a9f95b06dfb4f5882815cb7111
6
+ metadata.gz: 0212fd67647f1dbcbc109104fb3556b1c1d858c83a164f501c5612cf257df7822b71161944f396f3ed1cce24cce1117cfc96bef77469d5ad0368732a137c99b4
7
+ data.tar.gz: feead8d6344d286ec4661262e0c2e62d119a774c6b7a2fc48245e84d94e267750521e2e81f0769cece2862e710d3ea18ed05371cb5596ad9d6b71b95a79cc10c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ### Changelogs
2
2
 
3
+ #### 0.1.3
4
+
5
+ - Make it work with the directory that contain spaces
6
+
3
7
  #### 0.1.2
4
8
 
5
9
  - Fix the link to the source in the gemspec
@@ -18,7 +18,7 @@ module DirArchiver
18
18
  FileUtils.mkdir_p(output_path) unless File.exists?(output_path) && File.directory?(output_path)
19
19
 
20
20
  # Get the result from the result of `find` command
21
- result = `find #{input_path} -type d -depth #{depth}`
21
+ result = `find '#{input_path}' -type d -depth #{depth}`
22
22
  return if result && result.empty?
23
23
 
24
24
  files = result.split("\n").map { |i| i.gsub(input_path, ".") }
@@ -36,11 +36,11 @@ module DirArchiver
36
36
  Dir.chdir(input_path)
37
37
 
38
38
  if commit
39
- puts "tar zcvf #{output_name} #{path}"
39
+ puts "tar zcvf '#{output_name}' #{path}"
40
40
  # Perform the actual compress here!
41
- `tar zcvf #{output_name} #{path} 2> /dev/null`
41
+ `tar zcvf '#{output_name}' #{path} 2> /dev/null`
42
42
  else
43
- puts "tar zcvf #{output_name} #{path} (dry-run)"
43
+ puts "tar zcvf '#{output_name}' #{path} (dry-run)"
44
44
  end
45
45
  end
46
46
  end
@@ -1,3 +1,3 @@
1
1
  module DirArchiver
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dir-archiver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burin Choomnuan