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 +1 -1
- data/History.txt +2 -1
- data/lib/active_fedora/version.rb +1 -1
- data/lib/tasks/active_fedora.rake +6 -12
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/History.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
4.0.0.
|
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
|
@@ -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 => :
|
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 => :
|
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 => :
|
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 => :
|
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
|
-
|
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:
|
4
|
+
hash: 15424147
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 4
|
8
8
|
- 0
|
9
9
|
- 0
|
10
10
|
- rc
|
11
|
-
-
|
12
|
-
version: 4.0.0.
|
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-
|
22
|
+
date: 2012-03-07 00:00:00 Z
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
25
25
|
prerelease: false
|