capistrano-scm-copy 0.2.0 → 0.3.0

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: 4b87a57ba0b464d2504076cef5454ba399a68fa9
4
- data.tar.gz: d368c8077c987de08ec03a1219bfdd6157fbf53b
3
+ metadata.gz: d37180687868b3c651d4bf23cdc65f1ce7c5b590
4
+ data.tar.gz: 7a22bbf1051146d8042d494ddaebc1181d00537d
5
5
  SHA512:
6
- metadata.gz: cc9ad2071e33cb4c119a9bb4f730472946205947c587c9b513ba0c3146fd1fdc6a340a295d1d57d9d865591e0c32224458c9f0d15daf0c5948004784fd30d3e6
7
- data.tar.gz: 07c063529af8cd6f6ce15caf3028bf7bb8b600b323c4a506addd0f4f2a37551f8a2603b4a11c066aad07c5d92e661a8b8ef43b07f9b62cccbe5c287113da08b3
6
+ metadata.gz: 9e6e35cc9a0becdbdeb6fcb4f1c34473b4ea229e1880ccd0d47b4173eede786bf5854a90b3dd728e5ce6295227fef3831e7ec0c6345e3b720427e3e9c8fe3826
7
+ data.tar.gz: 008e2397856b2a50e100896cf74cdaeb3395b6d9db0f5fffa2c4013c0ed089b78796b5bcf4a9b61329d70c76bf676ed51d1cf629804ed705f16ea06c7f4600d9
data/README.md CHANGED
@@ -42,6 +42,17 @@ The MIT License (MIT)
42
42
  Changelog
43
43
  =========
44
44
 
45
+ 0.3.0
46
+ -----
47
+
48
+ - Fix issue when running on Mac OS X (see PR #9)
49
+ - Allow exclude directory to be an Array (see PR #9)
50
+
51
+ 0.2.0
52
+ -----
53
+
54
+ - Add `exclude_dir`
55
+
45
56
  0.1.0
46
57
  -----
47
58
 
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "capistrano-scm-copy"
6
- s.version = "0.2.0"
6
+ s.version = "0.3.0"
7
7
  s.licenses = ["MIT"]
8
8
  s.authors = ["Benno van den Berg"]
9
9
  s.email = ["bennovandenberg@gmail.com"]
@@ -2,11 +2,14 @@ namespace :copy do
2
2
 
3
3
  archive_name = "archive.tar.gz"
4
4
  include_dir = fetch(:include_dir) || "*"
5
- exclude_dir = fetch(:exclude_dir) || ""
5
+ exclude_dir = Array(fetch(:exclude_dir))
6
+
7
+ exclude_args = exclude_dir.map { |dir| "--exclude '#{dir}'"}
6
8
 
7
9
  desc "Archive files to #{archive_name}"
8
10
  file archive_name => FileList[include_dir].exclude(archive_name) do |t|
9
- sh "tar -cvzf #{t.name} #{t.prerequisites.join(" ")}" + (exclude_dir.empty? ? "" : " --exclude #{exclude_dir}")
11
+ cmd = ["tar -cvzf #{t.name}", *exclude_args, *t.prerequisites]
12
+ sh cmd.join(' ')
10
13
  end
11
14
 
12
15
  desc "Deploy #{archive_name} to release_path"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-scm-copy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benno van den Berg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-09 00:00:00.000000000 Z
11
+ date: 2014-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano