active-fedora 3.0.4 → 3.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/active_fedora.rb CHANGED
@@ -11,10 +11,6 @@ require 'active_fedora/solr_service.rb'
11
11
  require "solrizer"
12
12
 
13
13
  require 'ruby-fedora'
14
- # require 'active_fedora/fedora_object.rb'
15
- # require 'active_fedora/version.rb'
16
- #
17
- # require 'active_fedora/railtie' if defined?(Rails) && Rails.version >= "3.0"
18
14
 
19
15
  SOLR_DOCUMENT_ID = ActiveFedora::SolrService.id_field unless defined?(SOLR_DOCUMENT_ID)
20
16
  ENABLE_SOLR_UPDATES = true unless defined?(ENABLE_SOLR_UPDATES)
@@ -81,7 +77,6 @@ module ActiveFedora #:nodoc:
81
77
  # 2. If it does not find a solr.yml and the fedora.yml contains a solr url, it will raise an configuration error
82
78
  # 3. If it does not find a solr.yml and the fedora.yml does not contain a solr url, it will look in: +Rails.root+/config, +current working directory+/config, then the solr.yml shipped with gem
83
79
  def self.init( options={} )
84
- logger.level = Logger::ERROR if logger.respond_to? :level ###MediaShelf StubLogger doesn't have a level= method
85
80
  # Make config_options into a Hash if nil is passed in as the value
86
81
  options = {} if options.nil?
87
82
 
@@ -1,3 +1,3 @@
1
1
  module ActiveFedora
2
- VERSION = "3.0.4"
2
+ VERSION = "3.0.5"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -13,6 +13,7 @@ end
13
13
 
14
14
  ENV["RAILS_ENV"] ||= 'test'
15
15
  RAILS_ENV = ENV["RAILS_ENV"]
16
+ logger.level = Logger::ERROR if logger.respond_to? :level ###MediaShelf StubLogger doesn't have a level= method
16
17
 
17
18
  $:.unshift(File.dirname(__FILE__) + '/../lib')
18
19
  #Dir[File.join(File.dirname(__FILE__)+'/../lib/')+'**/*.rb'].each{|x| require x unless x.match(/railtie.rb$/)}
@@ -17,7 +17,6 @@ describe ActiveFedora::Associations::HasManyAssociation do
17
17
  end
18
18
 
19
19
  it "should build" do
20
- class Foo; end
21
20
  @owner = stub(:new_record? => false)
22
21
  @assoc = ActiveFedora::Associations::HasManyAssociation.new(@owner, @reflection)
23
22
  @assoc.should respond_to :build
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active-fedora
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 4
10
- version: 3.0.4
9
+ - 5
10
+ version: 3.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Zumwalt
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-09-16 00:00:00 -05:00
19
+ date: 2011-10-11 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency