active-fedora 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,9 +2,18 @@ require 'rubygems'
2
2
  gem 'ruby-fedora'
3
3
  gem 'solr-ruby'
4
4
  module ActiveFedora #:nodoc:
5
- VERSION='1.0.1'
5
+ VERSION='1.0.2'
6
6
  end
7
-
8
-
9
-
10
- Dir[File.join(File.dirname(__FILE__), 'lib/active_fedora')+'/**/*.rb'].each{|x| "requiring #{x}";require x}
7
+ require 'ruby-fedora'
8
+ require 'active_fedora/base.rb'
9
+ require 'active_fedora/content_model.rb'
10
+ require 'active_fedora/datastream.rb'
11
+ require 'active_fedora/fedora_object.rb'
12
+ require 'active_fedora/metadata_datastream.rb'
13
+ require 'active_fedora/model.rb'
14
+ require 'active_fedora/property.rb'
15
+ require 'active_fedora/qualified_dublin_core_datastream.rb'
16
+ require 'active_fedora/relationship.rb'
17
+ require 'active_fedora/rels_ext_datastream.rb'
18
+ require 'active_fedora/semantic_node.rb'
19
+ require 'active_fedora/solr_service.rb'
@@ -287,6 +287,7 @@ module ActiveFedora
287
287
  def to_solr(solr_doc = Solr::Document.new)
288
288
  solr_doc << {:id => pid, :system_create_date => self.create_date, :system_modified_date => self.modified_date, :active_fedora_model_field => self.class.inspect}
289
289
  datastreams.each_value do |ds|
290
+ puts "updating solr for ds #{ds}" if ds.kind_of?(ActiveFedora::Datastream)
290
291
  solr_doc = ds.to_solr(solr_doc) if ds.kind_of?(ActiveFedora::MetadataDatastream) || ds.kind_of?(ActiveFedora::RelsExtDatastream)
291
292
  end
292
293
  return solr_doc
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: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - MediaShelf Inc.
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-12 00:00:00 -06:00
12
+ date: 2009-02-26 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency