ddr-core 1.1.1 → 1.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88184d5957fb569466c8769d0cce46369c6c41a2dae430c526001740ed1bc830
4
- data.tar.gz: e8afa358d6fc130b20c3e834307cca249f7522e53730643a365ebfe36b92c093
3
+ metadata.gz: f6a1052e5e437237006cf1412ac6505d0d21daee7ca0bdaa0755d985c91eee87
4
+ data.tar.gz: 4722ee74f016efbca90f93a6bdff963db1a964cd180dbbc55e0febf8c861c67c
5
5
  SHA512:
6
- metadata.gz: 18f0a25afb0fce38a6fc7bcc4d1b34cd285b8d7e9b67b5d1d1f5b2d0a8a23835967b44e9be6e9e7b04b875738e70cf872a72e9a9d623147cce2f71676790d623
7
- data.tar.gz: bb9e4403c36dda3116aa493c7d0b44d9bbbf687ad058395f097bd46e2438c11b833396ebd1b171b726e33d8b5848c90b6b20d475db514b940c43060dc0180802
6
+ metadata.gz: d4352b429f24959b5c52388ba562724ff782c4a2e877c565ca0716c450965bbbbfde3d1c558ae2179064ec8963a4eb1f0fb6664656c7c1535cf1dc7acb02189f
7
+ data.tar.gz: 7bf7a08bad7f10c1ff6049130e42d8c8584f925f845d83222aa74286b031dca008ee61a440d2989e4734e4e5539e14b2e252d679a0ff75bd0cbdbad6bf6a06f5
@@ -1,6 +1,8 @@
1
1
  module Ddr
2
2
  class Resource < Valkyrie::Resource
3
3
 
4
+ enable_optimistic_locking
5
+
4
6
  include Describable
5
7
  include Governable
6
8
  include HasAdminMetadata
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+ class AddDefaultToLockVersion < ActiveRecord::Migration[5.2]
3
+ def change
4
+ change_column_default :orm_resources, :lock_version, from: nil, to: 0
5
+ end
6
+ end
@@ -1,5 +1,5 @@
1
1
  module Ddr
2
2
  module Core
3
- VERSION = '1.1.1'
3
+ VERSION = '1.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddr-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Coble
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-01-09 00:00:00.000000000 Z
14
+ date: 2020-02-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activeresource
@@ -342,6 +342,7 @@ files:
342
342
  - config/routes.rb
343
343
  - db/migrate/20141104181418_create_users.rb
344
344
  - db/migrate/20141107124012_add_columns_to_user.rb
345
+ - db/migrate/20200207194453_add_default_to_lock_version.rb
345
346
  - lib/ddr-core.rb
346
347
  - lib/ddr/auth.rb
347
348
  - lib/ddr/auth/ability.rb