filbunke 1.1.11 → 1.1.12

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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.11
1
+ 1.1.12
data/filbunke.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{filbunke}
8
- s.version = "1.1.11"
8
+ s.version = "1.1.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Wouter de Bie"]
@@ -25,7 +25,9 @@ module Filbunke
25
25
  updated_files = updates["files"] || []
26
26
  failure = false
27
27
 
28
- @logger.log "Updating #{updated_files.size} files for #{repository.name}" if updated_files.size > 0
28
+ new_checkpoint = update["checkpoint"]
29
+
30
+ @logger.log "Updating repository: #{repository.name}: #{updated_files.size} files. Checkpoint: #{last_checkpoint} ==> #{new_checkpoint}" if updated_files.size > 0
29
31
 
30
32
  updated_files.each do |raw_file|
31
33
  file = File.new(raw_file)
@@ -47,7 +49,7 @@ module Filbunke
47
49
  end
48
50
  end
49
51
  end
50
- failure ? last_checkpoint : (updates["checkpoint"] || last_checkpoint)
52
+ failure ? last_checkpoint : (new_checkpoint || last_checkpoint)
51
53
  end
52
54
 
53
55
  def update_files!(last_checkpoint)
@@ -37,7 +37,6 @@ module Filbunke
37
37
  @logger.log("Starting filbunked")
38
38
  while true
39
39
  @clients.each do |client|
40
- @logger.log("Updating repository: #{client.repository.name}")
41
40
  new_checkpoint = client.update_files!(checkpoint_for_repository(client.repository))
42
41
  update_checkpoint_for_repository(client.repository, new_checkpoint)
43
42
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 11
9
- version: 1.1.11
8
+ - 12
9
+ version: 1.1.12
10
10
  platform: ruby
11
11
  authors:
12
12
  - Wouter de Bie