labimotion 1.0.20 → 1.1.1

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: 8f184daee680bc36fbfaa4009efbf37fbd3ba63ddb8cc7c676be41f70b995142
4
- data.tar.gz: 67ebbecef064851e59ea82abaaed1ebe43600e4cc2c97e31e9035679b235d167
3
+ metadata.gz: 31b676c3d3b051e9dae4da02b070aa56235b835d01b773d29096a0be2a946edc
4
+ data.tar.gz: 760e38c37701899c5a52320096a936b8c559828a807a62400182314c1e4efe02
5
5
  SHA512:
6
- metadata.gz: 01b0732e4f3a38b500f4e16aad9a8a0caf17ea30485ced44dfcb615801d1f21c2d3fd622b79034b676137e20bb77602fec822f999a0d42820a84452c0b4344f2
7
- data.tar.gz: b05caf3e1051680b38ec757db80dce49bdcaa134b89391a004b8c6822d0cd3ac8bce73efacb54477e0af34265dde997be68b5614dfb4e18d83ba867694def923
6
+ metadata.gz: cafa053063812ca19f6ada0142715a9063ad8c8f7c9e0f2c592e09a104eeef6c45e6660804e8b098d6d18c05b60fe4e5e89ff3e2b019c9c474f131f601b70a13
7
+ data.tar.gz: 94ca185e56c817789ba34c320d32d85cfb78e679f37b77a00ae3b194c1d0eecae4364e142f40dd52392821dcff7cee2dccbb2841aad55992da51df5c6759de1e
@@ -19,7 +19,7 @@ module Labimotion
19
19
  get do
20
20
  list = "Labimotion::#{params[:klass]}".constantize.where(is_active: true).where.not(released_at: nil)
21
21
  list = list.where(is_generic: true) if params[:klass] == 'ElementKlass'
22
- entities = Labimotion::GenericPublicEntity.represent(list, displayed: params[:with_props])
22
+ entities = Labimotion::GenericPublicEntity.represent(list, displayed: params[:with_props], root: 'list')
23
23
  rescue StandardError => e
24
24
  Labimotion.log_exception(e, current_user)
25
25
  []
@@ -18,7 +18,7 @@ module Labimotion
18
18
  elsif result[:metadata] == nil
19
19
  Labimotion::ConState::NONE
20
20
  else
21
- data = process(att, id, content)
21
+ data = process(att, id, result[:metadata])
22
22
  generate_ds(id, att.attachable_id, data, current_user)
23
23
  Labimotion::ConState::COMPLETED
24
24
  end
@@ -3,9 +3,5 @@
3
3
  ## Labimotion Version
4
4
  module Labimotion
5
5
  IS_RAILS5 = false
6
- VERSION_ELN = '1.0.20'
7
- VERSION_REPO = '0.3.1'
8
-
9
- VERSION = Labimotion::VERSION_REPO if Labimotion::IS_RAILS5 == true
10
- VERSION = Labimotion::VERSION_ELN if Labimotion::IS_RAILS5 == false
6
+ VERSION = '1.1.1'
11
7
  end
data/lib/labimotion.rb CHANGED
@@ -8,7 +8,7 @@ module Labimotion
8
8
  end
9
9
 
10
10
  def self.log_exception(exception, current_user = nil)
11
- Labimotion.logger.error("version: #{Labimotion::VERSION}; #{Labimotion::IS_RAILS5}, (#{current_user&.id}) \n Exception: #{exception.message}")
11
+ Labimotion.logger.error("version: #{Labimotion::VERSION}; (#{current_user&.id}) \n Exception: #{exception.message}")
12
12
  Labimotion.logger.error(exception.backtrace.join("\n"))
13
13
  end
14
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: labimotion
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.20
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chia-Lin Lin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-12-21 00:00:00.000000000 Z
12
+ date: 2024-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
- rubygems_version: 3.4.18
119
+ rubygems_version: 3.1.6
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: Chemotion LabIMotion