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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f38405ebdde7785ddfaae980ae8ea97a32b886a4778ed373c515355c83645550
4
- data.tar.gz: 620d2a7673fb0f97e55d96b4fd82b812a43fc0d1fb95e4e3cb3d004966554678
3
+ metadata.gz: fdf0146a9045790fac899c6fd9dd0a2de8d77d8ed5f6e8d652c994ae12bcd5f7
4
+ data.tar.gz: 6c5b2e4b0f7b210f74f56b0fca2a6ab1ada244110d82f2dba06fab7bd2aefef8
5
5
  SHA512:
6
- metadata.gz: d2ea74ee72bb58341219df825766095e2b0a55e57a404d070067b67647cf13aaf9296f0cf3c2933722927260091b954bb56766b89cf0868f184b56131068838c
7
- data.tar.gz: 259b2b1ec6191447ca65698a780cccc31dce106f8473e88be13a5a4776a808aec04ba0a6467da3c09c0e7470f7fa1d74cedcdd9a06a3ee96636636d88434aa25
6
+ metadata.gz: e7d1e3ed8d8eda28f56714cf79785a28d2b0733c1f16fe6e2c3d30e4a30fcd6f8f046e275776f7243f43179b281c6966211c1f32192c446a85df6e9453e1e2ee
7
+ data.tar.gz: d389fd727dde31846e9cdd0f18b0eddb2cba12ef476fdd61819a271caf1bf77afb83f96ba83c9f21c3433f9fb1adaf412a77914028aee416c94d3ac37e527072
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- uricp (0.0.35)
4
+ uricp (0.0.36)
5
5
  childprocess (~> 1.0)
6
6
  filesize (= 0.0.2)
7
7
  methadone (~> 2.0.2)
@@ -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
@@ -70,7 +70,6 @@ module Uricp::Strategy
70
70
  end
71
71
  else
72
72
  magic += io.read(2).to_s
73
- puts magic.unpack('H12')
74
73
  if xz?(magic)
75
74
  :xz
76
75
  else
@@ -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(headers) do |u|
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
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uricp
4
- VERSION = '0.0.35'
4
+ VERSION = '0.0.36'
5
5
  DEFAULT_SEGMENT_SIZE = '5 GiB'
6
6
  end
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.35
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-30 00:00:00.000000000 Z
11
+ date: 2022-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aruba