active-fedora 10.2.1 → 10.3.0.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0865a25cb33a8637e784833e483cafe3a140abe
4
- data.tar.gz: 4f6be2a95c6c218e7fdc9f16b2900d25fe70e0fc
3
+ metadata.gz: 5c2ca88ff43a634f8f901f9903d0121e1401dddb
4
+ data.tar.gz: 4511d14bc32be2d2ca0b66ec375fbfe924a83628
5
5
  SHA512:
6
- metadata.gz: 454d2287261b2ed2a079ac1cd00fda8a3819d14144e098bd7ca040d28ea0be75406b1776387caee11905d5baf8f3e44b37ec55adcfa8762e95f0686ff4f75155
7
- data.tar.gz: 1ad38bebb3535219889f3fad29f375ccbbfe29ad746408d0500c12d8d89d0ac6b73bf98eaff5c150419271bf2f6b49bc14959faa2a5958d14c15e7898043cff0
6
+ metadata.gz: df9190770e94bc983a500af74ad24860fee001d0bbbced86605d95bbf6d5a34199fa63ec7fa16947400f4b0509444fac8553b71f7bc9c8602bc422e67c2d23e1
7
+ data.tar.gz: 5a86bba90263e21c7d1fc30f8a9951939576d97488ae9e1f564aadf6fd279a47a38b2b3256a8c8cfdd95e2f957a95c145c3a27fd4a430f5bc669041f3c611295
@@ -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(:id))
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
- attributes = { id: attributes_or_id }.with_indifferent_access
154
- when Hash
155
- attributes = attributes_or_id.with_indifferent_access
153
+ { 'id': attributes_or_id }
156
154
  when NilClass
157
- attributes = {}.with_indifferent_access
155
+ {}
158
156
  else
159
- raise ArgumentError, "#{attributes_or_id.class} is not acceptable"
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
@@ -1,3 +1,3 @@
1
1
  module ActiveFedora
2
- VERSION = "10.2.1".freeze
2
+ VERSION = "10.3.0.rc1".freeze
3
3
  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.2.1
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-12 00:00:00.000000000 Z
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: '0'
748
+ version: 1.3.1
749
749
  requirements: []
750
750
  rubyforge_project:
751
751
  rubygems_version: 2.5.1