uricp 0.0.35 → 0.0.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/uricp/curl_primitives.rb +2 -2
- data/lib/uricp/strategy/common.rb +0 -1
- data/lib/uricp/strategy/piped_remote_get.rb +1 -1
- data/lib/uricp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdf0146a9045790fac899c6fd9dd0a2de8d77d8ed5f6e8d652c994ae12bcd5f7
|
4
|
+
data.tar.gz: 6c5b2e4b0f7b210f74f56b0fca2a6ab1ada244110d82f2dba06fab7bd2aefef8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7d1e3ed8d8eda28f56714cf79785a28d2b0733c1f16fe6e2c3d30e4a30fcd6f8f046e275776f7243f43179b281c6966211c1f32192c446a85df6e9453e1e2ee
|
7
|
+
data.tar.gz: d389fd727dde31846e9cdd0f18b0eddb2cba12ef476fdd61819a271caf1bf77afb83f96ba83c9f21c3433f9fb1adaf412a77914028aee416c94d3ac37e527072
|
data/Gemfile.lock
CHANGED
@@ -42,7 +42,7 @@ module Uricp::CurlPrimitives
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def curl_upload_from(source, destination = to)
|
45
|
-
"#{curl_command} #{authentication} -T '#{source}' '#{destination}';"
|
45
|
+
"#{curl_command} #{authentication} -H 'Content-Type: application/octet-stream' -T '#{source}' '#{destination}';"
|
46
46
|
end
|
47
47
|
|
48
48
|
def curl_download_to_pipe
|
@@ -50,6 +50,6 @@ module Uricp::CurlPrimitives
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def curl_manifest(object_manifest, destination = to)
|
53
|
-
"#{curl_command} #{authentication} -X PUT -H 'X-Object-Manifest: #{object_manifest}' '#{destination}' --data-binary ''"
|
53
|
+
"#{curl_command} #{authentication} -X PUT -H 'Content-Type: application/octet-stream' -H 'X-Object-Manifest: #{object_manifest}' '#{destination}' --data-binary ''"
|
54
54
|
end
|
55
55
|
end
|
@@ -59,7 +59,7 @@ module Uricp::Strategy
|
|
59
59
|
|
60
60
|
size_headers = headers
|
61
61
|
size_headers['Range'] = 'bytes=0-0'
|
62
|
-
options['from_uri'].open(
|
62
|
+
options['from_uri'].open(size_headers) do |u|
|
63
63
|
match = %r{bytes\s+(\d+)-(\d+)/(\d+|\*)}i.match(u.meta['content-range'])
|
64
64
|
match && match[3].to_i
|
65
65
|
end
|
data/lib/uricp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uricp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neil Wilson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aruba
|