filbunke 2.1.4 → 2.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/VERSION +1 -1
- data/filbunke.gemspec +3 -3
- data/lib/filbunke/client.rb +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e4aea6cbf23ad09a0d6a78a6db120724ab38587
|
4
|
+
data.tar.gz: 85baf413c619432b160a8dcbb4238f4114288f74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00b73bdb73cc74633165388d742916e2157121e9309db2fb4539236ec00dc224fff5157094d5f1eadbe69aee523daee49839b1c820c7a05a9ad226b0d252abc4
|
7
|
+
data.tar.gz: 35c5cd905048d463a85cc3db6c37997f373f603b2ba444ff763342ffe2c4513a95b03d6dd3a22a1f5d84620c93bbb6615ead71d8d3056fc935392ffa22dad2de
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.6
|
data/filbunke.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
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 2.1.
|
5
|
+
# stub: filbunke 2.1.6 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "filbunke"
|
9
|
-
s.version = "2.1.
|
9
|
+
s.version = "2.1.6"
|
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"]
|
13
13
|
s.authors = ["Wouter de Bie", "Bjorn Sperber", "Karl Ravn", "Magnus Spangdal"]
|
14
|
-
s.date = "
|
14
|
+
s.date = "2019-09-24"
|
15
15
|
s.description = "Filbunke client and library"
|
16
16
|
s.email = "technical@deltaprojects.com"
|
17
17
|
s.executables = ["filbunked"]
|
data/lib/filbunke/client.rb
CHANGED
@@ -118,7 +118,7 @@ module Filbunke
|
|
118
118
|
begin
|
119
119
|
register_http = Net::HTTP.new(@repository.host, @repository.port)
|
120
120
|
register_http.start do |http|
|
121
|
-
request = Net::HTTP::Put.new(register_path)
|
121
|
+
request = Net::HTTP::Put.new(URI.escape(register_path))
|
122
122
|
response = http.request(request)
|
123
123
|
if response.code.to_i != 204
|
124
124
|
raise "Failed to register updated file: #{path}"
|
@@ -135,7 +135,7 @@ module Filbunke
|
|
135
135
|
begin
|
136
136
|
register_http = Net::HTTP.new(@repository.host, @repository.port)
|
137
137
|
register_http.start do |http|
|
138
|
-
request = Net::HTTP::Delete.new(register_path)
|
138
|
+
request = Net::HTTP::Delete.new(URI.escape(register_path))
|
139
139
|
response = http.request(request)
|
140
140
|
if response.code.to_i != 204
|
141
141
|
raise "Failed to register deleted file: #{path}"
|
@@ -151,7 +151,7 @@ module Filbunke
|
|
151
151
|
touch_http = Net::HTTP.new(@repository.host, @repository.port)
|
152
152
|
touch_http.start do |http|
|
153
153
|
touch_path = "/#{UPDATES_ACTION}/#{@repository.name}/#{TOUCH_ACTION}"
|
154
|
-
request = Net::HTTP::Put.new(touch_path)
|
154
|
+
request = Net::HTTP::Put.new(URI.escape(touch_path))
|
155
155
|
response = http.request(request)
|
156
156
|
if response.code.to_i != 204
|
157
157
|
raise "Failed to touch repository: #{@repository.name}"
|
@@ -163,7 +163,7 @@ module Filbunke
|
|
163
163
|
last_checkpoint_http = Net::HTTP.new(@repository.host, @repository.port)
|
164
164
|
last_checkpoint_http.start do |http|
|
165
165
|
last_checkpoint_path = "/#{UPDATES_ACTION}/#{@repository.name}/#{LAST_CHECKPOINT_ACTION}"
|
166
|
-
request = Net::HTTP::Get.new(last_checkpoint_path)
|
166
|
+
request = Net::HTTP::Get.new(URI.escape(last_checkpoint_path))
|
167
167
|
response = http.request(request)
|
168
168
|
if response.code.to_i != 200
|
169
169
|
raise "Failed to get last checkpoint for repository: #{@repository.name}"
|
@@ -229,7 +229,7 @@ module Filbunke
|
|
229
229
|
updates_path = "#{updates_path}&batch_size=#{@repository.batch_size}" if @repository.batch_size > 0
|
230
230
|
begin
|
231
231
|
@logger.info "Fetching updated file list from #{updates_path}"
|
232
|
-
request = Net::HTTP::Get.new(updates_path)
|
232
|
+
request = Net::HTTP::Get.new(URI.escape(updates_path))
|
233
233
|
response = http.request(request)
|
234
234
|
if response.code.to_i == 200
|
235
235
|
JSON.parse(response.body)
|
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: 2.1.
|
4
|
+
version: 2.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wouter de Bie
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2019-09-24 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: shoulda
|
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
147
|
version: '0'
|
148
148
|
requirements: []
|
149
149
|
rubyforge_project:
|
150
|
-
rubygems_version: 2.
|
150
|
+
rubygems_version: 2.6.14
|
151
151
|
signing_key:
|
152
152
|
specification_version: 4
|
153
153
|
summary: Filbunke client
|