bridge_cache 0.5.1 → 0.6.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: d19281e31391b19b48e15fee624bed3f0d8a8d2439c95e55c6183a2cd7abdd40
4
- data.tar.gz: d3580759d1eefc43cc5395f893f100a8acf1a71662d426a2355e68b1838d004c
3
+ metadata.gz: 693ca67e898583aff8206a6a4a51fb841a196c88125614216573e00a660cf86c
4
+ data.tar.gz: 812a4c25dbfe6a1433cd005eda4053852e22a14ffb035bc8b2db446737139bf9
5
5
  SHA512:
6
- metadata.gz: c889c70deb9d71e98a09657ea9014c5b1bff30017fefb13ca8fcb2cd3f56d48546e99e2190a7d9a2923206bbd813715df63ff3b7f757b3268eafed56a0d974e9
7
- data.tar.gz: 3122e4e2ff6e9de589e4b84e5d1564d68969478d80ada84511d9d00db17f31436eda0f5d86aefe7f342e0ed838fbeb1fd530a6e1321ef661c891be51b9327aaf
6
+ metadata.gz: ca41d1ea01e5d386f0ff3e9bb327692d3aac1618cac4b662745309a8b714899208417e1d9e8c1ab0763419ddd04177330da581aa5c1e4151c794dd47eabc0214
7
+ data.tar.gz: e19a81ef27d8b29e445f1d9c5d33fc1dcdec2cf75f4fad5e30906ada891f56308915a4a892f02b772c313a0d2fafaf14c09082191c71c1a56c455197157a35c8
@@ -1,4 +1,4 @@
1
- # rubocop:disable Naming/PredicateName,Metrics/MethodLength
1
+ # rubocop:disable Naming/PredicatePrefix,Metrics/MethodLength
2
2
  module BridgeCache
3
3
  module Data
4
4
  module BridgeModel
@@ -97,4 +97,4 @@ module BridgeCache
97
97
  end
98
98
  end
99
99
  end
100
- # rubocop:enable Naming/PredicateName,Metrics/MethodLength
100
+ # rubocop:enable Naming/PredicatePrefix,Metrics/MethodLength
@@ -27,8 +27,10 @@ module BridgeCache
27
27
  elsif remote_data.status == BridgeBlueprint::Constants::STATUS_PENDING
28
28
  BridgeCache::Jobs::ImportCheck.set(queue: queue_name, wait: 30.seconds).perform_later(@account_settings,
29
29
  attempts + 1, chain)
30
- elsif remote_data.status == BridgeBlueprint::Constants::STATUS_FAILED ||
31
- remote_data.status == BridgeBlueprint::Constants::STATUS_NOT_FOUND
30
+ elsif [
31
+ BridgeBlueprint::Constants::STATUS_FAILED,
32
+ BridgeBlueprint::Constants::STATUS_NOT_FOUND
33
+ ].include?(remote_data.status)
32
34
 
33
35
  raise 'Bridge data dump download failed' if retries < 1
34
36
 
@@ -22,7 +22,7 @@ module BridgeCache
22
22
 
23
23
  belongs_to :owner, class_name: BridgeCache::User.name, optional: true
24
24
 
25
- serialize :config
25
+ serialize :config, coder: YAML
26
26
 
27
27
  def self.unique_column_names
28
28
  %w[bridge_id]
@@ -26,7 +26,7 @@ module BridgeCache
26
26
  class_name: BridgeCache::LiveCourseSessionRegistration.name
27
27
  has_many :visits, foreign_key: :user_id, primary_key: BridgeCache.primary_key,
28
28
  class_name: BridgeCache::UserVisitLog.name
29
- serialize :config
29
+ serialize :config, coder: YAML
30
30
 
31
31
  def self.for_domain(domain_id)
32
32
  where('bridge_cache_users.sub_account_id = ?', domain_id)
@@ -4,6 +4,14 @@ module BridgeCache
4
4
 
5
5
  config.autoload_once_paths += Dir["#{config.root}/lib/**/"]
6
6
 
7
+ # Zeitwerk expects csv_dump.rb to define CsvDump; tell the autoloaders about the acronym
8
+ # so host apps do not have to configure an inflection for the engine's class.
9
+ initializer 'bridge_cache.autoloader_inflections' do
10
+ Rails.autoloaders.each do |autoloader|
11
+ autoloader.inflector.inflect('csv_dump' => 'CSVDump')
12
+ end
13
+ end
14
+
7
15
  config.generators do |g|
8
16
  g.test_framework :rspec
9
17
  g.fixture_replacement :factory_girl, dir: 'spec/factories'
@@ -1,3 +1,3 @@
1
1
  module BridgeCache
2
- VERSION = '0.5.1'.freeze
2
+ VERSION = '0.6.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridge_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jshaffer
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-05-30 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activerecord-import
@@ -38,20 +37,34 @@ dependencies:
38
37
  - - "~>"
39
38
  - !ruby/object:Gem::Version
40
39
  version: 0.0.8
40
+ - !ruby/object:Gem::Dependency
41
+ name: csv
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
41
54
  - !ruby/object:Gem::Dependency
42
55
  name: rails
43
56
  requirement: !ruby/object:Gem::Requirement
44
57
  requirements:
45
58
  - - ">="
46
59
  - !ruby/object:Gem::Version
47
- version: 5.2.4.3
60
+ version: '7.1'
48
61
  type: :runtime
49
62
  prerelease: false
50
63
  version_requirements: !ruby/object:Gem::Requirement
51
64
  requirements:
52
65
  - - ">="
53
66
  - !ruby/object:Gem::Version
54
- version: 5.2.4.3
67
+ version: '7.1'
55
68
  - !ruby/object:Gem::Dependency
56
69
  name: rein
57
70
  requirement: !ruby/object:Gem::Requirement
@@ -292,7 +305,6 @@ homepage: https://www.getbridge.com
292
305
  licenses:
293
306
  - MIT
294
307
  metadata: {}
295
- post_install_message:
296
308
  rdoc_options: []
297
309
  require_paths:
298
310
  - lib
@@ -307,8 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
307
319
  - !ruby/object:Gem::Version
308
320
  version: '0'
309
321
  requirements: []
310
- rubygems_version: 3.4.10
311
- signing_key:
322
+ rubygems_version: 3.6.9
312
323
  specification_version: 4
313
324
  summary: A mountable engine for bridge data storage
314
325
  test_files: []