whiskey_disk 0.6.20 → 0.6.21

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.
data/CHANGELOG CHANGED
@@ -1,4 +1,13 @@
1
1
 
2
+ 0.6.21 / 2011-04-06
3
+ ==================
4
+
5
+ * change rsync changes capturing mechanism to be more portable
6
+ * upgrade integration spec to test rsync/#changed?/config repo
7
+ * helpers spec now tests root path rsync changes
8
+ * deploy.yml to test rsync changes w/ config repo
9
+ * integration spec project and config changes to stored git repos
10
+
2
11
  0.6.20 / 2011-04-06
3
12
  ==================
4
13
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.20
1
+ 0.6.21
data/lib/whiskey_disk.rb CHANGED
@@ -300,9 +300,9 @@ class WhiskeyDisk
300
300
  needs(:deploy_to, :deploy_config_to)
301
301
  raise "Must specify project name when using a configuration repository." unless project_name_specified?
302
302
  enqueue "echo Rsyncing configuration..."
303
- enqueue("rsync -a#{'v --progress' if Config.debug?} " +
304
- "--log-file=#{self[:deploy_to]}/.whiskey_disk_rsync_changes " +
305
- "#{self[:deploy_config_to]}/#{self[:project]}/#{self[:config_target]}/ #{self[:deploy_to]}/")
303
+ enqueue("rsync -a#{'v --progress' if Config.debug?} " + '--log-format="%t [%p] %i %n" ' +
304
+ "#{self[:deploy_config_to]}/#{self[:project]}/#{self[:config_target]}/ #{self[:deploy_to]}/ " +
305
+ "> #{self[:deploy_to]}/.whiskey_disk_rsync_changes")
306
306
  end
307
307
 
308
308
  def run_post_setup_hooks
@@ -21,7 +21,9 @@ end
21
21
 
22
22
  def rsync_changes
23
23
  changes = read_rsync_changes_file.split("\n")
24
- changes.map {|c| c.sub(/^[^ ]* [^ ]* [^ ]* [^ ]* /, '') }.grep(%r{/}).map {|s| s.sub(%r{/$}, '') } - ['.']
24
+ changes.map {|c| c.sub(/^[^ ]* [^ ]* [^ ]* /, '') }.
25
+ grep(/^[^ ]{9} /).map {|c| c.sub(/^[^ ]{9} /, '') }.
26
+ map {|s| s.sub(%r{/$}, '') } - ['.']
25
27
  rescue Exception
26
28
  nil
27
29
  end
@@ -197,6 +197,7 @@ describe "when finding files changed by rsync in a deployment" do
197
197
  2011/02/27 20:12:09 [36808] sent 24 bytes received 9 bytes total size 0
198
198
  2011/02/27 20:12:19 [36835] receiving file list
199
199
  2011/02/27 20:12:19 [36835] .d..t.... ./
200
+ 2011/02/27 20:12:19 [36835] >f+++++++ Info.plist
200
201
  2011/02/27 20:12:19 [36835] cd+++++++ Application Support/
201
202
  2011/02/27 20:12:19 [36835] cd+++++++ Application Support/Google/
202
203
  2011/02/27 20:12:19 [36835] cd+++++++ Application Support/Google/GoogleTalkPlugin.app/
@@ -247,6 +248,7 @@ describe "when finding files changed by rsync in a deployment" do
247
248
  '
248
249
 
249
250
  @changes = [
251
+ "Info.plist",
250
252
  "Application Support",
251
253
  "Application Support/Google",
252
254
  "Application Support/Google/GoogleTalkPlugin.app",
@@ -470,7 +470,7 @@ describe 'WhiskeyDisk' do
470
470
 
471
471
  it 'should capture rsync change data' do
472
472
  WhiskeyDisk.refresh_configuration
473
- WhiskeyDisk.buffer.last.should.match(%r{rsync.* --log-file=/path/to/main/repo/.whiskey_disk_rsync_changes })
473
+ WhiskeyDisk.buffer.last.should.match(%r{rsync.* --log-format="%t \[%p\] %i %n".*> /path/to/main/repo/.whiskey_disk_rsync_changes})
474
474
  end
475
475
  end
476
476
 
data/whiskey_disk.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{whiskey_disk}
8
- s.version = "0.6.20"
8
+ s.version = "0.6.21"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Rick Bradley"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whiskey_disk
3
3
  version: !ruby/object:Gem::Version
4
- hash: 47
4
+ hash: 45
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 20
10
- version: 0.6.20
9
+ - 21
10
+ version: 0.6.21
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rick Bradley