cdm_migrator 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/jobs/cdm_migrator/cdm_ingest_files_job.rb +3 -2
- data/lib/cdm_migrator/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: b736448ec514cc585e82de8b36fc2139786ae824ec728df2b42e3e7a16906621
|
4
|
+
data.tar.gz: 33a754dfe77cc91dbaa5a88d76c8c2c781c753b593eb1b49495bebe0fbf2f6a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 799f4b3e23cd5fdd96dcad93f787c292f52f67466b07eed8f1fd7b609f50d4e59cfb0de599e6f2ed4503baf2d0c298e5ae49f4e03604075e3b15c5c09db5babd
|
7
|
+
data.tar.gz: aaa14ed1e586d57a027213a2f6a93c69f1020f6167e2d0d51bd1825a0c66e4b94236804006c34071b88560f37d6f6685713c6c4befcc0a0c3d0336f2ec2cda77
|
@@ -16,10 +16,11 @@ module CdmMigrator
|
|
16
16
|
IO.copy_stream(download, url)
|
17
17
|
url = "file://"+url.to_s
|
18
18
|
end
|
19
|
-
uri = URI.parse(url.gsub(' ','%20'))
|
19
|
+
uri = URI.parse(url.gsub(' ','%20').gsub(/[\[\]@#\$\*{}]/, ""))
|
20
20
|
if uri.scheme == 'file'
|
21
|
-
IngestLocalFileJob.perform_now(fs,
|
21
|
+
IngestLocalFileJob.perform_now(fs, url.gsub('file://',''), user)
|
22
22
|
else
|
23
|
+
URI.parse(url.gsub(' ','%20'))
|
23
24
|
ImportUrlJob.perform_now(fs, log(user))
|
24
25
|
end
|
25
26
|
ingest_work.update_attribute('complete', true) if last_file
|
data/lib/cdm_migrator/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cdm_migrator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sephirothkod
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|