active-fedora 6.7.5 → 6.7.6

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: f6322cf9f4daeb23683ee292cea4da86112e62e2
4
- data.tar.gz: 73aa61976f99ac7ead3ab4fab172f807578a9793
3
+ metadata.gz: 3778b0c24c6786bf81ce5888b8cfed8b4691fdbe
4
+ data.tar.gz: 01c5110ad3702e909406c7da7b907ee3abc44b71
5
5
  SHA512:
6
- metadata.gz: 627b3960e120f319473ba8dfdf293e8139c6c26a802b4cbd55f0b39cddb9d3dd36d515317d1f49e357622d769d8b6de1ca8aff53c327884d3307d7786916ecfd
7
- data.tar.gz: 0574b6c51ad45a264a93b003c459c64731577109f8091d47e33649b3ff67eb2966ee02ff6534fb4d25d991c95a9f72bc1d6a1a205dc81aba3395bed4c67a2aeb
6
+ metadata.gz: 0812fd6d2e69db45d473a6a39aa39de95036e046daf428ec7240acd99747d5e4ef0441a3c7d574f5f341bacf36fba16f8d5257061a91af21f958667ece086212
7
+ data.tar.gz: ece21116754ad0580232c7f4cff586191ebd384541e93d4699291d5cc1d9fed8170f8873255d5ec3fded3241f37a646d60c013f701e8646a596c416b0174146a
@@ -1,8 +1,11 @@
1
1
  module ActiveFedora
2
2
  class SolrDigitalObject
3
+
3
4
  include DigitalObject::DatastreamBootstrap
5
+
4
6
  attr_reader :pid, :label, :state, :ownerId, :profile, :datastreams, :solr_doc
5
7
  attr_accessor :original_class
8
+
6
9
  def initialize(solr_doc, profile_hash, klass=ActiveFedora::Base)
7
10
  @solr_doc = solr_doc
8
11
  @pid = solr_doc[SOLR_DOCUMENT_ID]
@@ -44,6 +47,7 @@ module ActiveFedora
44
47
  def new?
45
48
  false
46
49
  end
50
+ alias_method :new_record?, :new?
47
51
 
48
52
  def uri
49
53
  "solr:#{pid}"
@@ -1,3 +1,3 @@
1
1
  module ActiveFedora
2
- VERSION = "6.7.5"
2
+ VERSION = "6.7.6"
3
3
  end
@@ -1,6 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe ActiveFedora::SolrDigitalObject do
4
+
4
5
  describe "repository" do
5
6
  subject { ActiveFedora::SolrDigitalObject.new({},{'datastreams'=>{}}) }
6
7
  describe "when not finished" do
@@ -51,4 +52,11 @@ describe ActiveFedora::SolrDigitalObject do
51
52
  end
52
53
 
53
54
 
55
+ describe "new_record?" do
56
+ subject { ActiveFedora::SolrDigitalObject.new({},{'datastreams'=>{}}) }
57
+ it "should respond to :new_record? and return false" do
58
+ subject.new_record?.should be_false
59
+ end
60
+ end
61
+
54
62
  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: 6.7.5
4
+ version: 6.7.6
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-17 00:00:00.000000000 Z
13
+ date: 2014-01-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rsolr
@@ -556,7 +556,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
556
556
  version: '0'
557
557
  requirements: []
558
558
  rubyforge_project:
559
- rubygems_version: 2.1.11
559
+ rubygems_version: 2.0.6
560
560
  signing_key:
561
561
  specification_version: 4
562
562
  summary: A convenience libary for manipulating documents in the Fedora Repository.