active-fedora 7.0.0.pre1 → 7.0.0.pre2

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: c74522099ed634b608f204bad305da5f8d75cab4
4
- data.tar.gz: 2e8c34f85de2b43228be92b308bae48dc09743be
3
+ metadata.gz: c4016c59a3c3f1110b5cb6a9eb82dc1ecc374e09
4
+ data.tar.gz: 17257166e62dd7dbdefbcdf8acc0913497a25d4b
5
5
  SHA512:
6
- metadata.gz: e860a7bcd89e37df76919459ed159f618de89d3e86a34b8ec47fd05f3471a3be2a252b1639e41f4e8d8e1f799f833e8cb4b4d65351ef866bc461691e362bb619
7
- data.tar.gz: bf290c42f829451d2858e06c25a283bcbbf5d30b4ea942322ea3d0d984740eb38318d6e5262d5c36da38211386b04bc57bd9b41264c54c0dbd718d81780ff3eb
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 new?
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}"
@@ -1,3 +1,3 @@
1
1
  module ActiveFedora
2
- VERSION = "7.0.0.pre1"
2
+ VERSION = "7.0.0.pre2"
3
3
  end
@@ -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.pre1
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 00:00:00.000000000 Z
13
+ date: 2014-01-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rsolr