uricp 0.0.13 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +2 -1
- data/.rubocop.yml +3 -0
- data/Gemfile.lock +20 -23
- data/Jenkinsfile +113 -0
- data/README.md +2 -2
- data/Rakefile +26 -31
- data/bionic/Dockerfile +20 -0
- data/centos7/Dockerfile +18 -0
- data/features/step_definitions/orbit_steps.rb +19 -13
- data/features/step_definitions/uricp_steps.rb +8 -4
- data/focal/Dockerfile +21 -0
- data/lib/segment_upload.rb +20 -22
- data/lib/uricp.rb +3 -29
- data/lib/uricp/curl_primitives.rb +31 -33
- data/lib/uricp/orbit_auth.rb +23 -27
- data/lib/uricp/segmenter.rb +12 -16
- data/lib/uricp/strategy/cache_common.rb +11 -11
- data/lib/uricp/strategy/cached_get.rb +14 -20
- data/lib/uricp/strategy/cleaner.rb +2 -8
- data/lib/uricp/strategy/common.rb +27 -19
- data/lib/uricp/strategy/local_convert.rb +10 -17
- data/lib/uricp/strategy/local_link.rb +10 -8
- data/lib/uricp/strategy/piped_cache.rb +7 -13
- data/lib/uricp/strategy/piped_cache_convert.rb +14 -18
- data/lib/uricp/strategy/piped_compress.rb +3 -8
- data/lib/uricp/strategy/piped_decompress.rb +7 -11
- data/lib/uricp/strategy/piped_local_compress.rb +0 -4
- data/lib/uricp/strategy/piped_local_decompress.rb +10 -16
- data/lib/uricp/strategy/piped_local_get.rb +0 -5
- data/lib/uricp/strategy/piped_local_put.rb +3 -9
- data/lib/uricp/strategy/piped_rbd_get.rb +46 -0
- data/lib/uricp/strategy/piped_remote_get.rb +20 -20
- data/lib/uricp/strategy/rbd_remote_put.rb +36 -0
- data/lib/uricp/strategy/rbd_sweeper.rb +22 -0
- data/lib/uricp/strategy/remote_put.rb +11 -17
- data/lib/uricp/strategy/segmented_remote_put.rb +16 -28
- data/lib/uricp/strategy/sweeper.rb +2 -8
- data/lib/uricp/uri_strategy.rb +14 -13
- data/lib/uricp/version.rb +4 -2
- data/uricp.gemspec +3 -4
- data/xenial/Dockerfile +20 -0
- metadata +39 -51
- data/Dockerfile_centos6.6 +0 -39
- data/Dockerfile_centos7 +0 -39
- data/Dockerfile_trusty-ruby193 +0 -32
- data/README.rdoc +0 -23
- data/spec/something_spec.rb +0 -5
data/uricp.gemspec
CHANGED
@@ -19,14 +19,13 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.7"
|
22
|
-
spec.add_development_dependency('rdoc')
|
22
|
+
spec.add_development_dependency('rdoc', '~> 4.2.0')
|
23
23
|
spec.add_development_dependency('aruba', '~> 0.6.0')
|
24
24
|
spec.add_development_dependency('cucumber', '~> 1.3')
|
25
|
-
spec.add_development_dependency('rake')
|
26
|
-
spec.add_dependency('methadone', '~>
|
25
|
+
spec.add_development_dependency('rake', '~> 12.3')
|
26
|
+
spec.add_dependency('methadone', '~> 2.0.0')
|
27
27
|
spec.add_dependency('open4', '~> 1.3.0')
|
28
28
|
spec.add_dependency('filesize', '= 0.0.2')
|
29
29
|
spec.add_dependency('sendfile', '~> 1.2.0')
|
30
|
-
spec.add_development_dependency('rspec', '~> 2.99')
|
31
30
|
spec.add_development_dependency('inifile', '~> 1.1')
|
32
31
|
end
|
data/xenial/Dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
FROM ubuntu:xenial
|
2
|
+
MAINTAINER support@brightbox.co.uk
|
3
|
+
|
4
|
+
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq software-properties-common
|
5
|
+
|
6
|
+
#RUN apt-add-repository ppa:brightbox/ruby-ng
|
7
|
+
|
8
|
+
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq \
|
9
|
+
build-essential \
|
10
|
+
git \
|
11
|
+
qemu-utils \
|
12
|
+
liblz4-tool \
|
13
|
+
curl \
|
14
|
+
ruby \
|
15
|
+
ruby-dev \
|
16
|
+
python-swiftclient \
|
17
|
+
ruby-bundler
|
18
|
+
|
19
|
+
RUN echo "gem: --no-ri --no-rdoc" >> "$HOME/.gemrc"
|
20
|
+
|
metadata
CHANGED
@@ -1,111 +1,111 @@
|
|
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.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neil Wilson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.7'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rdoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 4.2.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 4.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: aruba
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.6.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.6.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: cucumber
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '1.3'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '1.3'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '12.3'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '12.3'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: methadone
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 2.0.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 2.0.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: open4
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - ~>
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: 1.3.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - ~>
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 1.3.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
@@ -126,42 +126,28 @@ dependencies:
|
|
126
126
|
name: sendfile
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - ~>
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: 1.2.0
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - ~>
|
136
|
+
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 1.2.0
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: rspec
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ~>
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '2.99'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ~>
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '2.99'
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: inifile
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
156
142
|
requirements:
|
157
|
-
- - ~>
|
143
|
+
- - "~>"
|
158
144
|
- !ruby/object:Gem::Version
|
159
145
|
version: '1.1'
|
160
146
|
type: :development
|
161
147
|
prerelease: false
|
162
148
|
version_requirements: !ruby/object:Gem::Requirement
|
163
149
|
requirements:
|
164
|
-
- - ~>
|
150
|
+
- - "~>"
|
165
151
|
- !ruby/object:Gem::Version
|
166
152
|
version: '1.1'
|
167
153
|
description: Copy one URL to another with optional cacheing
|
@@ -173,18 +159,18 @@ executables:
|
|
173
159
|
extensions: []
|
174
160
|
extra_rdoc_files: []
|
175
161
|
files:
|
176
|
-
- .gitignore
|
177
|
-
-
|
178
|
-
- Dockerfile_centos7
|
179
|
-
- Dockerfile_trusty-ruby193
|
162
|
+
- ".gitignore"
|
163
|
+
- ".rubocop.yml"
|
180
164
|
- Gemfile
|
181
165
|
- Gemfile.lock
|
166
|
+
- Jenkinsfile
|
182
167
|
- LICENSE.txt
|
183
168
|
- README.md
|
184
|
-
- README.rdoc
|
185
169
|
- Rakefile
|
186
170
|
- bin/segment_upload
|
187
171
|
- bin/uricp
|
172
|
+
- bionic/Dockerfile
|
173
|
+
- centos7/Dockerfile
|
188
174
|
- cucumber.yml
|
189
175
|
- features/auth_download.feature
|
190
176
|
- features/cacheable_from_uri.feature
|
@@ -197,6 +183,7 @@ files:
|
|
197
183
|
- features/step_definitions/uricp_steps.rb
|
198
184
|
- features/support/env.rb
|
199
185
|
- features/userid_download.feature
|
186
|
+
- focal/Dockerfile
|
200
187
|
- lib/segment_upload.rb
|
201
188
|
- lib/uricp.rb
|
202
189
|
- lib/uricp/curl_primitives.rb
|
@@ -216,14 +203,17 @@ files:
|
|
216
203
|
- lib/uricp/strategy/piped_local_decompress.rb
|
217
204
|
- lib/uricp/strategy/piped_local_get.rb
|
218
205
|
- lib/uricp/strategy/piped_local_put.rb
|
206
|
+
- lib/uricp/strategy/piped_rbd_get.rb
|
219
207
|
- lib/uricp/strategy/piped_remote_get.rb
|
208
|
+
- lib/uricp/strategy/rbd_remote_put.rb
|
209
|
+
- lib/uricp/strategy/rbd_sweeper.rb
|
220
210
|
- lib/uricp/strategy/remote_put.rb
|
221
211
|
- lib/uricp/strategy/segmented_remote_put.rb
|
222
212
|
- lib/uricp/strategy/sweeper.rb
|
223
213
|
- lib/uricp/uri_strategy.rb
|
224
214
|
- lib/uricp/version.rb
|
225
|
-
- spec/something_spec.rb
|
226
215
|
- uricp.gemspec
|
216
|
+
- xenial/Dockerfile
|
227
217
|
homepage: ''
|
228
218
|
licenses:
|
229
219
|
- gplv3
|
@@ -234,17 +224,16 @@ require_paths:
|
|
234
224
|
- lib
|
235
225
|
required_ruby_version: !ruby/object:Gem::Requirement
|
236
226
|
requirements:
|
237
|
-
- -
|
227
|
+
- - ">="
|
238
228
|
- !ruby/object:Gem::Version
|
239
229
|
version: '0'
|
240
230
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
241
231
|
requirements:
|
242
|
-
- -
|
232
|
+
- - ">="
|
243
233
|
- !ruby/object:Gem::Version
|
244
234
|
version: '0'
|
245
235
|
requirements: []
|
246
|
-
|
247
|
-
rubygems_version: 2.4.8
|
236
|
+
rubygems_version: 3.1.2
|
248
237
|
signing_key:
|
249
238
|
specification_version: 4
|
250
239
|
summary: Copy one URL to another with optional cacheing
|
@@ -260,4 +249,3 @@ test_files:
|
|
260
249
|
- features/step_definitions/uricp_steps.rb
|
261
250
|
- features/support/env.rb
|
262
251
|
- features/userid_download.feature
|
263
|
-
- spec/something_spec.rb
|
data/Dockerfile_centos6.6
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
FROM centos:6.6
|
2
|
-
MAINTAINER support@brightbox.co.uk
|
3
|
-
|
4
|
-
RUN yum update -y && yum -y install \
|
5
|
-
epel-release \
|
6
|
-
gcc \
|
7
|
-
git \
|
8
|
-
make \
|
9
|
-
qemu-img \
|
10
|
-
ruby-devel \
|
11
|
-
rubygems
|
12
|
-
|
13
|
-
RUN yum update -y && yum -y install \
|
14
|
-
python-setuptools \
|
15
|
-
python-requests \
|
16
|
-
python-devel \
|
17
|
-
python-simplejson \
|
18
|
-
python-futures \
|
19
|
-
lz4
|
20
|
-
|
21
|
-
RUN easy_install pip
|
22
|
-
RUN pip install --upgrade setuptools
|
23
|
-
RUN pip install python-swiftclient
|
24
|
-
|
25
|
-
RUN echo "gem: --no-ri --no-rdoc" >> "$HOME/.gemrc"
|
26
|
-
RUN gem install bundler
|
27
|
-
|
28
|
-
RUN mkdir /app
|
29
|
-
WORKDIR /app
|
30
|
-
|
31
|
-
COPY Gemfile /app/Gemfile
|
32
|
-
COPY Gemfile.lock /app/Gemfile.lock
|
33
|
-
COPY uricp.gemspec /app/uricp.gemspec
|
34
|
-
COPY lib/uricp/version.rb /app/lib/uricp/version.rb
|
35
|
-
RUN bundle install --deployment
|
36
|
-
|
37
|
-
COPY . /app
|
38
|
-
|
39
|
-
CMD bundle exec rake features:old_qemu
|
data/Dockerfile_centos7
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
FROM centos:7
|
2
|
-
MAINTAINER support@brightbox.co.uk
|
3
|
-
|
4
|
-
RUN yum update -y && yum -y install \
|
5
|
-
epel-release \
|
6
|
-
gcc \
|
7
|
-
make \
|
8
|
-
git \
|
9
|
-
qemu-img \
|
10
|
-
ruby-devel \
|
11
|
-
rubygems \
|
12
|
-
|
13
|
-
RUN yum update -y && yum -y install \
|
14
|
-
python-setuptools \
|
15
|
-
python-requests \
|
16
|
-
python-devel \
|
17
|
-
python-simplejson \
|
18
|
-
python-futures \
|
19
|
-
lz4
|
20
|
-
|
21
|
-
RUN easy_install pip
|
22
|
-
RUN pip install --upgrade setuptools
|
23
|
-
RUN pip install python-swiftclient
|
24
|
-
|
25
|
-
RUN echo "gem: --no-ri --no-rdoc" >> "$HOME/.gemrc"
|
26
|
-
RUN gem install bundler
|
27
|
-
|
28
|
-
RUN mkdir /app
|
29
|
-
WORKDIR /app
|
30
|
-
|
31
|
-
COPY Gemfile /app/Gemfile
|
32
|
-
COPY Gemfile.lock /app/Gemfile.lock
|
33
|
-
COPY uricp.gemspec /app/uricp.gemspec
|
34
|
-
COPY lib/uricp/version.rb /app/lib/uricp/version.rb
|
35
|
-
RUN bundle install --deployment
|
36
|
-
|
37
|
-
COPY . /app
|
38
|
-
|
39
|
-
CMD bundle exec rake features:new_qemu
|
data/Dockerfile_trusty-ruby193
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
FROM ubuntu:trusty
|
2
|
-
MAINTAINER support@brightbox.co.uk
|
3
|
-
|
4
|
-
RUN apt-get update && apt-get install -y -qq software-properties-common
|
5
|
-
|
6
|
-
RUN apt-add-repository ppa:brightbox/ruby-ng
|
7
|
-
|
8
|
-
RUN apt-get update && apt-get install -y -qq \
|
9
|
-
build-essential \
|
10
|
-
git \
|
11
|
-
qemu-utils \
|
12
|
-
liblz4-tool \
|
13
|
-
curl \
|
14
|
-
ruby1.9.3 \
|
15
|
-
ruby-dev \
|
16
|
-
python-swiftclient
|
17
|
-
|
18
|
-
RUN echo "gem: --no-ri --no-rdoc" >> "$HOME/.gemrc"
|
19
|
-
RUN gem install bundler
|
20
|
-
|
21
|
-
RUN mkdir /app
|
22
|
-
WORKDIR /app
|
23
|
-
|
24
|
-
COPY Gemfile /app/Gemfile
|
25
|
-
COPY Gemfile.lock /app/Gemfile.lock
|
26
|
-
COPY uricp.gemspec /app/uricp.gemspec
|
27
|
-
COPY lib/uricp/version.rb /app/lib/uricp/version.rb
|
28
|
-
RUN bundle install --deployment
|
29
|
-
|
30
|
-
COPY . /app
|
31
|
-
|
32
|
-
CMD bundle exec rake features:new_qemu
|
data/README.rdoc
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
= uricp - DESCRIBE YOUR GEM
|
2
|
-
|
3
|
-
Author:: YOUR NAME (YOUR EMAIL)
|
4
|
-
Copyright:: Copyright (c) 2014 YOUR NAME
|
5
|
-
|
6
|
-
|
7
|
-
License:: gplv3, see LICENSE.txt
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
DESCRIBE YOUR GEM HERE
|
12
|
-
|
13
|
-
== Links
|
14
|
-
|
15
|
-
* {Source on Github}[LINK TO GITHUB]
|
16
|
-
* RDoc[LINK TO RDOC.INFO]
|
17
|
-
|
18
|
-
== Install
|
19
|
-
|
20
|
-
== Examples
|
21
|
-
|
22
|
-
== Contributing
|
23
|
-
|