ddr-core 1.13.0 → 1.13.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
  SHA256:
3
- metadata.gz: 7f1841e5ee3adc06edb3fd81c96df0e290ee3745950a87f444f068dc5c48aff4
4
- data.tar.gz: 2f8eae3c291037d51c8053328aa860518252bbff522adc75e928149c971ff585
3
+ metadata.gz: 39dc613296f591f66404fba712d9c18d4174e8162e671c80bbf1293cb5e58290
4
+ data.tar.gz: aa7e465afc21242850f7a581c8878a2640d4a0c23551b3d890ee38279a365ba9
5
5
  SHA512:
6
- metadata.gz: b595d3c404aae7945c7b7cca2f3bf3a5abfecd0c4bb764d6f80aee27a16a0fad86329e653a9479c8dbd41c58f5e1881b35d9b0a71b351835bb1a4b3c8a6d70fd
7
- data.tar.gz: e2a64a032a93c1730db2a5bcbce45bfb970f008d9d74b4ee26e89e5d5c456316cc042b88dd5781f54fc26e46ca49a383b75a5c0c9cb6990766e9235cca4e9727
6
+ metadata.gz: 7bed1372ce7cc6959d5647a3ca7b36114ac26deb4a62b9d9467431b317cac3fe069167c7bfb39e299ede62e51172bf2616d48b2ab7cbd201871bc615d228b428
7
+ data.tar.gz: 5aa07816b6f3e8306d30627725a49caf78c9a178c68a1244ee2a487f93344640ec7e21ecd149e1ce53264d2b765885cee291c491e590a8452ccf9353b351b2f5
@@ -9,6 +9,10 @@ module Ddr
9
9
  @keystore ||= Hash[config.map { |entry| [entry['code'], new(entry).freeze] }].freeze
10
10
  end
11
11
 
12
+ def self.all
13
+ keystore
14
+ end
15
+
12
16
  def self.call(obj)
13
17
  find_by_code(obj.admin_set)
14
18
  end
@@ -9,6 +9,10 @@ module Ddr
9
9
  @keystore ||= Hash[config.map { |entry| [entry['slug'], new(entry).freeze] }].freeze
10
10
  end
11
11
 
12
+ def self.all
13
+ keystore
14
+ end
15
+
12
16
  def self.call(slug)
13
17
  keystore.fetch(slug)
14
18
 
@@ -9,6 +9,10 @@ module Ddr
9
9
  @keystore ||= Hash[config.map { |entry| [entry['code'], new(entry).freeze] }].freeze
10
10
  end
11
11
 
12
+ def self.all
13
+ keystore
14
+ end
15
+
12
16
  def self.call(obj)
13
17
  obj.language.map { |lang| find_by_code(lang) }
14
18
  end
@@ -9,6 +9,10 @@ module Ddr
9
9
  @keystore ||= Hash[config.map { |entry| [entry['url'], new(entry).freeze] }].freeze
10
10
  end
11
11
 
12
+ def self.all
13
+ keystore
14
+ end
15
+
12
16
  def self.call(obj)
13
17
  return if obj.rights.empty?
14
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddr-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.0
4
+ version: 1.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Coble
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2022-04-28 00:00:00.000000000 Z
14
+ date: 2022-05-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activeresource
@@ -451,7 +451,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
451
451
  - !ruby/object:Gem::Version
452
452
  version: '0'
453
453
  requirements: []
454
- rubygems_version: 3.3.12
454
+ rubygems_version: 3.3.13
455
455
  signing_key:
456
456
  specification_version: 4
457
457
  summary: Models used in the Duke Digital Repository