workarea-product_additional_details 2.0.36 → 2.0.37

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: 017aa5c9dba4922f3c8b5637cd58308d89e228e16e12a2e25ad1db89a3b6ad11
4
- data.tar.gz: 541f83fa5e6db2a657779d0c89ff0746ccd2461d1352700cd708cfa980488b98
3
+ metadata.gz: c3d47d3fb77978b7e34bab148cb5271fea0e6c18e1008829c0ed5423dabcac3f
4
+ data.tar.gz: 431dd11f6ee7e4b426ee54473aa5d9bd79ef0458aecfa249922e0e2882852af9
5
5
  SHA512:
6
- metadata.gz: 0b4e0c50914027bdc69d0d07331879fb5614a0f05210823819c7458562dcb2281ed6c5e5ab185db6a6be0e7e81c406a2937cbf337f080e4fe9673d3949659f86
7
- data.tar.gz: 28a0810d9d47546e153a5861fb13ef023bd34032e67d9e518aee3a2aee2038812c0552eed350f05d19a58551a1e7d8fde152c6810edc4a0fd219f5e51f1fa7d2
6
+ metadata.gz: 1f144a9577a550ad78086faf80314b6e307491caed8931f50a7fe346fcfc3bfb0d6b66dd79de63785c15e3b368a5ca535f797661aabae58843f3e1c81c285e60
7
+ data.tar.gz: df745d01dcbfe649f2569b5d689daa602f79ef61a35cba611ffda544673e6a4bea710e2b2a4df0ac903ec72ccd50c71f7ab1899e432738065e26211f7e736592
@@ -0,0 +1,10 @@
1
+ module Workarea
2
+ module Storefront
3
+ module DetailsParseHelper
4
+ def parse_details_text(text)
5
+ return text.join(' ') if text.kind_of?(Array)
6
+ JSON.parse(text).join(' ') rescue text
7
+ end
8
+ end
9
+ end
10
+ end
@@ -1,4 +1,5 @@
1
1
  Workarea.configure do |config|
2
2
  # Add custom configuration here
3
3
  Workarea::Admin::ApplicationController.helper(Workarea::Admin::DetailsParseHelper)
4
+ Workarea::Storefront::ApplicationController.helper(Workarea::Storefront::DetailsParseHelper)
4
5
  end
@@ -1,5 +1,5 @@
1
1
  module Workarea
2
2
  module ProductAdditionalDetails
3
- VERSION = "2.0.36"
3
+ VERSION = "2.0.37"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-product_additional_details
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.36
4
+ version: 2.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gunasekaran Raja
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-11 00:00:00.000000000 Z
11
+ date: 2020-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea
@@ -50,6 +50,7 @@ files:
50
50
  - app/controllers/workarea/admin/create_catalog_products_controller.decorator
51
51
  - app/helpers/.keep
52
52
  - app/helpers/workarea/admin/details_parse_helper.rb
53
+ - app/helpers/workarea/storefront/details_parse_helper.rb
53
54
  - app/mailers/.keep
54
55
  - app/models/.keep
55
56
  - app/models/workarea/catalog/product.decorator