pushmi_pullyu 2.1.3 → 2.1.5
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 +4 -4
- data/.github/workflows/ruby.yml +2 -2
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +41 -0
- data/Dangerfile +1 -1
- data/Gemfile +5 -5
- data/Gemfile.lock +54 -62
- data/README.md +2 -2
- data/lib/pushmi_pullyu/aip/creator.rb +3 -1
- data/lib/pushmi_pullyu/swift_depositer.rb +6 -2
- data/lib/pushmi_pullyu/version.rb +1 -1
- data/pushmi_pullyu.gemspec +12 -12
- metadata +16 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fff847bc47f698439c42d989ad6fb369fef3f8b8e47a3bc3982b620ef91b63c
|
4
|
+
data.tar.gz: 90eef0e4f01ef2da858ce99bb79b5389572bf30697b1e72b3dbc85879aa0a2a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eac34b1e93b4ab42330904913b1f692cbbc5fde8f224d4c61cd22e8a8155b82ecc728cce6190aa589dda00933a62da0e00379ad7b8f35baf77c2eb2125f490f
|
7
|
+
data.tar.gz: 5129579a8878242638f64308a087a9007e9ce72c2fc652da404cbd6cd34c9a28e818bc363f8d2d40cd9a5aa5fb58aa36dd4eb085f22f780edc0d04eea67a0f8b
|
data/.github/workflows/ruby.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -4,6 +4,9 @@
|
|
4
4
|
# https://github.com/bbatsov/rubocop/blob/master/config/enabled.yml
|
5
5
|
require: rubocop-rspec
|
6
6
|
|
7
|
+
inherit_from:
|
8
|
+
- https://raw.githubusercontent.com/ualbertalib/library_applications_development_inclusive_language/main/inclusive_language_rubocop.yml
|
9
|
+
|
7
10
|
AllCops:
|
8
11
|
DisplayCopNames: true
|
9
12
|
DisplayStyleGuide: true
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,47 @@ PushmiPullyu is a Ruby application, whose primary job is to manage the flow of c
|
|
6
6
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
7
7
|
and releases in PushmiPullyu adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
8
8
|
|
9
|
+
## [Unreleased]
|
10
|
+
|
11
|
+
## [2.1.5] 2024-11-27
|
12
|
+
|
13
|
+
### Fixed
|
14
|
+
- Permit versions of activesupport that work with Ruby 2.7 by @pgwillia in https://github.com/ualbertalib/pushmi_pullyu/pull/492
|
15
|
+
|
16
|
+
### Chores
|
17
|
+
- Bump rexml from 3.3.8 to 3.3.9 by @dependabot in https://github.com/ualbertalib/pushmi_pullyu/pull/489
|
18
|
+
- Bump activesupport from 7.1.4 to 7.1.4.2 by @dependabot in https://github.com/ualbertalib/pushmi_pullyu/pull/487
|
19
|
+
- Bump danger from 9.5.0 to 9.5.1 by @dependabot in https://github.com/ualbertalib/pushmi_pullyu/pull/486
|
20
|
+
|
21
|
+
## [2.1.4]
|
22
|
+
|
23
|
+
### Added
|
24
|
+
- Bring in and enforce inclusive language cops [PR#469](https://github.com/ualbertalib/pushmi_pullyu/pull/469)
|
25
|
+
|
26
|
+
### Fixed
|
27
|
+
- Use `File.open` with a block for simple exception handling and ensuring files are closed [#475](https://github.com/ualbertalib/pushmi_pullyu/issues/475)
|
28
|
+
- Fix problem with authentication token expiration by @lagoan in https://github.com/ualbertalib/pushmi_pullyu/pull/457
|
29
|
+
|
30
|
+
### Changed
|
31
|
+
- Bump bundler from 2.3.12 to 2.4.9 [PR#483](https://github.com/ualbertalib/pushmi_pullyu/pull/483)
|
32
|
+
|
33
|
+
### Chores
|
34
|
+
- Use add_dependency instead of add_runtime_dependency. [PR#473](https://github.com/ualbertalib/pushmi_pullyu/pull/473)
|
35
|
+
- Bump rexml from 3.2.8 to 3.3.2 by @dependabot in https://github.com/ualbertalib/pushmi_pullyu/pull/462
|
36
|
+
- Bump timecop from 0.9.8 to 0.9.10 by @dependabot in https://github.com/ualbertalib/pushmi_pullyu/pull/450
|
37
|
+
- Bump redis from 5.0.8 to 5.3.0 by @dependabot in https://github.com/ualbertalib/pushmi_pullyu/pull/468
|
38
|
+
- Update CI for branch name changes by @pgwillia in https://github.com/ualbertalib/pushmi_pullyu/pull/480
|
39
|
+
- Bump danger from 9.3.2 to 9.5.0 by @dependabot in https://github.com/ualbertalib/pushmi_pullyu/pull/466
|
40
|
+
- Bump bagit from 0.4.6 to 0.6.0 by @dependabot in https://github.com/ualbertalib/pushmi_pullyu/pull/482
|
41
|
+
- Update minitar requirement from ~> 0.7 to >= 0.7, < 2.0 by @dependabot in https://github.com/ualbertalib/pushmi_pullyu/pull/481
|
42
|
+
- Bump rubocop-rspec from 2.24.1 to 3.1.0 by @dependabot in https://github.com/ualbertalib/pushmi_pullyu/pull/478
|
43
|
+
- Bump rdf from 3.2.11 to 3.2.12 by @dependabot in https://github.com/ualbertalib/pushmi_pullyu/pull/479
|
44
|
+
- Bump webmock from 3.19.1 to 3.24.0 by @dependabot in https://github.com/ualbertalib/pushmi_pullyu/pull/477
|
45
|
+
- Bump rubocop from 1.64.0 to 1.66.1 by @dependabot in https://github.com/ualbertalib/pushmi_pullyu/pull/473
|
46
|
+
- Bump rollbar from 3.4.1 to 3.6.0 by @dependabot in https://github.com/ualbertalib/pushmi_pullyu/pull/472
|
47
|
+
- Bump activesupport from 7.1.1 to 7.1.4 by @dependabot in https://github.com/ualbertalib/pushmi_pullyu/pull/470
|
48
|
+
- Bump rake from 13.0.6 to 13.2.1 by @dependabot in https://github.com/ualbertalib/pushmi_pullyu/pull/426
|
49
|
+
|
9
50
|
## [2.1.3]
|
10
51
|
- Refresh authentication token after it expires [#311](https://github.com/ualbertalib/pushmi_pullyu/issues/311)
|
11
52
|
|
data/Dangerfile
CHANGED
@@ -18,7 +18,7 @@ declared_trivial = (github.pr_title + github.pr_body).include?('#trivial') || !h
|
|
18
18
|
|
19
19
|
if !git.modified_files.include?('CHANGELOG.md') && !declared_trivial
|
20
20
|
error_message = "Please include a CHANGELOG entry. \nYou can find it at " \
|
21
|
-
'[CHANGELOG.md](https://github.com/ualbertalib/pushmi_pullyu/blob/
|
21
|
+
'[CHANGELOG.md](https://github.com/ualbertalib/pushmi_pullyu/blob/main/CHANGELOG.md).'
|
22
22
|
fail(error_message, sticky: false)
|
23
23
|
end
|
24
24
|
|
data/Gemfile
CHANGED
@@ -5,14 +5,14 @@ gemspec
|
|
5
5
|
|
6
6
|
group :development, :test do
|
7
7
|
gem 'bundler', '~> 2.0'
|
8
|
-
gem 'danger', '~> 9.
|
8
|
+
gem 'danger', '~> 9.5'
|
9
9
|
gem 'pry', '~> 0.10', '>= 0.10.4'
|
10
10
|
gem 'pry-byebug', '~> 3.6'
|
11
|
-
gem 'rake', '~> 13.
|
11
|
+
gem 'rake', '~> 13.2'
|
12
12
|
gem 'rspec', '~> 3.13'
|
13
|
-
gem 'rubocop', '~> 1.
|
14
|
-
gem 'rubocop-rspec', '~>
|
13
|
+
gem 'rubocop', '~> 1.66'
|
14
|
+
gem 'rubocop-rspec', '~> 3.1'
|
15
15
|
gem 'timecop', '~> 0.9'
|
16
16
|
gem 'vcr', '~> 5.0'
|
17
|
-
gem 'webmock', '~> 3.
|
17
|
+
gem 'webmock', '~> 3.24'
|
18
18
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pushmi_pullyu (2.1.
|
5
|
-
activesupport (>= 5, <
|
4
|
+
pushmi_pullyu (2.1.5)
|
5
|
+
activesupport (>= 5, < 7.2)
|
6
6
|
bagit (~> 0.4)
|
7
7
|
connection_pool (~> 2.2)
|
8
8
|
daemons (~> 1.2, >= 1.2.4)
|
9
|
-
minitar (
|
9
|
+
minitar (>= 0.7, < 1.0)
|
10
10
|
openstack (~> 3.3, >= 3.3.10)
|
11
|
-
rdf (>= 1.99, <
|
12
|
-
rdf-n3 (>= 1.99, <
|
11
|
+
rdf (>= 1.99, < 3.3)
|
12
|
+
rdf-n3 (>= 1.99, < 3.3)
|
13
13
|
redis (>= 3.3, < 6.0)
|
14
14
|
rest-client (>= 1.8, < 3.0)
|
15
15
|
rollbar (>= 2.18, < 4.0)
|
@@ -18,7 +18,7 @@ PATH
|
|
18
18
|
GEM
|
19
19
|
remote: https://rubygems.org/
|
20
20
|
specs:
|
21
|
-
activesupport (7.1.
|
21
|
+
activesupport (7.1.4.2)
|
22
22
|
base64
|
23
23
|
bigdecimal
|
24
24
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
@@ -28,14 +28,14 @@ GEM
|
|
28
28
|
minitest (>= 5.1)
|
29
29
|
mutex_m
|
30
30
|
tzinfo (~> 2.0)
|
31
|
-
addressable (2.8.
|
32
|
-
public_suffix (>= 2.0.2, <
|
31
|
+
addressable (2.8.7)
|
32
|
+
public_suffix (>= 2.0.2, < 7.0)
|
33
33
|
ast (2.4.2)
|
34
|
-
bagit (0.
|
34
|
+
bagit (0.6.0)
|
35
35
|
docopt (~> 0.5.0)
|
36
36
|
validatable (~> 1.6)
|
37
37
|
base64 (0.2.0)
|
38
|
-
bigdecimal (3.1.
|
38
|
+
bigdecimal (3.1.8)
|
39
39
|
builder (3.2.4)
|
40
40
|
byebug (11.1.3)
|
41
41
|
claide (1.1.0)
|
@@ -45,14 +45,16 @@ GEM
|
|
45
45
|
open4 (~> 1.3)
|
46
46
|
coderay (1.1.3)
|
47
47
|
colored2 (3.1.2)
|
48
|
-
concurrent-ruby (1.
|
48
|
+
concurrent-ruby (1.3.4)
|
49
49
|
connection_pool (2.4.1)
|
50
50
|
cork (0.3.0)
|
51
51
|
colored2 (~> 3.1)
|
52
|
-
crack (0.
|
52
|
+
crack (1.0.0)
|
53
|
+
bigdecimal
|
53
54
|
rexml
|
54
55
|
daemons (1.4.1)
|
55
|
-
danger (9.
|
56
|
+
danger (9.5.1)
|
57
|
+
base64 (~> 0.2)
|
56
58
|
claide (~> 1.0)
|
57
59
|
claide-plugins (>= 0.9.2)
|
58
60
|
colored2 (~> 3.1)
|
@@ -62,37 +64,36 @@ GEM
|
|
62
64
|
git (~> 1.13)
|
63
65
|
kramdown (~> 2.3)
|
64
66
|
kramdown-parser-gfm (~> 1.0)
|
65
|
-
|
66
|
-
|
67
|
+
octokit (>= 4.0)
|
68
|
+
pstore (~> 0.1)
|
67
69
|
terminal-table (>= 1, < 4)
|
68
70
|
diff-lcs (1.5.1)
|
69
71
|
docopt (0.5.0)
|
70
72
|
domain_name (0.5.20190701)
|
71
73
|
unf (>= 0.0.5, < 1.0.0)
|
72
|
-
drb (2.
|
73
|
-
ruby2_keywords
|
74
|
+
drb (2.2.1)
|
74
75
|
ebnf (2.3.5)
|
75
76
|
htmlentities (~> 4.3)
|
76
77
|
rdf (~> 3.2)
|
77
78
|
scanf (~> 1.0)
|
78
79
|
sxp (~> 1.2)
|
79
80
|
unicode-types (~> 1.8)
|
80
|
-
faraday (2.
|
81
|
+
faraday (2.8.1)
|
81
82
|
base64
|
82
83
|
faraday-net_http (>= 2.0, < 3.1)
|
83
84
|
ruby2_keywords (>= 0.0.4)
|
84
|
-
faraday-http-cache (2.5.
|
85
|
+
faraday-http-cache (2.5.1)
|
85
86
|
faraday (>= 0.8)
|
86
87
|
faraday-net_http (3.0.2)
|
87
|
-
git (1.
|
88
|
+
git (1.19.1)
|
88
89
|
addressable (~> 2.8)
|
89
90
|
rchardet (~> 1.8)
|
90
|
-
hashdiff (1.
|
91
|
+
hashdiff (1.1.1)
|
91
92
|
htmlentities (4.3.4)
|
92
93
|
http-accept (1.7.0)
|
93
94
|
http-cookie (1.0.5)
|
94
95
|
domain_name (~> 0.5)
|
95
|
-
i18n (1.14.
|
96
|
+
i18n (1.14.6)
|
96
97
|
concurrent-ruby (~> 1.0)
|
97
98
|
json (2.7.2)
|
98
99
|
kramdown (2.4.0)
|
@@ -109,22 +110,21 @@ GEM
|
|
109
110
|
mime-types (3.5.1)
|
110
111
|
mime-types-data (~> 3.2015)
|
111
112
|
mime-types-data (3.2023.1003)
|
112
|
-
minitar (0.
|
113
|
-
minitest (5.
|
114
|
-
mutex_m (0.
|
113
|
+
minitar (0.12.1)
|
114
|
+
minitest (5.25.1)
|
115
|
+
mutex_m (0.2.0)
|
115
116
|
nap (1.1.0)
|
116
117
|
net-http-persistent (4.0.2)
|
117
118
|
connection_pool (~> 2.2)
|
118
119
|
netrc (0.11.0)
|
119
|
-
|
120
|
-
octokit (6.1.1)
|
120
|
+
octokit (9.2.0)
|
121
121
|
faraday (>= 1, < 3)
|
122
122
|
sawyer (~> 0.9)
|
123
123
|
open4 (1.3.4)
|
124
124
|
openstack (3.3.21)
|
125
125
|
json
|
126
|
-
parallel (1.
|
127
|
-
parser (3.3.
|
126
|
+
parallel (1.26.3)
|
127
|
+
parser (3.3.5.0)
|
128
128
|
ast (~> 2.4.1)
|
129
129
|
racc
|
130
130
|
pry (0.14.2)
|
@@ -133,12 +133,13 @@ GEM
|
|
133
133
|
pry-byebug (3.10.1)
|
134
134
|
byebug (~> 11.0)
|
135
135
|
pry (>= 0.13, < 0.15)
|
136
|
-
|
137
|
-
|
136
|
+
pstore (0.1.3)
|
137
|
+
public_suffix (5.1.1)
|
138
|
+
racc (1.8.1)
|
138
139
|
rainbow (3.1.1)
|
139
|
-
rake (13.
|
140
|
+
rake (13.2.1)
|
140
141
|
rchardet (1.8.0)
|
141
|
-
rdf (3.2.
|
142
|
+
rdf (3.2.12)
|
142
143
|
link_header (~> 0.0, >= 0.0.8)
|
143
144
|
rdf-aggregate-repo (3.2.1)
|
144
145
|
rdf (~> 3.2)
|
@@ -150,9 +151,9 @@ GEM
|
|
150
151
|
rdf-xsd (3.2.1)
|
151
152
|
rdf (~> 3.2)
|
152
153
|
rexml (~> 3.2)
|
153
|
-
redis (5.0
|
154
|
-
redis-client (>= 0.
|
155
|
-
redis-client (0.
|
154
|
+
redis (5.3.0)
|
155
|
+
redis-client (>= 0.22.0)
|
156
|
+
redis-client (0.22.2)
|
156
157
|
connection_pool
|
157
158
|
regexp_parser (2.9.2)
|
158
159
|
rest-client (2.1.0)
|
@@ -160,9 +161,8 @@ GEM
|
|
160
161
|
http-cookie (>= 1.0.2, < 2.0)
|
161
162
|
mime-types (>= 1.16, < 4.0)
|
162
163
|
netrc (~> 0.8)
|
163
|
-
rexml (3.
|
164
|
-
|
165
|
-
rollbar (3.4.1)
|
164
|
+
rexml (3.3.9)
|
165
|
+
rollbar (3.6.0)
|
166
166
|
rspec (3.13.0)
|
167
167
|
rspec-core (~> 3.13.0)
|
168
168
|
rspec-expectations (~> 3.13.0)
|
@@ -176,27 +176,20 @@ GEM
|
|
176
176
|
diff-lcs (>= 1.2.0, < 2.0)
|
177
177
|
rspec-support (~> 3.13.0)
|
178
178
|
rspec-support (3.13.0)
|
179
|
-
rubocop (1.
|
179
|
+
rubocop (1.66.1)
|
180
180
|
json (~> 2.3)
|
181
181
|
language_server-protocol (>= 3.17.0)
|
182
182
|
parallel (~> 1.10)
|
183
183
|
parser (>= 3.3.0.2)
|
184
184
|
rainbow (>= 2.2.2, < 4.0)
|
185
|
-
regexp_parser (>=
|
186
|
-
|
187
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
185
|
+
regexp_parser (>= 2.4, < 3.0)
|
186
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
188
187
|
ruby-progressbar (~> 1.7)
|
189
188
|
unicode-display_width (>= 2.4.0, < 3.0)
|
190
|
-
rubocop-ast (1.
|
189
|
+
rubocop-ast (1.32.3)
|
191
190
|
parser (>= 3.3.1.0)
|
192
|
-
rubocop-
|
193
|
-
rubocop (~> 1.
|
194
|
-
rubocop-factory_bot (2.24.0)
|
195
|
-
rubocop (~> 1.33)
|
196
|
-
rubocop-rspec (2.24.1)
|
197
|
-
rubocop (~> 1.33)
|
198
|
-
rubocop-capybara (~> 2.17)
|
199
|
-
rubocop-factory_bot (~> 2.22)
|
191
|
+
rubocop-rspec (3.1.0)
|
192
|
+
rubocop (~> 1.61)
|
200
193
|
ruby-progressbar (1.13.0)
|
201
194
|
ruby2_keywords (0.0.5)
|
202
195
|
sawyer (0.9.2)
|
@@ -215,26 +208,25 @@ GEM
|
|
215
208
|
sparql-client (3.2.2)
|
216
209
|
net-http-persistent (~> 4.0, >= 4.0.2)
|
217
210
|
rdf (~> 3.2, >= 3.2.11)
|
218
|
-
strscan (3.1.0)
|
219
211
|
sxp (1.2.4)
|
220
212
|
matrix (~> 0.4)
|
221
213
|
rdf (~> 3.2)
|
222
214
|
systemu (2.6.5)
|
223
215
|
terminal-table (3.0.2)
|
224
216
|
unicode-display_width (>= 1.1.1, < 3)
|
225
|
-
timecop (0.9.
|
217
|
+
timecop (0.9.10)
|
226
218
|
tzinfo (2.0.6)
|
227
219
|
concurrent-ruby (~> 1.0)
|
228
220
|
unf (0.1.4)
|
229
221
|
unf_ext
|
230
222
|
unf_ext (0.0.8.2)
|
231
|
-
unicode-display_width (2.
|
223
|
+
unicode-display_width (2.6.0)
|
232
224
|
unicode-types (1.9.0)
|
233
225
|
uuid (2.3.9)
|
234
226
|
macaddr (~> 1.0)
|
235
227
|
validatable (1.6.7)
|
236
228
|
vcr (5.1.0)
|
237
|
-
webmock (3.
|
229
|
+
webmock (3.24.0)
|
238
230
|
addressable (>= 2.8.0)
|
239
231
|
crack (>= 0.3.2)
|
240
232
|
hashdiff (>= 0.4.0, < 2.0.0)
|
@@ -244,17 +236,17 @@ PLATFORMS
|
|
244
236
|
|
245
237
|
DEPENDENCIES
|
246
238
|
bundler (~> 2.0)
|
247
|
-
danger (~> 9.
|
239
|
+
danger (~> 9.5)
|
248
240
|
pry (~> 0.10, >= 0.10.4)
|
249
241
|
pry-byebug (~> 3.6)
|
250
242
|
pushmi_pullyu!
|
251
|
-
rake (~> 13.
|
243
|
+
rake (~> 13.2)
|
252
244
|
rspec (~> 3.13)
|
253
|
-
rubocop (~> 1.
|
254
|
-
rubocop-rspec (~>
|
245
|
+
rubocop (~> 1.66)
|
246
|
+
rubocop-rspec (~> 3.1)
|
255
247
|
timecop (~> 0.9)
|
256
248
|
vcr (~> 5.0)
|
257
|
-
webmock (~> 3.
|
249
|
+
webmock (~> 3.24)
|
258
250
|
|
259
251
|
BUNDLED WITH
|
260
|
-
2.
|
252
|
+
2.4.9
|
data/README.md
CHANGED
@@ -86,7 +86,7 @@ You can also provide a configuration file which PushmiPullyu will use with the -
|
|
86
86
|
|
87
87
|
By default, if no configuration file is specified, PushmiPullyu will look for a configuration file at config/pushmi_pullyu.yml.
|
88
88
|
|
89
|
-
Take the following [sample configuration](https://github.com/ualbertalib/pushmi_pullyu/blob/
|
89
|
+
Take the following [sample configuration](https://github.com/ualbertalib/pushmi_pullyu/blob/main/examples/pushmi_pullyu.yml) as inspiration or check out the [DEFAULTS hash](https://github.com/ualbertalib/pushmi_pullyu/blob/main/lib/pushmi_pullyu.rb) in the main module to see all available options.
|
90
90
|
|
91
91
|
Options passed on the command line will also override options specified in the config file.
|
92
92
|
|
@@ -144,7 +144,7 @@ To release a new version, bump the version file found here: `lib/pushmi_pullyu/v
|
|
144
144
|
|
145
145
|
Try to bump versions using [semantic versioning](http://semver.org/).
|
146
146
|
|
147
|
-
Commit this change into
|
147
|
+
Commit this change into main branch via a PR.
|
148
148
|
|
149
149
|
Once committed, you can do a release by running the following rake command:
|
150
150
|
|
@@ -41,7 +41,9 @@ class PushmiPullyu::AIP::Creator
|
|
41
41
|
tar_aip_filename = File.expand_path(@aip_filename)
|
42
42
|
|
43
43
|
Dir.chdir(PushmiPullyu.options[:workdir]) do
|
44
|
-
|
44
|
+
File.open(tar_aip_filename, 'wb') do |tar|
|
45
|
+
Minitar.pack(@noid, tar)
|
46
|
+
end
|
45
47
|
end
|
46
48
|
end
|
47
49
|
|
@@ -53,13 +53,17 @@ class PushmiPullyu::SwiftDepositer
|
|
53
53
|
headers = { 'etag' => checksum,
|
54
54
|
'content-type' => 'application/x-tar' }.merge(metadata)
|
55
55
|
deposited_file = era_container.object(file_base_name)
|
56
|
-
|
56
|
+
File.open(file_name) do |file|
|
57
|
+
deposited_file.write(file, headers)
|
58
|
+
end
|
57
59
|
else
|
58
60
|
# for creating new: construct hash with symbols as keys, add metadata as a hash within the header hash
|
59
61
|
headers = { etag: checksum,
|
60
62
|
content_type: 'application/x-tar',
|
61
63
|
metadata: metadata }
|
62
|
-
|
64
|
+
File.open(file_name) do |file|
|
65
|
+
deposited_file = era_container.create_object(file_base_name, headers, file)
|
66
|
+
end
|
63
67
|
end
|
64
68
|
|
65
69
|
deposited_file
|
data/pushmi_pullyu.gemspec
CHANGED
@@ -21,18 +21,18 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.required_ruby_version = '>= 2.7'
|
23
23
|
|
24
|
-
spec.
|
25
|
-
spec.
|
26
|
-
spec.
|
27
|
-
spec.
|
28
|
-
spec.
|
29
|
-
spec.
|
30
|
-
spec.
|
31
|
-
spec.
|
32
|
-
spec.
|
33
|
-
spec.
|
34
|
-
spec.
|
35
|
-
spec.
|
24
|
+
spec.add_dependency 'activesupport', '>= 5', '< 7.2'
|
25
|
+
spec.add_dependency 'bagit', '~> 0.4'
|
26
|
+
spec.add_dependency 'connection_pool', '~> 2.2'
|
27
|
+
spec.add_dependency 'daemons', '~> 1.2', '>= 1.2.4'
|
28
|
+
spec.add_dependency 'minitar', '>= 0.7', '< 1.0'
|
29
|
+
spec.add_dependency 'openstack', '~> 3.3', '>= 3.3.10'
|
30
|
+
spec.add_dependency 'rdf', '>= 1.99', '< 3.3'
|
31
|
+
spec.add_dependency 'rdf-n3', '>= 1.99', '< 3.3'
|
32
|
+
spec.add_dependency 'redis', '>= 3.3', '< 6.0'
|
33
|
+
spec.add_dependency 'rest-client', '>= 1.8', '< 3.0'
|
34
|
+
spec.add_dependency 'rollbar', '>= 2.18', '< 4.0'
|
35
|
+
spec.add_dependency 'uuid', '~> 2.3.9'
|
36
36
|
|
37
37
|
spec.metadata = {
|
38
38
|
'rubygems_mfa_required' => 'true'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pushmi_pullyu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Murnaghan
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-11-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
version: '5'
|
21
21
|
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '
|
23
|
+
version: '7.2'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
version: '5'
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '7.2'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: bagit
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -83,16 +83,22 @@ dependencies:
|
|
83
83
|
name: minitar
|
84
84
|
requirement: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- - "
|
86
|
+
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0.7'
|
89
|
+
- - "<"
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '1.0'
|
89
92
|
type: :runtime
|
90
93
|
prerelease: false
|
91
94
|
version_requirements: !ruby/object:Gem::Requirement
|
92
95
|
requirements:
|
93
|
-
- - "
|
96
|
+
- - ">="
|
94
97
|
- !ruby/object:Gem::Version
|
95
98
|
version: '0.7'
|
99
|
+
- - "<"
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '1.0'
|
96
102
|
- !ruby/object:Gem::Dependency
|
97
103
|
name: openstack
|
98
104
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,7 +128,7 @@ dependencies:
|
|
122
128
|
version: '1.99'
|
123
129
|
- - "<"
|
124
130
|
- !ruby/object:Gem::Version
|
125
|
-
version: '
|
131
|
+
version: '3.3'
|
126
132
|
type: :runtime
|
127
133
|
prerelease: false
|
128
134
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -132,7 +138,7 @@ dependencies:
|
|
132
138
|
version: '1.99'
|
133
139
|
- - "<"
|
134
140
|
- !ruby/object:Gem::Version
|
135
|
-
version: '
|
141
|
+
version: '3.3'
|
136
142
|
- !ruby/object:Gem::Dependency
|
137
143
|
name: rdf-n3
|
138
144
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,7 +148,7 @@ dependencies:
|
|
142
148
|
version: '1.99'
|
143
149
|
- - "<"
|
144
150
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
151
|
+
version: '3.3'
|
146
152
|
type: :runtime
|
147
153
|
prerelease: false
|
148
154
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -152,7 +158,7 @@ dependencies:
|
|
152
158
|
version: '1.99'
|
153
159
|
- - "<"
|
154
160
|
- !ruby/object:Gem::Version
|
155
|
-
version: '
|
161
|
+
version: '3.3'
|
156
162
|
- !ruby/object:Gem::Dependency
|
157
163
|
name: redis
|
158
164
|
requirement: !ruby/object:Gem::Requirement
|