active-fedora 4.0.0.rc2 → 4.0.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active-fedora (4.0.0.rc2)
4
+ active-fedora (4.0.0.rc3)
5
5
  activeresource (>= 3.0.0)
6
6
  activesupport (>= 3.0.0)
7
7
  equivalent-xml
data/History.txt CHANGED
@@ -1,4 +1,4 @@
1
- 4.0.0.rc2
1
+ 4.0.0.rc3
2
2
  Removed deprecations
3
3
  * allowing :fedora level in fedora.yml
4
4
  * automatic includes of Relationships and FileMethods is removed
@@ -9,6 +9,7 @@ RDF datastreams
9
9
  Replaced solr-ruby with rsolr. Note: remove any calls to .hits
10
10
  load_instance is now deprecated, replaced with find
11
11
  Find alwasy casts to the appropriate object.
12
+ Run the :environment task in the fixture loading rake tasks
12
13
 
13
14
  3.3.2
14
15
  HYDRA-745 No need to require :url be present on external datastreams
@@ -1,3 +1,3 @@
1
1
  module ActiveFedora
2
- VERSION = "4.0.0.rc2"
2
+ VERSION = "4.0.0.rc3"
3
3
  end
@@ -6,7 +6,7 @@ namespace :repo do
6
6
  task :refresh => [:delete,:load]
7
7
 
8
8
  desc "Delete the object identified by pid. Example: rake repo:delete pid=demo:12"
9
- task :delete => :init do
9
+ task :delete => :environment do
10
10
  if ENV["pid"].nil?
11
11
  puts "You must specify a valid pid. Example: rake repo:delete pid=demo:12"
12
12
  else
@@ -23,7 +23,7 @@ namespace :repo do
23
23
  end
24
24
 
25
25
  desc "Delete a range of objects in a given namespace. ie 'rake repo:delete_range namespace=demo start=22 stop=50' will delete demo:22 through demo:50"
26
- task :delete_range => :init do |t, args|
26
+ task :delete_range => :environment do |t, args|
27
27
  namespace = ENV["namespace"]
28
28
  start_point = ENV["start"].to_i
29
29
  stop_point = ENV["stop"].to_i
@@ -45,7 +45,7 @@ namespace :repo do
45
45
  end
46
46
 
47
47
  desc "Export the object identified by pid into spec/fixtures. Example:rake repo:export pid=demo:12"
48
- task :export => :init do
48
+ task :export => :environment do
49
49
  if ENV["pid"].nil?
50
50
  puts "You must specify a valid pid. Example: rake repo:export pid=demo:12"
51
51
  else
@@ -62,7 +62,7 @@ namespace :repo do
62
62
  end
63
63
 
64
64
  desc "Load the object located at the provided path or identified by pid. Example: rake repo:load path=spec/fixtures/demo_12.foxml.xml"
65
- task :load => :init do
65
+ task :load => :environment do
66
66
  if !ENV["path"].nil? and File.file?(ENV["path"])
67
67
  filename = ENV["path"]
68
68
  elsif !ENV["pid"].nil?
@@ -93,14 +93,8 @@ namespace :repo do
93
93
 
94
94
  end
95
95
 
96
-
97
- desc "Init ActiveFedora configuration"
98
- task :init do
99
- if !ENV["environment"].nil?
100
- RAILS_ENV = ENV["environment"]
101
- end
102
- # If Fedora Repository connection is not already initialized, initialize it using ActiveFedora defaults
103
- ActiveFedora.init unless Thread.current[:repo]
96
+ task :environment do
97
+ # This task is overridden (chained) in hydra-head.
104
98
  end
105
99
 
106
100
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active-fedora
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15424145
4
+ hash: 15424147
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 4
8
8
  - 0
9
9
  - 0
10
10
  - rc
11
- - 2
12
- version: 4.0.0.rc2
11
+ - 3
12
+ version: 4.0.0.rc3
13
13
  platform: ruby
14
14
  authors:
15
15
  - Matt Zumwalt
@@ -19,7 +19,7 @@ autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
21
 
22
- date: 2012-03-06 00:00:00 Z
22
+ date: 2012-03-07 00:00:00 Z
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
25
25
  prerelease: false