filbunke 2.0.8 → 2.0.9

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.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OGM0Y2M5NDc0YTE1MzAxMmIxNjNjYmJkM2EwODA4YzY5MTQ4NDFhYQ==
5
- data.tar.gz: !binary |-
6
- YjE3YzkxMzczZGIwOGFjMjFkZTYwYzc3YTUxNzk1ZTEyMGU4ZDZiMg==
2
+ SHA1:
3
+ metadata.gz: c42ae52d1bc54da6a935b95b029a6bf1797d6d34
4
+ data.tar.gz: 1435482387aa797f0a0780aa65d79a3ecacd17a3
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZTFmYzcyY2ZmNmZmOWQ3ZTFhNDEyYjJhZmU0YzZlOWI2Mzk1NTg2MGM5NGE1
10
- OWNhODgxYTIwNTBjYTMxMWI2NGU3ZmFmOTNkNjE3MTg5ZmZmOWEyM2U5NGZi
11
- NzI4ODQ3ZjU0ZDY1NWQ2MmM5MjI4MDVhNTI0ZjlmODc1MGU4NGQ=
12
- data.tar.gz: !binary |-
13
- ZDNiZTAwMjA3NzU1MDQ1ODE4Y2VjYmYzMTQyYzUxMDk0NDE1OTU3Yzk4ODEx
14
- ZjY1YTFiMGNmYjgxZGVlZGU5ZGJkOWZhYzExOTUwNTdkNWRkMzVjNDU4M2Q5
15
- ZjQ3ZWFkNjRjMzE3NjdjMGI5ZTZhN2RmNjU0NjJlZWZjOGFmZGE=
6
+ metadata.gz: 4b268216e4e4db244c77d734f935507061631f4ac568ce6e9009e991837af4dd25fd9dd1bd205895c438c9380005b10b1c7c9aa6694e49ad63bbe3b15743762f
7
+ data.tar.gz: fbae049f4a7e51a0635348d1923fa6b0bb7b46bd672f982317614fdd51c8e96f882922cb28eebca12300c8b036d4dd78f7458cb5491b426a80430241abbf9f9b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.8
1
+ 2.0.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 2.0.8 ruby lib
5
+ # stub: filbunke 2.0.9 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "filbunke"
9
- s.version = "2.0.8"
9
+ s.version = "2.0.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-10-09"
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"]
@@ -42,7 +42,7 @@ Gem::Specification.new do |s|
42
42
  "test/test_filbunke.rb"
43
43
  ]
44
44
  s.homepage = "https://rubygems.org/gems/filbunke"
45
- s.rubygems_version = "2.4.8"
45
+ s.rubygems_version = "2.5.0"
46
46
  s.summary = "Filbunke client"
47
47
 
48
48
  if s.respond_to? :specification_version then
@@ -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)
@@ -221,15 +222,15 @@ module Filbunke
221
222
  rescue StandardError => e
222
223
  @logger.error "Unable to create HTTP connection to #{@repository.host}:#{@repository.port} (#{e.message})!"
223
224
  return {}
224
- end
225
+ end
225
226
  end
226
227
 
227
228
  def update_http_file!(file, local_file_path)
228
229
  begin
229
230
  async_request = if @repository.user
230
- Typhoeus::Request.new(URI.encode(file.url), :followlocation => true, :username => @repository.user, :password => @repository.pass)
231
+ Typhoeus::Request.new(URI.encode(file.url, URI_UNSAFE_CHARACTERS), :followlocation => true, :username => @repository.user, :password => @repository.pass)
231
232
  else
232
- Typhoeus::Request.new(URI.encode(file.url), :followlocation => true)
233
+ Typhoeus::Request.new(URI.encode(file.url, URI_UNSAFE_CHARACTERS), :followlocation => true)
233
234
  end
234
235
  async_request.on_complete do |response|
235
236
  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: 2.0.8
4
+ version: 2.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wouter de Bie
@@ -11,20 +11,20 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-10-09 00:00:00.000000000 Z
14
+ date: 2015-11-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
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
@@ -104,9 +104,9 @@ executables:
104
104
  extensions: []
105
105
  extra_rdoc_files: []
106
106
  files:
107
- - .gitignore
108
- - .ruby-gemset
109
- - .ruby-version
107
+ - ".gitignore"
108
+ - ".ruby-gemset"
109
+ - ".ruby-version"
110
110
  - Gemfile
111
111
  - LICENSE
112
112
  - README.rdoc
@@ -137,17 +137,17 @@ require_paths:
137
137
  - lib
138
138
  required_ruby_version: !ruby/object:Gem::Requirement
139
139
  requirements:
140
- - - ! '>='
140
+ - - ">="
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
143
  required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - ! '>='
145
+ - - ">="
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  requirements: []
149
149
  rubyforge_project:
150
- rubygems_version: 2.4.8
150
+ rubygems_version: 2.5.0
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: Filbunke client