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 +4 -4
- data/app/services/curation_concerns/workflow/workflow_importer.rb +1 -0
- data/app/services/curation_concerns/workflow/workflow_schema.rb +1 -0
- data/db/migrate/20170308175556_add_allows_access_grant_to_workflow.rb +5 -0
- data/lib/curation_concerns/version.rb +1 -1
- data/spec/services/curation_concerns/workflow/workflow_importer_spec.rb +5 -2
- data/spec/services/curation_concerns/workflow/workflow_schema_spec.rb +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b30d38b53d476bbfc1cea73a8c9133349ceed15
|
4
|
+
data.tar.gz: 92b2af16e5151eac8855e9964574630497748b06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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
|
-
|
46
|
-
expect(
|
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
|
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.
|
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-
|
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.
|
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
|