filbunke 1.11.8 → 1.11.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/filbunke.gemspec +3 -3
- data/lib/filbunke/client.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTE5NTY2YzFkNmI4MmEyNTNkNGQxMmFkNGMyZjk5MTk1YjFhN2JlOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDQzZTY0ZWE4MjM0ZDhjM2ZlNjgwYjk2OTc3NDcxNDdlNTZlYTZmMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NmUwNDEyZWUzYjdkZmQ4OWU4NGRkZWEzZTcyY2ZiZjZiOTA0ODJkZjZjZWZm
|
10
|
+
MjBmN2Q3ZDA4YjNiYjZhMTg0YWZlZTAwNjQ5OTJmZTA1NzhkOTA2NmJlYjgx
|
11
|
+
MDkwYzZjMjZmMDZmZWYwOGMxNDc2YThmNTMxZjE2OGUyMTdiOTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTIyYzc4Yzg5YmE1MWFiMjliZTdkNDVkYjViMmM4NjQzNDgxNjdlMWYxNjJk
|
14
|
+
NjYzMDBhMTJmNTA3ZWE3NmQzYTBlOWQ0ZjQ5MjVjM2RiNjBlN2Y4YzUyNzIx
|
15
|
+
MTUyMzk5NzIxYTcwYzYxMDQ5YWVjZGRiMzZlODJhNTcyNDA0MGI=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.11.
|
1
|
+
1.11.9
|
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 1.11.
|
5
|
+
# stub: filbunke 1.11.9 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "filbunke"
|
9
|
-
s.version = "1.11.
|
9
|
+
s.version = "1.11.9"
|
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 = "2015-
|
14
|
+
s.date = "2015-11-05"
|
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
@@ -10,6 +10,7 @@ module Filbunke
|
|
10
10
|
URL_KEY = 'url'
|
11
11
|
FROM_CHECKPOINT_KEY = 'from_checkpoint'
|
12
12
|
HASH_KEY = 'hash'
|
13
|
+
URI_UNSAFE_CHARACTERS = '/[^.:\/\w-]/'
|
13
14
|
|
14
15
|
|
15
16
|
def initialize(repository, logger, callbacks = [], failed_request_log_file_name = nil)
|
@@ -223,15 +224,15 @@ module Filbunke
|
|
223
224
|
rescue StandardError => e
|
224
225
|
@logger.error "Unable to create HTTP connection to #{@repository.host}:#{@repository.port} (#{e.message})!"
|
225
226
|
return {}
|
226
|
-
end
|
227
|
+
end
|
227
228
|
end
|
228
229
|
|
229
230
|
def update_http_file!(file, local_file_path)
|
230
231
|
begin
|
231
232
|
async_request = if @repository.user
|
232
|
-
Typhoeus::Request.new(URI.encode(file.url), :follow_location => true, :username => @repository.user, :password => @repository.pass)
|
233
|
+
Typhoeus::Request.new(URI.encode(file.url, URI_UNSAFE_CHARACTERS), :follow_location => true, :username => @repository.user, :password => @repository.pass)
|
233
234
|
else
|
234
|
-
Typhoeus::Request.new(URI.encode(file.url), :follow_location => true)
|
235
|
+
Typhoeus::Request.new(URI.encode(file.url, URI_UNSAFE_CHARACTERS), :follow_location => true)
|
235
236
|
end
|
236
237
|
async_request.on_complete do |response|
|
237
238
|
success = false
|
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.11.
|
4
|
+
version: 1.11.9
|
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: 2015-
|
14
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: thoughtbot-shoulda
|