filbunke 1.13.4 → 1.13.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/VERSION +1 -1
- data/filbunke.gemspec +2 -2
- data/lib/filbunke/client.rb +11 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZTY5MmMwZWFjM2U3YThjYzA1ZjkzMmRjNjVmNzVkZDI4Yzk0N2EzZA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NzlmYmMzN2YwYjI1ZTA5MzhkNThkNWQ0ZDk4YTZiMmQxMWZhNGY4OA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MGY2Mjg0OWM4NDk1YTRjNDMzNDhhOGJlMTA1ZGI2NjAyM2Q0MzA3MDNlMjY0
|
10
|
+
YzkzMzAxOTc2ZmUxMGZlYmRhM2VhYTg1MGI2ZDY4YzAyMmFjNTY1OWNmZDMx
|
11
|
+
ODczMzhhZjVhOWRmYWM5YTMxZTVlOTdkZTRhNmIwOWVkNjJhYzc=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YTg2Y2NmNzdjYjAxZTRlOTg2NDdlMGIxMTUyOTUwZDdlOGY1ZGRlY2U0NDM2
|
14
|
+
NTljMTc4ZGFlYjIzNWFkMDFmNzJiZmFiYTJmNTY5YzFlZWRkYzNkMmZkNjQ2
|
15
|
+
YWMzYTc0MjY3OTk2ZjkyYTQ4YzAzMDhmOGM3ZTU2OTVjNjBkM2E=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.13.
|
1
|
+
1.13.5
|
data/filbunke.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: filbunke 1.13.
|
5
|
+
# stub: filbunke 1.13.5 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "filbunke"
|
9
|
-
s.version = "1.13.
|
9
|
+
s.version = "1.13.5"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
data/lib/filbunke/client.rb
CHANGED
@@ -27,7 +27,16 @@ module Filbunke
|
|
27
27
|
updated_files = updates["files"] || []
|
28
28
|
new_checkpoint = updates["checkpoint"]
|
29
29
|
if updated_files.empty?
|
30
|
-
|
30
|
+
if updates.key?("files")
|
31
|
+
return begin
|
32
|
+
fetch_remote_last_checkpoint
|
33
|
+
rescue => e
|
34
|
+
@logger.warn "Failed to fetch remote last_checkpoint #{@repository.name} will fall back to local last_checkpoint=#{last_checkpoint}"
|
35
|
+
last_checkpoint
|
36
|
+
end
|
37
|
+
else
|
38
|
+
return last_checkpoint
|
39
|
+
end
|
31
40
|
end
|
32
41
|
|
33
42
|
@logger.info "Updating repository: #{@repository.name}: #{updated_files.size} files. Checkpoint: #{last_checkpoint} ==> #{new_checkpoint}"
|
@@ -150,7 +159,7 @@ module Filbunke
|
|
150
159
|
end
|
151
160
|
end
|
152
161
|
|
153
|
-
def
|
162
|
+
def fetch_remote_last_checkpoint
|
154
163
|
last_checkpoint_http = Net::HTTP.new(@repository.host, @repository.port)
|
155
164
|
last_checkpoint_http.start do |http|
|
156
165
|
last_checkpoint_path = "/#{UPDATES_ACTION}/#{@repository.name}/#{LAST_CHECKPOINT_ACTION}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filbunke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.13.
|
4
|
+
version: 1.13.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wouter de Bie
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
name: thoughtbot-shoulda
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|
19
19
|
requirements:
|
20
|
-
- -
|
20
|
+
- - ! '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '0'
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0'
|
30
30
|
- !ruby/object:Gem::Dependency
|
@@ -90,9 +90,9 @@ executables:
|
|
90
90
|
extensions: []
|
91
91
|
extra_rdoc_files: []
|
92
92
|
files:
|
93
|
-
-
|
94
|
-
-
|
95
|
-
-
|
93
|
+
- .gitignore
|
94
|
+
- .ruby-gemset
|
95
|
+
- .ruby-version
|
96
96
|
- Gemfile
|
97
97
|
- LICENSE
|
98
98
|
- README.rdoc
|
@@ -124,12 +124,12 @@ require_paths:
|
|
124
124
|
- lib
|
125
125
|
required_ruby_version: !ruby/object:Gem::Requirement
|
126
126
|
requirements:
|
127
|
-
- -
|
127
|
+
- - ! '>='
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: '0'
|
130
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
131
|
requirements:
|
132
|
-
- -
|
132
|
+
- - ! '>='
|
133
133
|
- !ruby/object:Gem::Version
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|