valkyrie 1.2.0.rc3 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +6 -0
- data/lib/valkyrie/change_set.rb +1 -1
- data/lib/valkyrie/specs/shared_specs/change_set.rb +6 -0
- data/lib/valkyrie/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bda77d7a56d55e5862b7b2b554fbd40dae2b10cb5a276493a019bd8b7deacc5a
|
4
|
+
data.tar.gz: a399f4b18ba8f4076ab6e564ef3b1c5833114ae04d18d8e191c106992f270f1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 969cbc605de0a00b10890d4fb8d232f12784b216cca18f512a3fc0fc23c15d98426f80eb10e7ae414e3a0965d86307ca1d9944e17b7b3abf746b066e6f8aa78f
|
7
|
+
data.tar.gz: 96989a1b5710f1265f6826477879b75a96e2ffcf700bf5676ca3bd0039c301418ec704951ab9172da3d8d84229d5542accc6df7daaf95009dd3f3faade2c929c
|
data/CHANGELOG.md
CHANGED
data/lib/valkyrie/change_set.rb
CHANGED
@@ -70,7 +70,7 @@ module Valkyrie
|
|
70
70
|
|
71
71
|
delegate :attributes, to: :resource
|
72
72
|
|
73
|
-
delegate :internal_resource, :created_at, :updated_at, :model_name, to: :resource
|
73
|
+
delegate :internal_resource, :created_at, :updated_at, :model_name, :optimistic_locking_enabled?, to: :resource
|
74
74
|
|
75
75
|
# Prepopulates all fields with defaults defined in the changeset. This is an
|
76
76
|
# override of Reform::Form's method to allow for single-valued fields to
|
@@ -72,4 +72,10 @@ RSpec.shared_examples 'a Valkyrie::ChangeSet' do |*_flags|
|
|
72
72
|
expect(described_class).to respond_to(:validators_on)
|
73
73
|
end
|
74
74
|
end
|
75
|
+
|
76
|
+
describe "#optimistic_locking_enabled?" do
|
77
|
+
it "delegates down to the resource" do
|
78
|
+
expect(change_set.optimistic_locking_enabled?).to eq false
|
79
|
+
end
|
80
|
+
end
|
75
81
|
end
|
data/lib/valkyrie/version.rb
CHANGED
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.0
|
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-
|
11
|
+
date: 2018-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|
@@ -570,12 +570,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
570
570
|
version: '0'
|
571
571
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
572
572
|
requirements:
|
573
|
-
- - "
|
573
|
+
- - ">="
|
574
574
|
- !ruby/object:Gem::Version
|
575
|
-
version:
|
575
|
+
version: '0'
|
576
576
|
requirements: []
|
577
577
|
rubyforge_project:
|
578
|
-
rubygems_version: 2.
|
578
|
+
rubygems_version: 2.7.7
|
579
579
|
signing_key:
|
580
580
|
specification_version: 4
|
581
581
|
summary: An ORM using the Data Mapper pattern, specifically built to solve Digital
|