ddr-models 2.1.2 → 2.1.3

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: 3761ac724f913ad34df9f13ed1088923c097cdcc
4
- data.tar.gz: a232783eb354a12521c3d3ef4f69d8bd662b981e
3
+ metadata.gz: 1430e93b8963381b076346eff749cbed263f9f46
4
+ data.tar.gz: 91512912b2cad1883784935c071de7623e7decf0
5
5
  SHA512:
6
- metadata.gz: 89433dd7ecd0898a9239c9988467350c0de39643aff0eae62bbc4e6271c8104c3f95ed06e671892d38193079140a8514c9cab407d86d1b38836618e1fbbe5c13
7
- data.tar.gz: fd013fdaf54d63039e5c668fffdbc37d25e2bed2c4231f4d3c51f1916b4795da79c1800ae55db93ee924c383a09f246e3d507d2c8f7155507fdcd7f217814da9
6
+ metadata.gz: f52379fe84b0dd8f95b369a679947ee6e5ea77352a6910cb3703d06c79cb8d047d74d35df0648efb61787d4adc22598251cf1e07d71e195e377e55ee33be3692
7
+ data.tar.gz: 4a7d41733f36e0d9a7945ed61c8670bec811aa3f58ad7bd93aaabd027c66bbf8b1722188f914fd1e8ae81df2b5b5696ad2f14e37b88bba3f7d75f9171ee69e11
data/lib/ddr/auth.rb CHANGED
@@ -102,8 +102,11 @@ module Ddr
102
102
  "::Ability"
103
103
  end
104
104
 
105
- mattr_accessor :repository_group_filter do
106
- ENV["REPOSITORY_GROUP_FILTER"]
105
+ def self.repository_group_filter
106
+ if filter = ENV["REPOSITORY_GROUP_FILTER"]
107
+ return filter
108
+ end
109
+ raise Ddr::Models::Error, "The \"REPOSITORY_GROUP_FILTER\" environment variable is not set."
107
110
  end
108
111
 
109
112
  end
@@ -1,5 +1,5 @@
1
1
  module Ddr
2
2
  module Models
3
- VERSION = "2.1.2"
3
+ VERSION = "2.1.3"
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.1.2
4
+ version: 2.1.3
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: 2015-10-08 00:00:00.000000000 Z
12
+ date: 2015-10-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails