active-fedora 6.4.0.rc2 → 6.4.0.rc3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f6463fca15144a94e10e6c80c86871f57867c2b
4
- data.tar.gz: d08ad6e9492d3d62fa5227ce779539ffd83406bc
3
+ metadata.gz: 4a1eb1e1a3c105cc030731793feb32cf8dc89302
4
+ data.tar.gz: 02b3147a121d84e90c304a09b9426fc6adaa5dd4
5
5
  SHA512:
6
- metadata.gz: 13a56b47d6da5d2c173f67f255a30e5d7bdf1b4e6c1a98cd3cff69390bbe5a463ef3b4e2167976f7ef1c55defa7844224ba6cfa769e38ad057bb49e0fb12c53f
7
- data.tar.gz: 64befaef8bdcbb7f54443591ceba0d71d98ceacf5fc303b0e162bf6cdbd38bb8f2709ea52e5e5e19e492591127cb810c09bdb1fb61d90ab0b5bce6624ec7328d
6
+ metadata.gz: 9f6d00fa9c985eef3e8628ff58d876b77fb877e1a455a03e0b1bfc7c12154d263c88d829e2846d26878b66951ba2853c1d750bfc85bd9c634ae059265f9e7a33
7
+ data.tar.gz: 0068afc60cf344bb57729888180c7037acbb283afa87d6dd155168c924b12ab738cd3f8123746744c5922f3530e9cb7feceb3a70106477af07fd7f73860ddcb9
@@ -286,11 +286,24 @@ module ActiveFedora
286
286
  @config ||= {}.with_indifferent_access
287
287
  end
288
288
 
289
+ # List of symbols representing the fields for this terminology.
290
+ # ':type' is excluded because it represents RDF.type and is a fixed value
291
+ # @see rdf_type
292
+ def fields
293
+ config.keys.map(&:to_sym) - [:type]
294
+ end
295
+
289
296
  def map_predicates(&block)
290
297
  builder = Builder.new(self)
291
298
  builder.build &block
292
299
  end
293
300
 
301
+ # Provide the value for the RDF.type of this node
302
+ # @example
303
+ # class Location
304
+ # include ActiveFedora::RdfObject
305
+ # rdf_type RDF::EbuCore.Location
306
+ # end
294
307
  def rdf_type(uri_or_string=nil)
295
308
  if uri_or_string
296
309
  uri = uri_or_string.kind_of?(RDF::URI) ? uri_or_string : RDF::URI.new(uri_or_string)
@@ -1,3 +1,3 @@
1
1
  module ActiveFedora
2
- VERSION = "6.4.0.rc2"
2
+ VERSION = "6.4.0.rc3"
3
3
  end
@@ -94,6 +94,7 @@ describe "Nesting attribute behavior of RDFDatastream" do
94
94
  }
95
95
  }
96
96
  end
97
+
97
98
  it "should create nested objects" do
98
99
  # Replace the graph's contents with the Hash
99
100
  subject.attributes = params[:myResource]
@@ -34,5 +34,9 @@ describe ActiveFedora::RDFDatastream do
34
34
  @obj.descMetadata.title = ['']
35
35
  @obj.descMetadata.title.should == ['']
36
36
  end
37
+
38
+ it "should have a list of fields" do
39
+ MyDatastream.fields.should == [:title]
40
+ end
37
41
  end
38
42
  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.4.0.rc2
4
+ version: 6.4.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Zumwalt