ddr-models 2.6.0 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/lib/ddr/auth.rb +3 -4
- data/lib/ddr/models/engine.rb +5 -0
- data/lib/ddr/models/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce8b95c5d4ec97e4f794aae6ae19cabd8e79cbef
|
4
|
+
data.tar.gz: 213ae62bd68e0bf909b35fdb60effadf0bc62b97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ecd16a92a6b999aae3bee7b9543070f4c7d52ec57a68f2e733ed597cb7306c11023cf73b69041ba182aeeb34e66953f62c89b79134704ca70ff21931f06c7f7
|
7
|
+
data.tar.gz: c740abe440ecdabd541a8c442d5435b5e4d5d26e0cc8cfb00546f7fe45ad7745578d92a3f4c652838263ca704391a414abd85d9ba251bf1f5ac90356866f2dc6
|
data/Gemfile
CHANGED
data/lib/ddr/auth.rb
CHANGED
@@ -60,6 +60,9 @@ module Ddr
|
|
60
60
|
# Name of group whose members are authorized to create Collections
|
61
61
|
mattr_accessor :collection_creators_group
|
62
62
|
|
63
|
+
# Name of group whose members are authorized to act as a metadata manager
|
64
|
+
mattr_accessor :metadata_managers_group
|
65
|
+
|
63
66
|
# Group of which everyone (including anonymous users) is a member
|
64
67
|
def self.everyone_group
|
65
68
|
Deprecation.warn(Ddr::Auth,
|
@@ -105,10 +108,6 @@ module Ddr
|
|
105
108
|
"::Ability"
|
106
109
|
end
|
107
110
|
|
108
|
-
mattr_accessor :metadata_managers_group do
|
109
|
-
ENV["METADATA_MANAGERS_GROUP"]
|
110
|
-
end
|
111
|
-
|
112
111
|
def self.repository_group_filter
|
113
112
|
if filter = ENV["REPOSITORY_GROUP_FILTER"]
|
114
113
|
return filter
|
data/lib/ddr/models/engine.rb
CHANGED
@@ -72,6 +72,11 @@ module Ddr
|
|
72
72
|
Ddr::Auth.collection_creators_group = ENV["COLLECTION_CREATORS_GROUP"]
|
73
73
|
end
|
74
74
|
|
75
|
+
# Set metadata managers group
|
76
|
+
initializer "ddr_auth.metadata_managers_group" do
|
77
|
+
Ddr::Auth.metadata_managers_group = ENV["METADATA_MANAGERS_GROUP"]
|
78
|
+
end
|
79
|
+
|
75
80
|
initializer "ezid_client" do
|
76
81
|
unless Rails.env.production?
|
77
82
|
require "ezid/test_helper"
|
data/lib/ddr/models/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ddr-models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Coble
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-02-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|