valkyrie 1.0.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/valkyrie/persistence/fedora/metadata_adapter.rb +3 -3
- data/lib/valkyrie/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f03e1e2aeda339fb535fa3e68145faf0e3d04b5823c7179e27c8e4bee63d67ef
|
4
|
+
data.tar.gz: 8b1fc53216eee6b2163f02a584682b6cf24ba889632dd0d3078b84a64193a9e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 033a19b5fc045592d1fc241329aef12c5a6d28779b3b06da16e908b51e10e2fee81459dc72ffacc5694d8e3e04099f4740759fb8148c25749d92aec5b93facf9
|
7
|
+
data.tar.gz: 7b2199ab15cbeb1e2738731e7e7fddb1d56afc353eef01eb362705be3c15d726324890feafd8c29de5c34c76982158dbfb0948da04be536e1bb1c633c7188fec
|
data/CHANGELOG.md
CHANGED
@@ -29,15 +29,15 @@ module Valkyrie::Persistence::Fedora
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def uri_to_id(uri)
|
32
|
-
Valkyrie::ID.new(uri.to_s.gsub(/^.*\//, ''))
|
32
|
+
Valkyrie::ID.new(CGI.unescape(uri.to_s.gsub(/^.*\//, '')))
|
33
33
|
end
|
34
34
|
|
35
35
|
def id_to_uri(id)
|
36
|
-
RDF::URI("#{connection_prefix}/#{pair_path(id)}/#{id}")
|
36
|
+
RDF::URI("#{connection_prefix}/#{pair_path(id)}/#{CGI.escape(id.to_s)}")
|
37
37
|
end
|
38
38
|
|
39
39
|
def pair_path(id)
|
40
|
-
id.to_s.split(
|
40
|
+
id.to_s.split(/[-\/]/).first.split("").each_slice(2).map(&:join).join("/")
|
41
41
|
end
|
42
42
|
|
43
43
|
def connection_prefix
|
data/lib/valkyrie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: valkyrie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trey Pendragon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|