active-fedora 4.6.0.rc4 → 5.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
- 4.6.0
1
+ 5.0.0
2
2
  Depend on solrizer 2.0.0 (for HYDRA-827 DO NOT index terms by default)
3
+ Lazily initialize solr, so that the message goes into the log, not the console
3
4
 
4
5
 
5
6
  4.5.1
@@ -7,11 +7,10 @@ module ActiveFedora
7
7
  include Solrizer::FieldNameMapper
8
8
  include Loggable
9
9
 
10
- load_mappings
11
-
12
10
  attr_reader :conn
13
11
 
14
12
  def self.register(host=nil, args={})
13
+ load_mappings
15
14
  Thread.current[:solr_service]=self.new(host, args)
16
15
  end
17
16
 
@@ -1,3 +1,3 @@
1
1
  module ActiveFedora
2
- VERSION = "4.6.0.rc4"
2
+ VERSION = "5.0.0.rc1"
3
3
  end
@@ -262,6 +262,10 @@ describe ActiveFedora::Base do
262
262
  it "habtm should not set foreign relationships if :inverse_of is not specified" do
263
263
  @c.relationships(:is_member_of_collection).should == []
264
264
  end
265
+ it "should load the collections" do
266
+ reloaded = Book.find(@book.pid)
267
+ reloaded.collections.should == [@c]
268
+ end
265
269
  end
266
270
  end
267
271
  end
@@ -81,6 +81,7 @@ describe ActiveFedora do
81
81
 
82
82
  File.stubs(:open).with(fedora_config_path).returns(fedora_config)
83
83
  File.stubs(:open).with(solr_config_path).returns(solr_config)
84
+ ActiveFedora::SolrService.stubs(:load_mappings) #For the solrizer solr_mappings.yml
84
85
 
85
86
 
86
87
  # ActiveSupport::Deprecation.expects(:warn).with("Configuring fedora with \":url\" without :user and :password is no longer supported.")
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: 4.6.0.rc4
4
+ version: 5.0.0.rc1
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-10-24 00:00:00.000000000 Z
14
+ date: 2012-10-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rsolr
@@ -542,7 +542,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
542
542
  version: '0'
543
543
  segments:
544
544
  - 0
545
- hash: -4003154784949769176
545
+ hash: -1658600528590412066
546
546
  required_rubygems_version: !ruby/object:Gem::Requirement
547
547
  none: false
548
548
  requirements: