octopress-deploy 1.2.0 → 1.2.1

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: aaf29f35bfa57acc33ee25af7d0f5c9b5adcadb2
4
- data.tar.gz: f085e982084365aeef29b3ca26276f4d440478bb
3
+ metadata.gz: 9ff0f9e0959198ae73ff8b5de4129ded2bd17f35
4
+ data.tar.gz: 4c93019f735109467267faa368d09abff0dce862
5
5
  SHA512:
6
- metadata.gz: 491ff56f994ec6f573776df8474162158ea1dc27b801e1296c2be0cb89780854b2eb4a644baa0995c3f28078f148db3c9dfe4ac7bcbd9eba01ca6441e1f4ed71
7
- data.tar.gz: ff49d3b5e4469e5d4c1937cc7cc4309309ef857f1d7505fa158477e023591bdab921dc82683c653c3a79afc43b540042d0930e4c4dde424288ca3614cb1ef4c1
6
+ metadata.gz: 61a6e8bcd5edb808d9f9c182f1f52c298b49d9df6272abc5b8f333cc41d665375b8722a258518e30e7387b327229f1fc9ab5cc4c38716bcd913f118eabde8b40
7
+ data.tar.gz: bd42c36239eef26e3f11a95066d2e0c6c17aaf3016d46fef7cf91755556109d42de99fd2ad1ec5c51efa07838d0ce26bba9f6bd8268595395c6d9655c494f085
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.2.1 - 2015-04-25
4
+
5
+ - Fix: Rsync exclude and include options now work properly with multiple items.
6
+
3
7
  ### 1.2.0 - 2015-03-07
4
8
 
5
9
  - Added Support for Cloudfront invalidation [#49](https://github.com/octopress/deploy/pull/49)
@@ -13,8 +13,8 @@ module Octopress
13
13
  @exclude_from = @options[:exclude_from]
14
14
  @exclude_from = File.expand_path(@exclude_from) if @exclude_from
15
15
  @include = @options[:include]
16
- @exclude_from = @options[:include_from]
17
- @exclude_from = File.expand_path(@include_from) if @include_from
16
+ @include_from = @options[:include_from]
17
+ @include_from = File.expand_path(@include_from) if @include_from
18
18
  @delete = @options[:delete] || false
19
19
  @pull_dir = @options[:dir]
20
20
  end
@@ -35,11 +35,14 @@ module Octopress
35
35
 
36
36
  cmd = "rsync "
37
37
  cmd << "#{@flags} "
38
- cmd << " -e" if @exclude_from || @exclude
39
38
  cmd << " --exclude-from #{@exclude_from}" if @exclude_from
40
- cmd << " --exclude #{@exclude}" if @exclude
39
+ Array(@exclude).each do |e|
40
+ cmd << " --exclude #{e}"
41
+ end
41
42
  cmd << " --include-from #{@include_from}" if @include_from
42
- cmd << " --include #{@include}" if @include
43
+ Array(@include).each do |i|
44
+ cmd << " --include #{i}"
45
+ end
43
46
  cmd << " --rsh='ssh -p#{@port}'" if @user && @port
44
47
  cmd << " --delete " if @delete
45
48
 
@@ -68,7 +71,7 @@ module Octopress
68
71
  #{"# include-from: ".ljust(40)} # Path to file containing list of files to include
69
72
  CONFIG
70
73
  end
71
-
74
+
72
75
  end
73
76
  end
74
77
  end
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Deploy
3
- VERSION = "1.2.0"
3
+ VERSION = "1.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-08 00:00:00.000000000 Z
11
+ date: 2015-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorator