active-fedora 6.0.0.pre2 → 6.0.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  [submodule "jetty"]
2
2
  path = jetty
3
3
  url = git://github.com/projecthydra/hydra-jetty.git
4
- ignore = all
4
+ ignore = dirty
@@ -1,3 +1,6 @@
1
+ 5.5.1
2
+ #34 Allow passing RDF::URI to rdf_type
3
+
1
4
  5.5.0
2
5
  Added support for complex rdf structures.
3
6
  Changed RdfDatastream to_solr so that it uses the dsid as the solr prefix, not the datastream class name
@@ -188,7 +188,7 @@ module ActiveFedora
188
188
 
189
189
  def rdf_type(uri_or_string=nil)
190
190
  if uri_or_string
191
- uri = RDF::URI.new(uri_or_string) unless uri_or_string.kind_of? RDF::URI
191
+ uri = uri_or_string.kind_of?(RDF::URI) ? uri_or_string : RDF::URI.new(uri_or_string)
192
192
  self.config[:type] = {predicate: RDF.type}
193
193
  @rdf_type = uri
194
194
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveFedora
2
- VERSION = "6.0.0.pre2"
2
+ VERSION = "6.0.0.pre3"
3
3
  end
@@ -89,7 +89,7 @@ END
89
89
 
90
90
  class MediatorUser
91
91
  include ActiveFedora::RdfObject
92
- rdf_type "http://purl.org/dc/terms/AgentClass"
92
+ rdf_type RDF::DC.AgentClass
93
93
  map_predicates do |map|
94
94
  map.title(:in=> RDF::DC)
95
95
  end
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: 6.0.0.pre2
4
+ version: 6.0.0.pre3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-01-24 00:00:00.000000000 Z
14
+ date: 2013-01-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rsolr