sufia 7.3.0 → 7.3.1

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
  SHA1:
3
- metadata.gz: 1796e607d146678e8569583b7ac12eb043543d6e
4
- data.tar.gz: '01839aa30ae6849f657879ab9fc31762b8e9f619'
3
+ metadata.gz: 298c33325819550fbfa3e889c6e41163ee7a4fe0
4
+ data.tar.gz: '09982515edc5ec5d96d3f34569558194e811a686'
5
5
  SHA512:
6
- metadata.gz: ecab36e574a7eebfeeb6b9590eafc351ca283a245f843842c898df8afa01b4ada033c5cdba77d8d96d9c58f01cafa87570cab22f8a6a0df759eeb6fc76b97247
7
- data.tar.gz: 72724cf04ec14999a11b496cc361bd50916f2c5ee6750019be25982772e06b87ba82808bf200a759f430564a7f8de74aeced9fd18b630604bad17c323d4cf33f
6
+ metadata.gz: e64c8bfe37576d3a419886aecde6e1005cd8e9f7646de0e4470618999a39b96158a9930e28e1f82e7d70330318b7929cfb2939960541ea5a7976444e16b34a27
7
+ data.tar.gz: 27759ddf67bccec0a0a676f0113e39c1636eec9fb4a2a63e1d2761c6548a74a5b6863e904a3c5ef1fdb829090ea2464eb4a1b06b4763b02338c434f56b69723a
data/README.md CHANGED
@@ -56,7 +56,7 @@ If you have questions or need help, please email [the Hydra community tech list]
56
56
  # Getting started
57
57
 
58
58
  This document contains instructions specific to setting up an app with __Sufia
59
- v7.3.0__. If you are looking for instructions on installing a different
59
+ v7.3.1__. If you are looking for instructions on installing a different
60
60
  version, be sure to select the appropriate branch or tag from the drop-down
61
61
  menu above.
62
62
 
@@ -95,7 +95,7 @@ module Sufia
95
95
  end
96
96
 
97
97
  def create_admin_set
98
- AdminSetCreateService.new(@admin_set, current_user).create
98
+ AdminSetCreateService.new(@admin_set, current_user, params[:admin_set][:workflow_name]).create
99
99
  end
100
100
 
101
101
  def setup_form
@@ -19,7 +19,7 @@ module Sufia
19
19
  def initialize(admin_set, creating_user, workflow_name)
20
20
  @admin_set = admin_set
21
21
  @creating_user = creating_user
22
- @workflow_name = workflow_name
22
+ @workflow_name = workflow_name || AdminSet::DEFAULT_WORKFLOW_NAME
23
23
  end
24
24
 
25
25
  attr_reader :creating_user, :admin_set, :workflow_name
@@ -1,3 +1,3 @@
1
1
  module Sufia
2
- VERSION = '7.3.0'.freeze
2
+ VERSION = '7.3.1'.freeze
3
3
  end
@@ -58,7 +58,7 @@ describe Sufia::Admin::AdminSetsController do
58
58
  let(:service) { instance_double(Sufia::AdminSetCreateService) }
59
59
  before do
60
60
  allow(Sufia::AdminSetCreateService).to receive(:new)
61
- .with(AdminSet, user)
61
+ .with(an_instance_of(AdminSet), user, anything)
62
62
  .and_return(service)
63
63
  end
64
64
 
@@ -1,14 +1,17 @@
1
1
  require 'rake'
2
2
 
3
3
  describe "Rake tasks" do
4
+ before do
5
+ load_rake_environment [
6
+ File.expand_path("../../../tasks/sufia_user.rake", __FILE__),
7
+ File.expand_path("../../../lib/tasks/default_admin_set.rake", __FILE__)
8
+ ]
9
+ end
10
+
4
11
  describe "sufia:user:list_emails" do
5
12
  let!(:user1) { FactoryGirl.create(:user) }
6
13
  let!(:user2) { FactoryGirl.create(:user) }
7
14
 
8
- before do
9
- load_rake_environment [File.expand_path("../../../tasks/sufia_user.rake", __FILE__)]
10
- end
11
-
12
15
  it "creates a file" do
13
16
  run_task "sufia:user:list_emails"
14
17
  expect(File.exist?("user_emails.txt")).to be_truthy
@@ -24,4 +27,14 @@ describe "Rake tasks" do
24
27
  File.delete("abc123.txt")
25
28
  end
26
29
  end
30
+
31
+ describe 'sufia:default_admin_set:create' do
32
+ before do
33
+ AdminSet.find(AdminSet::DEFAULT_ID).eradicate if AdminSet.exists?(AdminSet::DEFAULT_ID)
34
+ end
35
+
36
+ it 'creates the default AdminSet' do
37
+ expect { run_task 'sufia:default_admin_set:create' }.to change { AdminSet.count }.by(1)
38
+ end
39
+ end
27
40
  end
@@ -1,4 +1,4 @@
1
- gem 'sufia', '7.3.0'
1
+ gem 'sufia', '7.3.1'
2
2
 
3
3
  run 'bundle install'
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sufia
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.3.0
4
+ version: 7.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2017-03-21 00:00:00.000000000 Z
15
+ date: 2017-04-26 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: hydra-works