active-fedora 6.7.0 → 6.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63fb27c9040e810872c7d1f623db06e60635b4bc
4
- data.tar.gz: 377965c0d369f517682b6db6046b20328cb83393
3
+ metadata.gz: 2aa66c6ffb3f4b0febba257f02bee11540f92b31
4
+ data.tar.gz: f45f01a2750c7fed408fea775f656edfcae2d99c
5
5
  SHA512:
6
- metadata.gz: 053a44e1160e7cb2e86acdfddfc06b3cf0437cee9b301c6d207682c6a74ad078ae72a83e2f767591a836e150ab500ab367267f3bf8f44fa6464b9af9d560df76
7
- data.tar.gz: 4dcd39e896de11b17f112328d1df6d7671846a0924fe9d01484ff975e85e9e11c972b1e4779af226cf01c8a10ccf31f26a4e75c4a4df20a6321df5ce0a1e86bf
6
+ metadata.gz: a0db7fb70c1a7651161082e994c6c5677eaf26834c88cf1a1715da55fa7bc85aecfed7e0a89107e5a58d7844ad4eec190dcea1c4040c8dc0c88308a951fd1927
7
+ data.tar.gz: 3d8ed8a5322d4d379e8724ba0a49db3788b5bd976cada8a8331958ebbcfa1fc7a01a241501264a8f467dc1c20bd5e688775c7843d84db59d662f2a2842610eb3
@@ -75,7 +75,7 @@ module ActiveFedora
75
75
  return repository if new? and data.nil?
76
76
 
77
77
  data ||= datastream_content
78
-
78
+ data.force_encoding('utf-8')
79
79
  RDF::Reader.for(serialization_format).new(data) do |reader|
80
80
  reader.each_statement do |statement|
81
81
  repository << statement
@@ -1,3 +1,3 @@
1
1
  module ActiveFedora
2
- VERSION = "6.7.0"
2
+ VERSION = "6.7.1"
3
3
  end
@@ -3,8 +3,8 @@ require 'rails/generators'
3
3
  module ActiveFedora
4
4
  class ConfigGenerator < Rails::Generators::Base
5
5
  def generate
6
- invoke('active_fedora:config:solr')
7
- invoke('active_fedora:config:fedora')
6
+ generate('active_fedora:config:solr')
7
+ generate('active_fedora:config:fedora')
8
8
  end
9
9
  end
10
10
  end
@@ -1,3 +1,4 @@
1
+ # -*- encoding: utf-8 -*-
1
2
  require 'spec_helper'
2
3
 
3
4
  describe ActiveFedora::RDFDatastream do
@@ -53,4 +54,15 @@ describe ActiveFedora::RDFDatastream do
53
54
  MyDatastream.fields.should == [:title, :description]
54
55
  end
55
56
  end
57
+
58
+ describe "deserialize" do
59
+ it "should be able to handle non-utf-8 characters" do
60
+ # see https://github.com/ruby-rdf/rdf/issues/142
61
+ ds = ActiveFedora::NtriplesRDFDatastream.new
62
+ data = "<info:fedora/scholarsphere:qv33rx50r> <http://purl.org/dc/terms/description> \"\\n\xE2\x80\x99 \" .\n".force_encoding('ASCII-8BIT')
63
+
64
+ result = ds.deserialize(data)
65
+ result.dump(:ntriples).should == "<info:fedora/scholarsphere:qv33rx50r> <http://purl.org/dc/terms/description> \"\\n’ \" .\n"
66
+ end
67
+ end
56
68
  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.7.0
4
+ version: 6.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Zumwalt
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-10-29 00:00:00.000000000 Z
13
+ date: 2013-12-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rsolr
@@ -556,7 +556,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
556
556
  version: '0'
557
557
  requirements: []
558
558
  rubyforge_project:
559
- rubygems_version: 2.0.3
559
+ rubygems_version: 2.1.11
560
560
  signing_key:
561
561
  specification_version: 4
562
562
  summary: A convenience libary for manipulating documents in the Fedora Repository.