active-fedora 10.2.1 → 10.3.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_fedora/core.rb +7 -7
- data/lib/active_fedora/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c2ca88ff43a634f8f901f9903d0121e1401dddb
|
4
|
+
data.tar.gz: 4511d14bc32be2d2ca0b66ec375fbfe924a83628
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df9190770e94bc983a500af74ad24860fee001d0bbbced86605d95bbf6d5a34199fa63ec7fa16947400f4b0509444fac8553b71f7bc9c8602bc422e67c2d23e1
|
7
|
+
data.tar.gz: 5a86bba90263e21c7d1fc30f8a9951939576d97488ae9e1f564aadf6fd279a47a38b2b3256a8c8cfdd95e2f957a95c145c3a27fd4a430f5bc669041f3c611295
|
data/lib/active_fedora/core.rb
CHANGED
@@ -26,7 +26,7 @@ module ActiveFedora
|
|
26
26
|
def initialize(attributes_or_id = nil, &_block)
|
27
27
|
init_internals
|
28
28
|
attributes = initialize_attributes(attributes_or_id)
|
29
|
-
@ldp_source = build_ldp_resource(attributes.delete(
|
29
|
+
@ldp_source = build_ldp_resource(attributes.delete('id'.freeze))
|
30
30
|
raise IllegalOperation, "Attempting to recreate existing ldp_source: `#{ldp_source.subject}'" unless ldp_source.new?
|
31
31
|
assert_content_model
|
32
32
|
load_attached_files
|
@@ -150,15 +150,15 @@ module ActiveFedora
|
|
150
150
|
case attributes_or_id
|
151
151
|
when String
|
152
152
|
Deprecation.warn(Core, "calling #{self.class}.new with a string is deprecated. Pass a hash with id instead.")
|
153
|
-
|
154
|
-
when Hash
|
155
|
-
attributes = attributes_or_id.with_indifferent_access
|
153
|
+
{ 'id': attributes_or_id }
|
156
154
|
when NilClass
|
157
|
-
|
155
|
+
{}
|
158
156
|
else
|
159
|
-
|
157
|
+
unless attributes_or_id.respond_to?(:stringify_keys)
|
158
|
+
raise ArgumentError, "#{attributes_or_id.class} is not acceptable"
|
159
|
+
end
|
160
|
+
attributes_or_id.stringify_keys
|
160
161
|
end
|
161
|
-
attributes
|
162
162
|
end
|
163
163
|
end
|
164
164
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active-fedora
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.
|
4
|
+
version: 10.3.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Zumwalt
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-08-
|
13
|
+
date: 2016-08-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rsolr
|
@@ -743,9 +743,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
743
743
|
version: '2.0'
|
744
744
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
745
745
|
requirements:
|
746
|
-
- - "
|
746
|
+
- - ">"
|
747
747
|
- !ruby/object:Gem::Version
|
748
|
-
version:
|
748
|
+
version: 1.3.1
|
749
749
|
requirements: []
|
750
750
|
rubyforge_project:
|
751
751
|
rubygems_version: 2.5.1
|