cdmbl 0.15.0 → 0.16.0

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: 637df7b53cd7d660727a0a8d55fa7847d7cba6c442f0a5aa44accd652bc1efed
4
- data.tar.gz: debd85256ed204a7c58de43e2db284ffeaaaafd4dc63bc59693d965c211f81e8
3
+ metadata.gz: 4821ebdc47a3186fe57f26780d47e143036aa5fcecad373ea06d887136c5c1b8
4
+ data.tar.gz: 86dac6818177606fabf0f6dc33b87e446d5f7de6ebd2da141cea628427ae0f9b
5
5
  SHA512:
6
- metadata.gz: 2a803c89d9a67faa6f706dd1a6f8cf1c3b8d535cda68dd7ef0d5102b7c5201b08dd84d31cb7d0571a957fed3f1f84e76c54bf117c11ee64e288bbba96a113a2a
7
- data.tar.gz: f6878f26d9151558bbde5e0a3a10c8a793123b8c686b3815b543835a42423b87f8f5a3ae01fef834432941a710692d654b6c60052de5121f53454607664180a3
6
+ metadata.gz: cb03047cfe8107454e8abb683c6007ff3e64f223d71e3fb7cb076aedd164218ace79d3874cf3b4685f3439154beb6e341df870344d4dc1e5cfed6691043b9893
7
+ data.tar.gz: b8aecb602cd58e3882f6429152cb05124fabf09545b0add38aa992558bb46c287b86e41ac9d1a96c42dcc0d54a066d51cd97b7e50ba609bf2e4c87463a42b050
@@ -3,6 +3,7 @@ module CDMBL
3
3
  # Load Records into a solr index
4
4
  class LoadWorker
5
5
  include Sidekiq::Worker
6
+ sidekiq_options queue: 'critical'
6
7
  attr_reader :solr_config, :records, :deletables
7
8
  attr_writer :loader_klass, :solr_klass
8
9
  def perform(records = [], deletables = [], solr_config = {})
@@ -90,7 +90,9 @@ module CDMBL
90
90
 
91
91
  def sets
92
92
  @oai_request ||=
93
- oai_request_klass.new(base_uri: oai_endpoint).sets
93
+ Rails.cache.fetch("cdmbl_set_specs", expires_in: 10.minutes) do
94
+ oai_request_klass.new(base_uri: oai_endpoint).sets
95
+ end
94
96
  end
95
97
  end
96
98
  end
@@ -1,3 +1,3 @@
1
1
  module CDMBL
2
- VERSION = "0.15.0"
2
+ VERSION = "0.16.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cdmbl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - chadfennell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-23 00:00:00.000000000 Z
11
+ date: 2019-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hash_at_path