kithe 2.0.1 → 2.0.2

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.
@@ -1 +1 @@
1
- 4cbfd05a2262f7d25ef697c9363e4cb1aa7eb4195c0f620fb742736eda1fee80fe5ee8a22db2629813c0c815f0aa82aed6df00d81064ac7953b989575672b1be
1
+ b2743b52b0dfb8e114644e6f301048cf7ca92e755552082072037e7d979a7de0d81017bc8645a42adec5590abd8c18bb87321aea57ff90f33bd5129f003a9eb1
@@ -46,7 +46,7 @@ describe Kithe::Indexable, type: :model do
46
46
 
47
47
  expect(WebMock).to have_requested(:post, @solr_update_url).
48
48
  with { |req|
49
- JSON.parse(req.body) == { "delete" => work.id }
49
+ JSON.parse(req.body) == { "delete" => work.send(Kithe.indexable_settings.solr_id_value_attribute) }
50
50
  }
51
51
  end
52
52
  end
@@ -123,23 +123,3 @@ RSpec.configure do |config|
123
123
  =end
124
124
  end
125
125
 
126
- # Workaround ruby 2.7.0 StringIO enccoding weirdness, which hopefully
127
- # will be fixed in shrine 3.x before we get there. if you can remove this patch
128
- # and tests still pass, you're good.
129
- #
130
- # https://github.com/shrinerb/shrine/pull/443
131
- #
132
- require 'sane_patch'
133
- SanePatch.patch("shrine", "< 3.2.2") do
134
- require 'shrine/storage/memory'
135
-
136
- class Shrine::Storage::Memory
137
- def open(id, **)
138
- io = StringIO.new(store.fetch(id))
139
- io.set_encoding(io.string.encoding) # Ruby 2.7.0 – https://bugs.ruby-lang.org/issues/16497
140
- io
141
- rescue KeyError
142
- raise Shrine::FileNotFound, "file #{id.inspect} not found on storage"
143
- end
144
- end
145
- end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kithe
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-03 00:00:00.000000000 Z
11
+ date: 2021-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 5.2.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.1'
22
+ version: '6.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 5.2.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.1'
32
+ version: '6.2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: attr_json
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -320,7 +320,7 @@ dependencies:
320
320
  - - "<"
321
321
  - !ruby/object:Gem::Version
322
322
  version: '2'
323
- description:
323
+ description:
324
324
  email:
325
325
  - jrochkind@sciencehistory.org
326
326
  executables: []
@@ -349,7 +349,6 @@ files:
349
349
  - app/models/kithe/asset/derivative_definition.rb
350
350
  - app/models/kithe/asset/set_shrine_uploader.rb
351
351
  - app/models/kithe/collection.rb
352
- - app/models/kithe/config_base.rb
353
352
  - app/models/kithe/mediainfo_analyzer.rb
354
353
  - app/models/kithe/model.rb
355
354
  - app/models/kithe/model_contains.rb
@@ -374,6 +373,7 @@ files:
374
373
  - lib/kithe.rb
375
374
  - lib/kithe/blacklight_tools/bulk_loading_search_service.rb
376
375
  - lib/kithe/blacklight_tools/search_service_bulk_load.rb
376
+ - lib/kithe/config_base.rb
377
377
  - lib/kithe/engine.rb
378
378
  - lib/kithe/indexable_settings.rb
379
379
  - lib/kithe/patch_fx.rb
@@ -406,6 +406,7 @@ files:
406
406
  - spec/dummy/app/jobs/application_job.rb
407
407
  - spec/dummy/app/mailers/application_mailer.rb
408
408
  - spec/dummy/app/models/application_record.rb
409
+ - spec/dummy/app/models/plain_active_record.rb
409
410
  - spec/dummy/app/views/layouts/application.html.erb
410
411
  - spec/dummy/app/views/layouts/mailer.html.erb
411
412
  - spec/dummy/app/views/layouts/mailer.text.erb
@@ -493,7 +494,7 @@ homepage: https://github.com/sciencehistory/kithe
493
494
  licenses:
494
495
  - MIT
495
496
  metadata: {}
496
- post_install_message:
497
+ post_install_message:
497
498
  rdoc_options: []
498
499
  require_paths:
499
500
  - lib
@@ -509,12 +510,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
509
510
  version: '0'
510
511
  requirements: []
511
512
  rubygems_version: 3.0.3
512
- signing_key:
513
+ signing_key:
513
514
  specification_version: 4
514
515
  summary: Shareable tools/components for building a digital collections app in Rails.
515
516
  test_files:
516
517
  - spec/spec_helper.rb
517
518
  - spec/dummy/app/mailers/application_mailer.rb
519
+ - spec/dummy/app/models/plain_active_record.rb
518
520
  - spec/dummy/app/models/application_record.rb
519
521
  - spec/dummy/app/jobs/application_job.rb
520
522
  - spec/dummy/app/controllers/application_controller.rb