valkyrie 1.2.0 → 1.2.1

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
- SHA256:
3
- metadata.gz: bda77d7a56d55e5862b7b2b554fbd40dae2b10cb5a276493a019bd8b7deacc5a
4
- data.tar.gz: a399f4b18ba8f4076ab6e564ef3b1c5833114ae04d18d8e191c106992f270f1a
2
+ SHA1:
3
+ metadata.gz: 2f8a25a4907164098b326abda6efecd2e8312c44
4
+ data.tar.gz: 527a724741b2be29ae313179b0d9d44acee1588c
5
5
  SHA512:
6
- metadata.gz: 969cbc605de0a00b10890d4fb8d232f12784b216cca18f512a3fc0fc23c15d98426f80eb10e7ae414e3a0965d86307ca1d9944e17b7b3abf746b066e6f8aa78f
7
- data.tar.gz: 96989a1b5710f1265f6826477879b75a96e2ffcf700bf5676ca3bd0039c301418ec704951ab9172da3d8d84229d5542accc6df7daaf95009dd3f3faade2c929c
6
+ metadata.gz: 3e5d8ab1685035c009f3aece230c97189f51c5382e33bd45677afaf8464da3893fab299ea3c3cd7a35d71943db4c292379ac9531dbbf6f33df4c7e51bf6ddb9e
7
+ data.tar.gz: 532b506eed5ffd247c6dca88d01893190a56f5dcdd88ad6d38775ff93de8e2aa647d3397006d9aab7be4bba610fafae5523707c3135218d8b0a312fdbe236d56
@@ -1,3 +1,12 @@
1
+ # v1.2.1 2018-09-25
2
+
3
+ ## Changes since last release
4
+
5
+ * Fix solr persister to pass through exceptions on timeout
6
+ [hackmastera](https://github.com/hackmastera)
7
+ * Fix generated specs to work with shared_specs expectation
8
+ [revgum](https://github.com/revgum)
9
+
1
10
  # v1.2.0 2018-08-29
2
11
 
3
12
  ## Changes since last release
@@ -4,7 +4,7 @@ require 'rails_helper'
4
4
  require 'valkyrie/specs/shared_specs'
5
5
 
6
6
  RSpec.describe <%= class_name %> do
7
- let(:resource_class) { described_class }
7
+ let(:resource_klass) { described_class }
8
8
  it_behaves_like "a Valkyrie::Resource"
9
9
 
10
10
  it "has tests" do
@@ -38,7 +38,7 @@ module Valkyrie::Persistence::Solr
38
38
  connection.add documents, params: COMMIT_PARAMS
39
39
  rescue RSolr::Error::Http => exception
40
40
  # Error 409 conflict is returned when versions do not match
41
- if exception.response[:status] == 409
41
+ if exception.response&.fetch(:status) == 409
42
42
  handle_conflict
43
43
  end
44
44
  raise exception
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Valkyrie
3
- VERSION = "1.2.0"
3
+ VERSION = "1.2.1"
4
4
  end
@@ -39,6 +39,7 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency "rake", "~> 10.0"
40
40
  spec.add_development_dependency "rspec", "~> 3.0"
41
41
  spec.add_development_dependency "pry"
42
+ spec.add_development_dependency "webmock"
42
43
  spec.add_development_dependency "pry-byebug"
43
44
  spec.add_development_dependency "database_cleaner"
44
45
  spec.add_development_dependency "simplecov"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valkyrie
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trey Pendragon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-29 00:00:00.000000000 Z
11
+ date: 2018-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct
@@ -276,6 +276,20 @@ dependencies:
276
276
  - - ">="
277
277
  - !ruby/object:Gem::Version
278
278
  version: '0'
279
+ - !ruby/object:Gem::Dependency
280
+ name: webmock
281
+ requirement: !ruby/object:Gem::Requirement
282
+ requirements:
283
+ - - ">="
284
+ - !ruby/object:Gem::Version
285
+ version: '0'
286
+ type: :development
287
+ prerelease: false
288
+ version_requirements: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - ">="
291
+ - !ruby/object:Gem::Version
292
+ version: '0'
279
293
  - !ruby/object:Gem::Dependency
280
294
  name: pry-byebug
281
295
  requirement: !ruby/object:Gem::Requirement
@@ -575,7 +589,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
575
589
  version: '0'
576
590
  requirements: []
577
591
  rubyforge_project:
578
- rubygems_version: 2.7.7
592
+ rubygems_version: 2.6.14
579
593
  signing_key:
580
594
  specification_version: 4
581
595
  summary: An ORM using the Data Mapper pattern, specifically built to solve Digital