cm-admin 0.8.0 → 0.8.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5fa47a489bd6b44db00d91cb7631c5491646fd00148ba756b87208f1218ee705
4
- data.tar.gz: 5a61fd4d0b01637fbf16bd0a443b912929d12993863a936bd329682433ce54f6
3
+ metadata.gz: 4d4d1a58010d3994e7df3ef12930bcbd41d28a6e5a5fe12803dbe0b129272ba3
4
+ data.tar.gz: 97a80e2e67fbe2a67702b755f1772b0218ff892ca0bfd1d43655f561020b3665
5
5
  SHA512:
6
- metadata.gz: 708568975092346a45370f46c3b7119feb5a4c4bc43a33ec61a30a3966da7ed8ec13d1a9d91e3a2120f2d5a462f18cb5827a9deaed6fc84bc451b0740f80187d
7
- data.tar.gz: fc2fba169f614e1d48a11cec08135a12db4e20eb0dcfb6eada41a810bbd7bbeb40b046512c472232542670da2e2c301db58b3263c37fe05de791c3e2b15d46a8
6
+ metadata.gz: d8a20aeb76b4533e1134adbaa126c034ed8fc3f5b8366a1191b031363e109b5dae719a8414ee92eb316440aa605ceb780da126b319c9fb163b5999fe94bf396c
7
+ data.tar.gz: f857581be503ef9e20ae8512b869923db95322256c2586584fa65a2058148e00abd14c291dc8fda6a28fabfb8fb74f3fdc7fa66cdef23bab020ad101b03df222
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cm-admin (0.8.0)
4
+ cm-admin (0.8.1)
5
5
  caxlsx_rails
6
6
  cocoon (~> 1.2.15)
7
7
  csv-importer (~> 0.8.2)
@@ -3,8 +3,8 @@ class FileImportProcessorJob < ApplicationJob
3
3
 
4
4
  def perform(file_import)
5
5
  model = CmAdmin::Model.find_by({name: file_import.associated_model_name})
6
- path = ActiveStorage::Blob.service.path_for(file_import.import_file.key)
7
- importer = model.importer.class_name.classify.constantize.new(path: path)
6
+ content = file_import.import_file.download
7
+ importer = model.importer.class_name.classify.constantize.new(content: content)
8
8
  case model.importer.importer_type.to_s
9
9
  when 'csv_importer'
10
10
  run_csv_importer(importer, file_import)
@@ -1,3 +1,3 @@
1
1
  module CmAdmin
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cm-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sajinmp