filbunke 1.1.12 → 1.1.13

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.12
1
+ 1.1.13
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.12"
8
+ s.version = "1.1.13"
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,7 @@ module Filbunke
25
25
  updated_files = updates["files"] || []
26
26
  failure = false
27
27
 
28
- new_checkpoint = update["checkpoint"]
28
+ new_checkpoint = updates["checkpoint"]
29
29
 
30
30
  @logger.log "Updating repository: #{repository.name}: #{updated_files.size} files. Checkpoint: #{last_checkpoint} ==> #{new_checkpoint}" if updated_files.size > 0
31
31
 
@@ -36,10 +36,17 @@ module Filbunke
36
36
  def run!
37
37
  @logger.log("Starting filbunked")
38
38
  while true
39
+ begin
40
+
39
41
  @clients.each do |client|
40
42
  new_checkpoint = client.update_files!(checkpoint_for_repository(client.repository))
41
43
  update_checkpoint_for_repository(client.repository, new_checkpoint)
42
44
  end
45
+
46
+ rescue StandardError => e
47
+ @logger.log("Died.. #{e.message}")
48
+ exit 1
49
+ end
43
50
  sleep @config["run_every"]
44
51
  end
45
52
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 12
9
- version: 1.1.12
8
+ - 13
9
+ version: 1.1.13
10
10
  platform: ruby
11
11
  authors:
12
12
  - Wouter de Bie