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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06760eb61eaef52bf1d44e6910e4c6dfc7a72c41
4
- data.tar.gz: 19e9f9b63b9a3885a45648e4f8e1dfdaacd24385
3
+ metadata.gz: ce8b95c5d4ec97e4f794aae6ae19cabd8e79cbef
4
+ data.tar.gz: 213ae62bd68e0bf909b35fdb60effadf0bc62b97
5
5
  SHA512:
6
- metadata.gz: c46e730437e5fba57f3c0bfbad6355b181f5bb4d723cd304db47de082dd69723f4fb2b03f00cacdab58c87a3c540e07b94ffc6602e2a2f9f7794675589bfc0fb
7
- data.tar.gz: 9b34cfde3d00b291d7f0a7c314d8e873026e2d87093477833b38bbc15e991cf04ef8919a0c5b020ce89ecd8cf54083bfd8d69e7a97dc56b26850e505f5986cdc
6
+ metadata.gz: 5ecd16a92a6b999aae3bee7b9543070f4c7d52ec57a68f2e733ed597cb7306c11023cf73b69041ba182aeeb34e66953f62c89b79134704ca70ff21931f06c7f7
7
+ data.tar.gz: c740abe440ecdabd541a8c442d5435b5e4d5d26e0cc8cfb00546f7fe45ad7745578d92a3f4c652838263ca704391a414abd85d9ba251bf1f5ac90356866f2dc6
data/Gemfile CHANGED
@@ -6,3 +6,4 @@ gemspec
6
6
  gem "devise"
7
7
  gem "rails", "4.1.16"
8
8
  gem "blacklight", "5.19.2"
9
+ gem "rubydora", "~> 1.8"
@@ -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
@@ -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"
@@ -1,5 +1,5 @@
1
1
  module Ddr
2
2
  module Models
3
- VERSION = "2.6.0"
3
+ VERSION = "2.6.1"
4
4
  end
5
5
  end
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.0
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-01-12 00:00:00.000000000 Z
12
+ date: 2017-02-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails