active-fedora 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +0 -4
- data/PostInstall.txt +1 -5
- data/lib/active_fedora.rb +1 -1
- data/lib/active_fedora/datastream.rb +8 -0
- metadata +2 -2
data/History.txt
CHANGED
data/PostInstall.txt
CHANGED
@@ -1,7 +1,3 @@
|
|
1
1
|
|
2
|
-
For more information on
|
3
|
-
|
4
|
-
NOTE: Change this information in PostInstall.txt
|
5
|
-
You can also delete it if you don't want it.
|
6
|
-
|
2
|
+
For more information on ActiveFedora, see http://bitbucket.org/mediashelf/active_fedora/
|
7
3
|
|
data/lib/active_fedora.rb
CHANGED
@@ -22,6 +22,14 @@ module ActiveFedora
|
|
22
22
|
def content=(content)
|
23
23
|
self.blob = content
|
24
24
|
end
|
25
|
+
|
26
|
+
def self.delete(parent_pid, dsid)
|
27
|
+
Fedora::Repository.instance.delete("%s/datastreams/%s"%[parent_pid, dsid])
|
28
|
+
end
|
29
|
+
|
30
|
+
def delete
|
31
|
+
self.class.delete(self.pid, self.dsid)
|
32
|
+
end
|
25
33
|
|
26
34
|
#get this datastreams identifier
|
27
35
|
def pid
|
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.
|
4
|
+
version: 1.0.1
|
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
|
+
date: 2009-02-12 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|