geoblacklight_admin 0.3.1 → 0.3.2

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: d481871da3c4f82143de532f4df640d9beb80dd3ed82f4c6bde271eb8b1ff392
4
- data.tar.gz: eefd4402d4b850aa8e359fe092431171d543943a9a33ec0484b43525a0cf74f1
3
+ metadata.gz: a8589ee3941b3bd4731accf0443452335f51b8f3f52a823e5c26306a089ccda0
4
+ data.tar.gz: 8bf6d3d0a966b7ab815f79a89822f27549827f0a63dc00c8beae73048e1f8b8e
5
5
  SHA512:
6
- metadata.gz: 0472f22c4d1018519ad27523bfb805d65fe24762ef962495f3dffcb4556933fd7f4a06f8cd2aa6a21c67f4463cbfe357ee28884703113d08f8dde0c13d1ae539
7
- data.tar.gz: 4ed5042da0ecb189d7d396ebe841393809171ea793a5610ae5936981a7ff34bd307493241d933d18cdf244202a212f44828616fad8715aede46b12ba8a708a2b
6
+ metadata.gz: d1208b0966517c76db7276b26c0c17e50a595c8a120fc14ae5fd7144d448e53b345feb9614db1e41076562644756e7487e75f1146d652b8753f9a156bb7ab5bb
7
+ data.tar.gz: 9cc8bc7a90157496e0d755f580ff1856317baaaa4bde49057388a97d5239aec1074523ecb3e8f40449381170245fcd9b70dd349d6751149077cda7483fe91d68
@@ -192,7 +192,8 @@ class Document < Kithe::Work
192
192
  end
193
193
 
194
194
  def current_version
195
- versions.last.index
195
+ # Will return 0 if no PaperTrail version exists yet
196
+ versions&.last&.index || 0
196
197
  end
197
198
 
198
199
  # Institutional Access URLs
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GeoblacklightAdmin
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geoblacklight_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Larson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-18 00:00:00.000000000 Z
11
+ date: 2023-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_storage_validations