labimotion 2.1.0.rc10 → 2.1.0.rc12

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: 8d9456ffe5c3e059a5e8dfc78ca671f0565c051bad7473c91e609de05d43b4d1
4
- data.tar.gz: d05ebbe88cd259e6c88fdc2d7948e5369646d6ec00260eb113db61ffcf29cc37
3
+ metadata.gz: e3778897d34066e72b55508a3f5788f26f85daa5b30223a81d60736c55150ff3
4
+ data.tar.gz: dddc91940a4e1f56869ed6e1ff27c155197836f3061eb091258b597884f0cb46
5
5
  SHA512:
6
- metadata.gz: 7f77618f29d0a9c79e45f9c8bbdb30e387c79566966add00c7172877e40bdceca94f655b5e48a666325152f24a7d4b3f3e90873e6f2db94c20653025d7fb0e48
7
- data.tar.gz: 0d0c5438dc13b8b9025311151938abdfaca59e1c5f89b29978f97bc406e109ce22fccefa38df57084a1d76a0b31bfdd1681483bcb116831e368019673389225e
6
+ metadata.gz: c842df479d71468944e769f4f5978ccce3cd4597f6368439b0e2da189f1740434755827787e7201cd3d654268aa0fac00407d4e230b23f767c0f2009f14a08af
7
+ data.tar.gz: a8a16ba782bb66fdd878aeb8d27b57f7a8c42b669854e274a5081f45c99f772338f1a43bd2728e7ca5b83558c7e5c757877a1696c48bb8148a91667be14deb55
@@ -37,10 +37,9 @@ module Labimotion
37
37
  end
38
38
 
39
39
  def sample_url
40
- protocol = Rails.env.production? ? 'https' : 'http'
41
- host = ENV['PUBLIC_URL'] || 'localhost:3000'
40
+ host = ENV['PUBLIC_URL'] || 'http://localhost:3000'
42
41
  api = 'mydb/collection/all/sample'
43
- "#{protocol}://#{host}/#{api}"
42
+ "#{host}/#{api}"
44
43
  end
45
44
 
46
45
  def build_layers
@@ -20,9 +20,7 @@ module Labimotion
20
20
  }
21
21
 
22
22
  def self.init_seeds
23
- gem_spec = Gem.loaded_specs['labimotion']
24
- gem_root = gem_spec.gem_dir if gem_spec
25
- seeds_path = File.join(gem_root, 'db', 'seeds', 'dataset_klasses.json')
23
+ seeds_path = File.join(Rails.root, 'db', 'seeds', 'json', 'dataset_klasses.json')
26
24
  seeds = JSON.parse(File.read(seeds_path))
27
25
 
28
26
  seeds['chmo'].each do |term|
@@ -2,5 +2,5 @@
2
2
 
3
3
  ## Labimotion Version
4
4
  module Labimotion
5
- VERSION = '2.1.0.rc10'
5
+ VERSION = '2.1.0.rc12'
6
6
  end
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: 2.1.0.rc10
4
+ version: 2.1.0.rc12
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: 2025-11-05 00:00:00.000000000 Z
12
+ date: 2025-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: caxlsx