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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2bdfa295f55a450caed436ffff2d8b9a6986a1e5
4
- data.tar.gz: c3b3f15e4e01c2fe25f22782333a0fde3ec6670a
2
+ SHA256:
3
+ metadata.gz: bda77d7a56d55e5862b7b2b554fbd40dae2b10cb5a276493a019bd8b7deacc5a
4
+ data.tar.gz: a399f4b18ba8f4076ab6e564ef3b1c5833114ae04d18d8e191c106992f270f1a
5
5
  SHA512:
6
- metadata.gz: 14554e9715fc52dbab93da0fccc5f37d946254d4a1fad6a15b75cb459d6e1834b4c5b3881032d15f482245b489dd61e78e01747b74360066a83dc42e2d5702d2
7
- data.tar.gz: d5b9aea4fecdf6b30bb340397dcf24ae38fca2b8da316dafa461a7349392003d1d8c35f7da8905a1da2900446bb09c6e0f746155fc86a05e87033b23f52ed3de
6
+ metadata.gz: 969cbc605de0a00b10890d4fb8d232f12784b216cca18f512a3fc0fc23c15d98426f80eb10e7ae414e3a0965d86307ca1d9944e17b7b3abf746b066e6f8aa78f
7
+ data.tar.gz: 96989a1b5710f1265f6826477879b75a96e2ffcf700bf5676ca3bd0039c301418ec704951ab9172da3d8d84229d5542accc6df7daaf95009dd3f3faade2c929c
@@ -1,3 +1,9 @@
1
+ # v1.2.0 2018-08-29
2
+
3
+ ## Changes since last release
4
+
5
+ * Added `optimistic_locking_enabled?` to ChangeSets.
6
+
1
7
  # v1.2.0.RC3 2018-08-15
2
8
 
3
9
  ## Changes since last release
@@ -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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Valkyrie
3
- VERSION = "1.2.0.rc3"
3
+ VERSION = "1.2.0"
4
4
  end
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.rc3
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-15 00:00:00.000000000 Z
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: 1.3.1
575
+ version: '0'
576
576
  requirements: []
577
577
  rubyforge_project:
578
- rubygems_version: 2.6.14
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