labimotion 1.0.20 → 1.1.0

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: 8f184daee680bc36fbfaa4009efbf37fbd3ba63ddb8cc7c676be41f70b995142
4
- data.tar.gz: 67ebbecef064851e59ea82abaaed1ebe43600e4cc2c97e31e9035679b235d167
3
+ metadata.gz: 0c374697be6dd59785865b85ea34a92de6d9e87d8d0fe9d5416b5b58c5f18f11
4
+ data.tar.gz: 11b8842141477f92d08e50c0fc55c29f82c7a098dc8c08ed9be610b9d037c0ae
5
5
  SHA512:
6
- metadata.gz: 01b0732e4f3a38b500f4e16aad9a8a0caf17ea30485ced44dfcb615801d1f21c2d3fd622b79034b676137e20bb77602fec822f999a0d42820a84452c0b4344f2
7
- data.tar.gz: b05caf3e1051680b38ec757db80dce49bdcaa134b89391a004b8c6822d0cd3ac8bce73efacb54477e0af34265dde997be68b5614dfb4e18d83ba867694def923
6
+ metadata.gz: 0ebbb6edd334c5f13bbf3196cc7f5b56510019925f516abb35404b0943c9546e21fd16227ffebe5365955d9202b7201b795fac019c72050d0a59f902d4aa70ca
7
+ data.tar.gz: eded51a9e589660b0a6dcf20187eb715e946448fa9a047263176212c0136d0a648c9015d50a3de0ae06ea39ba6942fcfc23e00b085aecaa583e8faa57e67f1ee
@@ -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
  []
@@ -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.0'
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.0
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-12 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