curation_concerns 1.7.5 → 1.7.6

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
  SHA1:
3
- metadata.gz: 7cbc4d586d8a888783288ea71618e421913333e2
4
- data.tar.gz: 4ed7bc09f54922ac00db7d241938468995f898a1
3
+ metadata.gz: 6b30d38b53d476bbfc1cea73a8c9133349ceed15
4
+ data.tar.gz: 92b2af16e5151eac8855e9964574630497748b06
5
5
  SHA512:
6
- metadata.gz: 8c4172a085ae5540b7b771e33fb1633939ed428711a0512303ebdf4936d46b26c6dd15ed8bc666260a604078d56c875a9751740fd62173a938766a8550275637
7
- data.tar.gz: 7260137bd947008030ac1c4786c623f31398903e8cfb7b0f811b3c12ea8a0b4d7018113ddb43656f4cd4d4ea72dcb30ab3ee798e34757dcefdd318c9573ccecd
6
+ metadata.gz: 65d9dc94b9086238326a41247bb27f20dcb5111efe60b2aeb2a57b23dcb4b0a5fff9e10c923dccc6611679a043231b2c14912c7b9b2ce720372b643535033051
7
+ data.tar.gz: 601036a1bd6a491062a0e8cfde977d46c08f915248d8811bf7555a9122bfcfd49779a045b52751732c7a30092107a338298b82c2fa2ce9538d36cce3b95e94d3
@@ -72,6 +72,7 @@ module CurationConcerns
72
72
  workflow = Sipity::Workflow.find_or_initialize_by(name: configuration.fetch(:name)) do |wf|
73
73
  wf.label = configuration.fetch(:label, nil)
74
74
  wf.description = configuration.fetch(:description, nil)
75
+ wf.allows_access_grant = configuration.fetch(:allows_access_grant, nil)
75
76
  wf.save!
76
77
  end
77
78
 
@@ -34,6 +34,7 @@ module CurationConcerns
34
34
  required(:name).filled(:str?) # Sipity::Workflow#name
35
35
  optional(:label).filled(:str?) # Sipity::Workflow#label
36
36
  optional(:description).filled(:str?) # Sipity::Workflow#description
37
+ optional(:allows_access_grant).filled(:bool?) # Sipity::Workflow#allows_access_grant?
37
38
  required(:actions).each do
38
39
  required(:name).filled(:str?) # Sipity::WorkflowAction#name
39
40
  required(:from_states).each do
@@ -0,0 +1,5 @@
1
+ class AddAllowsAccessGrantToWorkflow < ActiveRecord::Migration
2
+ def change
3
+ add_column :sipity_workflows, :allows_access_grant, :boolean
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module CurationConcerns
2
- VERSION = '1.7.5'.freeze
2
+ VERSION = '1.7.6'.freeze
3
3
  end
@@ -10,6 +10,7 @@ RSpec.describe CurationConcerns::Workflow::WorkflowImporter do
10
10
  "name": "ulra_submission",
11
11
  "label": "This is the label",
12
12
  "description": "This description could get really long",
13
+ "allows_access_grant": true,
13
14
  "actions": [{
14
15
  "name": "approve",
15
16
  "transition_to": "reviewed",
@@ -42,8 +43,10 @@ RSpec.describe CurationConcerns::Workflow::WorkflowImporter do
42
43
  result = described_class.generate_from_json_file(path: path)
43
44
  end.to change { Sipity::Workflow.count }.by(1)
44
45
  expect(result).to match_array(kind_of(Sipity::Workflow))
45
- expect(result.first.label).to eq "This is the label"
46
- expect(result.first.description).to eq "This description could get really long"
46
+ first_workflow = result.first
47
+ expect(first_workflow.label).to eq "This is the label"
48
+ expect(first_workflow.description).to eq "This description could get really long"
49
+ expect(first_workflow.allows_access_grant?).to be true
47
50
  end
48
51
  end
49
52
  end
@@ -8,6 +8,7 @@ module CurationConcerns
8
8
  workflows: [
9
9
  {
10
10
  name: "valid",
11
+ allows_access_grant: true,
11
12
  actions: [
12
13
  {
13
14
  name: "finalize_digitization",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: curation_concerns
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.5
4
+ version: 1.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Zumwalt
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-03-02 00:00:00.000000000 Z
13
+ date: 2017-03-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hydra-head
@@ -1234,6 +1234,7 @@ files:
1234
1234
  - db/migrate/20160427155928_create_operations.rb
1235
1235
  - db/migrate/20160919151348_create_sipity.rb
1236
1236
  - db/migrate/20161012182404_create_sipity_workflow_methods.rb
1237
+ - db/migrate/20170308175556_add_allows_access_grant_to_workflow.rb
1237
1238
  - lib/curation_concerns.rb
1238
1239
  - lib/curation_concerns/callbacks.rb
1239
1240
  - lib/curation_concerns/callbacks/registry.rb
@@ -1601,7 +1602,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1601
1602
  version: '0'
1602
1603
  requirements: []
1603
1604
  rubyforge_project:
1604
- rubygems_version: 2.5.1
1605
+ rubygems_version: 2.6.10
1605
1606
  signing_key:
1606
1607
  specification_version: 4
1607
1608
  summary: A Rails Engine that allows an application to CRUD CurationConcern objects