active-fedora 5.3.0 → 5.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,6 @@
1
+ 5.3.1
2
+ Fixed delegating rdf terms as_json
3
+
1
4
  5.0.0
2
5
  Depend on solrizer 2.0.0 (for HYDRA-827 DO NOT index terms by default)
3
6
  Lazily initialize solr, so that the message goes into the log, not the console
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ActiveFedora
2
- VERSION = "5.3.0"
2
+ VERSION = "5.3.1"
3
3
  end
@@ -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.0
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: 1953384027412583445
550
+ hash: -3956466045505839308
551
551
  requirements: []
552
552
  rubyforge_project: rubyfedora
553
- rubygems_version: 1.8.23
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.