pushmi_pullyu 2.0.5 → 2.0.6

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: 25051393a56976db185a30c9cd498afd7997854d2a6931f3b6190132cec76a97
4
- data.tar.gz: 731b8dbcf8a3d9124f44d57001bda6952bb2da07df874a1f97f52d7e7176c065
3
+ metadata.gz: 128bfb644445954d7b9c5eb3700dd1f3e4d3c92ea1e8448ab98054d750b2d53d
4
+ data.tar.gz: 2fc44c64692367c9c4b254ec32b8241c7ecdc8fb1a33384561cbfcd34096a085
5
5
  SHA512:
6
- metadata.gz: 82b083e9b991fbc0b7c95507415d312bc29b29a4f16fdcfe8689efc2dc4c69542a4c15010ce9b5841cebebe73920de7499512bf1eaab57bb379816bd1dba75ae
7
- data.tar.gz: 2439db5f7058ddc7b042894538a592d076c467b34c7211c262d15e3a2d6d436f8a3d785f6b53c3bd68e93566832fed18bbde6b32efa4f0f4e8e08eceacd3ed57
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pushmi_pullyu (2.0.5)
4
+ pushmi_pullyu (2.0.6)
5
5
  activesupport (>= 5, < 8)
6
6
  bagit (~> 0.4)
7
7
  connection_pool (~> 2.2)
@@ -248,4 +248,4 @@ DEPENDENCIES
248
248
  webmock (~> 3.3)
249
249
 
250
250
  BUNDLED WITH
251
- 2.3.19
251
+ 2.3.12
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("#{@uri.request_uri}auth/system")
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.request_uri + remote)
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.request_uri + url)
121
+ request = Net::HTTP::Get.new(URI.join(@uri, url))
122
122
  # add previously stored cookies
123
123
  request['Cookie'] = @cookies
124
124
 
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module PushmiPullyu
2
- VERSION = '2.0.5'.freeze
2
+ VERSION = '2.0.6'.freeze
3
3
  end
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.5
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-02-28 00:00:00.000000000 Z
12
+ date: 2023-03-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport