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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52d0b261c3a30d2366fc4ce466c93ba915ad77465fbc5c19b9144ef1c76e30be
4
- data.tar.gz: 55fae411673e948fdfc7ca0f6f8ddd251cc3821093b0a15aaa03b3059aaad836
3
+ metadata.gz: b736448ec514cc585e82de8b36fc2139786ae824ec728df2b42e3e7a16906621
4
+ data.tar.gz: 33a754dfe77cc91dbaa5a88d76c8c2c781c753b593eb1b49495bebe0fbf2f6a3
5
5
  SHA512:
6
- metadata.gz: '09622f0d05d5621802326d634d026deac0e5cf0b8cf61cd46ea2ad502c22c4b7763b318264796d44ae5061895150712b3d254715404033ad905ce81663544304'
7
- data.tar.gz: e6f9a6398702df628d49faaf5eba31af5b1c8cc604c86c033287fa33879a1fde4dae488491e0530eb6a4bf3b6ab894ef3179eb11a5d984ff548cc8f7762b2f3d
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, uri.path.gsub('%20',' '), user)
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
@@ -1,3 +1,3 @@
1
1
  module CdmMigrator
2
- VERSION = '3.0.2'
2
+ VERSION = '3.0.3'
3
3
  end
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.2
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-05 00:00:00.000000000 Z
11
+ date: 2020-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails