active-fedora 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +0,0 @@
1
- == 0.0.1 2009-02-04
2
-
3
- * 1 major enhancement:
4
- * Initial release
@@ -1,7 +1,3 @@
1
1
 
2
- For more information on afed-regem, see http://afed-regem.rubyforge.org
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
 
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  gem 'ruby-fedora'
3
3
  gem 'solr-ruby'
4
4
  module ActiveFedora #:nodoc:
5
- VERSION='1.0.0'
5
+ VERSION='1.0.1'
6
6
  end
7
7
 
8
8
 
@@ -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.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-04 00:00:00 -06:00
12
+ date: 2009-02-12 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency