support_table_data 1.2.2 → 1.2.3

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: 8719f2da306b1e4803e773daca19142c381227b2697f5549e3666f962e1e6896
4
- data.tar.gz: 6cdb23dd575e02d73168ae6498719df66bbf42608498c25994c00011accf1d88
3
+ metadata.gz: 0c7ebdaec82fe24f35650ee6906331233abaf106ec8627e92c003ad4c08692a1
4
+ data.tar.gz: 95ec232e9ecb03ae9300b0f799c0424beaa7d7c564591ddc54e9dec0b45479b4
5
5
  SHA512:
6
- metadata.gz: 283969dba42d61ccdcfcf8614b40492a20e42e05775a0e0a9397ffc275a83a9a5dd3a2abdf639694413a423cd1731c0a0aca811ca58f51fee18c75da7ff99d27
7
- data.tar.gz: b63681662984a4a0673eeb7d2ec8ada7d4368dcc903acab201331c1270f966ca1dc3de44579a0c5323e59afdecf1c022cdfa728136fa194ea3c7aa8e2329f3f5
6
+ metadata.gz: 6688998b029d42da0e82d5046386c033e8472ba49f869d3a573ca339c169bae3b5801c23d9018a9e4472427035e2a61883207919935f822c2115f98d4efd45b1
7
+ data.tar.gz: '02398f8ed62df1a2c035aeab8b00ed453a1185c9e03717eb98af60aee429bc7d523343b1f5ea346bfa072a85ac6b5e29839137713e6f096def8d01f093547d76'
data/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## 1.2.3
8
+
9
+ ### Fixed
10
+
11
+ - Made loading data from the data files thread safe.
12
+
7
13
  ## 1.2.2
8
14
 
9
15
  ### Fixed
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.2
1
+ 1.2.3
@@ -370,7 +370,8 @@ module SupportTableData
370
370
  # Eager load any classes defined in the default data directory by guessing class names
371
371
  # from the file names.
372
372
  if SupportTableData.data_directory && File.exist?(SupportTableData.data_directory) && File.directory?(SupportTableData.data_directory)
373
- Dir.chdir(SupportTableData.data_directory) { Dir.glob(File.join("**", "*")) }.each do |file_name|
373
+ Dir.glob(File.join(SupportTableData.data_directory, "**", "*")).sort.each do |file_name|
374
+ file_name = file_name.delete_prefix("#{SupportTableData.data_directory}#{File::SEPARATOR}")
374
375
  class_name = file_name.sub(/\.[^.]*/, "").singularize.camelize
375
376
  class_name.safe_constantize
376
377
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: support_table_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Durand
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-21 00:00:00.000000000 Z
11
+ date: 2024-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord