labimotion 1.4.0.rc6 → 1.4.0.rc7
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff15957fc41b34b4b25e4c76e73c1fb9d903a758fa80839ddf3db0c1adaad00c
|
|
4
|
+
data.tar.gz: c8b1b781b8a7d0a53ee988d8d26ca300a3d808f0c7e192c703cfd608b1663d6e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 423c73182f09f27ce911deb7306325160206da08cfee745a5b9131f8c8e288b291b80fd64c8b81933b9a124a6728be7788de8f04646d2d28bfec0df027ca75be
|
|
7
|
+
data.tar.gz: d6ad47a79590d47766bd931615087d4d7db1083db95999874aff87c35ae94b7c0dcee8ff97ea027de3e01b73871864fcfa5462cdc619458c7711ee27b3f563a5
|
|
@@ -41,7 +41,7 @@ module Labimotion
|
|
|
41
41
|
end
|
|
42
42
|
post do
|
|
43
43
|
msg = create_repo_klass(params, current_user, request.headers['Origin'])
|
|
44
|
-
klass = Labimotion::DatasetKlassEntity.represent(DatasetKlass.all)
|
|
44
|
+
klass = Labimotion::DatasetKlassEntity.represent(Labimotion::DatasetKlass.all)
|
|
45
45
|
{ status: msg[:status], message: msg[:message], klass: klass }
|
|
46
46
|
rescue StandardError => e
|
|
47
47
|
Labimotion.log_exception(e, current_user)
|
|
@@ -248,7 +248,7 @@ module Labimotion
|
|
|
248
248
|
end
|
|
249
249
|
post do
|
|
250
250
|
msg = create_repo_klass(params, current_user, request.headers['Origin'])
|
|
251
|
-
klass = Labimotion::ElementKlassEntity.represent(ElementKlass.all)
|
|
251
|
+
klass = Labimotion::ElementKlassEntity.represent(Labimotion::ElementKlass.all)
|
|
252
252
|
{ status: msg[:status], message: msg[:message], klass: klass }
|
|
253
253
|
rescue StandardError => e
|
|
254
254
|
Labimotion.log_exception(e, current_user)
|
|
@@ -377,6 +377,7 @@ module Labimotion
|
|
|
377
377
|
end
|
|
378
378
|
route_param :id do
|
|
379
379
|
before do
|
|
380
|
+
byebug
|
|
380
381
|
@element_policy = ElementPolicy.new(current_user, Element.find(params[:id]))
|
|
381
382
|
error!('401 Unauthorized', 401) unless current_user.matrix_check_by_name('genericElement') && @element_policy.read?
|
|
382
383
|
rescue ActiveRecord::RecordNotFound
|
|
@@ -125,7 +125,7 @@ module Labimotion
|
|
|
125
125
|
end
|
|
126
126
|
post do
|
|
127
127
|
msg = create_repo_klass(params, current_user, request.headers['Origin'])
|
|
128
|
-
klass = Labimotion::SegmentKlassEntity.represent(SegmentKlass.all)
|
|
128
|
+
klass = Labimotion::SegmentKlassEntity.represent(Labimotion::SegmentKlass.all)
|
|
129
129
|
{ status: msg[:status], message: msg[:message], klass: klass }
|
|
130
130
|
rescue StandardError => e
|
|
131
131
|
Labimotion.log_exception(e, current_user)
|
|
@@ -9,7 +9,7 @@ module Labimotion
|
|
|
9
9
|
extend Grape::API::Helpers
|
|
10
10
|
|
|
11
11
|
def klass_list(el_klass, is_active=false)
|
|
12
|
-
scope = SegmentKlass.all
|
|
12
|
+
scope = Labimotion::SegmentKlass.all
|
|
13
13
|
scope = scope.where(is_active: is_active) if is_active.present? && is_active == true
|
|
14
14
|
scope = scope.joins(:element_klass).where(klass_element: params[:element], is_active: true) if el_klass.present?
|
|
15
15
|
scope.order('place') || []
|
data/lib/labimotion/version.rb
CHANGED
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.4.0.
|
|
4
|
+
version: 1.4.0.rc7
|
|
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: 2024-07-
|
|
12
|
+
date: 2024-07-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|