active-fedora 7.0.0.pre1 → 7.0.0.pre2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4016c59a3c3f1110b5cb6a9eb82dc1ecc374e09
|
4
|
+
data.tar.gz: 17257166e62dd7dbdefbcdf8acc0913497a25d4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc945c04a877bc385439846091a494cf098f229ee0a869106a8ad82d35975adec0eedb103e2a489f69c5b8b7cd03015f77525745279197856fafe37cfe9c193f
|
7
|
+
data.tar.gz: d7e48d90b96306a956bfac1731c6180d29b3e4cb0ff913ef86826fe150d97a4d42e207a5d0b08f5a5d9c60beb52e2d12baf858e7d3ea3bbe7546d02fd7c69c40
|
@@ -1,6 +1,8 @@
|
|
1
1
|
module ActiveFedora
|
2
2
|
class SolrDigitalObject
|
3
3
|
include DigitalObject::DatastreamBootstrap
|
4
|
+
extend Deprecation
|
5
|
+
self.deprecation_horizon = 'active-fedora version 8.0.0'
|
4
6
|
attr_reader :pid, :label, :state, :ownerId, :profile, :datastreams, :solr_doc
|
5
7
|
attr_accessor :original_class
|
6
8
|
def initialize(solr_doc, profile_hash, klass=ActiveFedora::Base)
|
@@ -55,9 +57,11 @@ module ActiveFedora
|
|
55
57
|
end
|
56
58
|
end
|
57
59
|
|
58
|
-
def
|
60
|
+
def new_record?
|
59
61
|
false
|
60
62
|
end
|
63
|
+
alias new? new_record?
|
64
|
+
deprecation_deprecate :new?
|
61
65
|
|
62
66
|
def uri
|
63
67
|
"solr:#{pid}"
|
@@ -32,6 +32,8 @@ describe ActiveFedora::SolrDigitalObject do
|
|
32
32
|
it "should create an xml datastream" do
|
33
33
|
subject.datastreams['properties'].should be_kind_of ActiveFedora::OmDatastream
|
34
34
|
end
|
35
|
+
|
36
|
+
its(:new_record?) { should be_false }
|
35
37
|
end
|
36
38
|
|
37
39
|
describe "with a ds spec that's not part of the solrized object" do
|
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: 7.0.0.
|
4
|
+
version: 7.0.0.pre2
|
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: 2014-01-
|
13
|
+
date: 2014-01-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rsolr
|