active-fedora 5.3.0 → 5.3.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.
data/History.txt
CHANGED
@@ -111,7 +111,7 @@ module ActiveFedora
|
|
111
111
|
class TermProxy
|
112
112
|
|
113
113
|
attr_reader :graph, :subject, :predicate
|
114
|
-
delegate :class, :to_s, :==, :kind_of?, :each, :map, :empty?, :to => :values
|
114
|
+
delegate :class, :to_s, :==, :kind_of?, :each, :map, :empty?, :as_json, :to => :values
|
115
115
|
|
116
116
|
def initialize(graph, subject, predicate)
|
117
117
|
@graph = graph
|
@@ -49,6 +49,12 @@ describe ActiveFedora::NtriplesRDFDatastream do
|
|
49
49
|
@subject.based_near.should == ["New York, NY, US"]
|
50
50
|
@subject.related_url.should == ["http://google.com/"]
|
51
51
|
end
|
52
|
+
|
53
|
+
it "should delegate as_json to the fields" do
|
54
|
+
@subject.title.as_json.should == ["Title of work"]
|
55
|
+
@subject.title.to_json.should == "\[\"Title of work\"\]"
|
56
|
+
end
|
57
|
+
|
52
58
|
it "should return fields that are not TermProxies" do
|
53
59
|
@subject.created.should be_kind_of Array
|
54
60
|
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: 5.3.
|
4
|
+
version: 5.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -547,10 +547,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
547
547
|
version: '0'
|
548
548
|
segments:
|
549
549
|
- 0
|
550
|
-
hash:
|
550
|
+
hash: -3956466045505839308
|
551
551
|
requirements: []
|
552
552
|
rubyforge_project: rubyfedora
|
553
|
-
rubygems_version: 1.8.
|
553
|
+
rubygems_version: 1.8.24
|
554
554
|
signing_key:
|
555
555
|
specification_version: 3
|
556
556
|
summary: A convenience libary for manipulating documents in the Fedora Repository.
|