pushmi_pullyu 2.0.5 → 2.0.6
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/CHANGELOG.md +4 -0
- data/Gemfile.lock +2 -2
- data/README.md +7 -0
- data/lib/pushmi_pullyu/aip/downloader.rb +3 -3
- data/lib/pushmi_pullyu/cli.rb +1 -1
- data/lib/pushmi_pullyu/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: 128bfb644445954d7b9c5eb3700dd1f3e4d3c92ea1e8448ab98054d750b2d53d
|
|
4
|
+
data.tar.gz: 2fc44c64692367c9c4b254ec32b8241c7ecdc8fb1a33384561cbfcd34096a085
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: daaaf67bda17bdea14310b41a87a1c51190f41337d8f0d467887dea5ed9cc700b2b05822bddd6038a4c7746927439d2576fd8a7c3fb2a878d7f59a8ac84e45be
|
|
7
|
+
data.tar.gz: 33197ef8eb83869cea35ea5af258d83c16c56e77cbb0716fc61a6fa344b3d5cdf75e25a0fd72d6e2ab71148ddae9648351d29c5f2b53c9569af9f04869538ba0
|
data/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,10 @@ and releases in PushmiPullyu adheres to [Semantic Versioning](https://semver.org
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [2.0.6] - 2023-03-17
|
|
12
|
+
|
|
13
|
+
- Fix URI concatenation for jupiter's base url. [#309](https://github.com/ualbertalib/pushmi_pullyu/issues/309)
|
|
14
|
+
|
|
11
15
|
## [2.0.5] - 2023-02-17
|
|
12
16
|
|
|
13
17
|
- Add rescue block to catch exceptions while waiting for next item [#280](https://github.com/ualbertalib/pushmi_pullyu/issues/280)
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -104,6 +104,13 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
|
104
104
|
|
|
105
105
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
106
106
|
|
|
107
|
+
You'll need to set these two env vars otherwise you'll likely run into an error (Errno::ECONNRESET: Connection reset by peer):
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
export JUPITER_API_KEY=3eeb395e-63b7-11ea-bc55-0242ac130003
|
|
111
|
+
export JUPITER_USER=ditech@ualberta.ca
|
|
112
|
+
```
|
|
113
|
+
|
|
107
114
|
## Testing
|
|
108
115
|
|
|
109
116
|
Pre-requisites:
|
|
@@ -86,7 +86,7 @@ class PushmiPullyu::AIP::Downloader
|
|
|
86
86
|
@uri = URI.parse(PushmiPullyu.options[:jupiter][:jupiter_url])
|
|
87
87
|
@http = Net::HTTP.new(@uri.host, @uri.port)
|
|
88
88
|
@http.use_ssl = true if @uri.instance_of? URI::HTTPS
|
|
89
|
-
request = Net::HTTP::Post.new(
|
|
89
|
+
request = Net::HTTP::Post.new(URI.join(@uri, '/auth/system'))
|
|
90
90
|
request.set_form_data(
|
|
91
91
|
email: PushmiPullyu.options[:jupiter][:user],
|
|
92
92
|
api_key: PushmiPullyu.options[:jupiter][:api_key]
|
|
@@ -102,7 +102,7 @@ class PushmiPullyu::AIP::Downloader
|
|
|
102
102
|
log_downloading(remote, local)
|
|
103
103
|
|
|
104
104
|
@uri = URI.parse(PushmiPullyu.options[:jupiter][:jupiter_url])
|
|
105
|
-
request = Net::HTTP::Get.new(@uri
|
|
105
|
+
request = Net::HTTP::Get.new(URI.join(@uri, remote))
|
|
106
106
|
# add previously stored cookies
|
|
107
107
|
request['Cookie'] = @cookies
|
|
108
108
|
|
|
@@ -118,7 +118,7 @@ class PushmiPullyu::AIP::Downloader
|
|
|
118
118
|
end
|
|
119
119
|
|
|
120
120
|
def get_file_paths(url)
|
|
121
|
-
request = Net::HTTP::Get.new(@uri
|
|
121
|
+
request = Net::HTTP::Get.new(URI.join(@uri, url))
|
|
122
122
|
# add previously stored cookies
|
|
123
123
|
request['Cookie'] = @cookies
|
|
124
124
|
|
data/lib/pushmi_pullyu/cli.rb
CHANGED
|
@@ -220,7 +220,7 @@ class PushmiPullyu::CLI
|
|
|
220
220
|
rescue StandardError => e
|
|
221
221
|
begin
|
|
222
222
|
queue.add_entity_in_timeframe(entity)
|
|
223
|
-
rescue MaxDepositAttemptsReached => e
|
|
223
|
+
rescue PushmiPullyu::PreservationQueue::MaxDepositAttemptsReached => e
|
|
224
224
|
log_exception(e)
|
|
225
225
|
end
|
|
226
226
|
|
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.0.
|
|
4
|
+
version: 2.0.6
|
|
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: 2023-
|
|
12
|
+
date: 2023-03-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|