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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0bdf173346aa41d564f214c4e453e047a730ec7775edd7c7a0167e38fa2cd4e4
4
- data.tar.gz: aef0b3c204da30a6241b3b217fea821504b806eb10e50ae8d3ad2d5547d0d19d
3
+ metadata.gz: f03e1e2aeda339fb535fa3e68145faf0e3d04b5823c7179e27c8e4bee63d67ef
4
+ data.tar.gz: 8b1fc53216eee6b2163f02a584682b6cf24ba889632dd0d3078b84a64193a9e9
5
5
  SHA512:
6
- metadata.gz: f8610d09ec9088a811f80e84ad53eaa583f76bc28304266870e349ec940306871455885153cfd01ac5dce62e1bc36dbce7119ba719576da6bc86bab664e9a14a
7
- data.tar.gz: 588b9c6d0bb1a94103a1b6c256b94cf1b26309602a984ad8094a438f7bb33a01802e3bc5602d2259c4a08b8b82430492517b1dcc2fa3d5e71ffe142cfb99c6af
6
+ metadata.gz: 033a19b5fc045592d1fc241329aef12c5a6d28779b3b06da16e908b51e10e2fee81459dc72ffacc5694d8e3e04099f4740759fb8148c25749d92aec5b93facf9
7
+ data.tar.gz: 7b2199ab15cbeb1e2738731e7e7fddb1d56afc353eef01eb362705be3c15d726324890feafd8c29de5c34c76982158dbfb0948da04be536e1bb1c633c7188fec
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # v1.0.0.RC2 2018-03-14
2
+
3
+ ## Changes since last release
4
+
5
+ * Support slashes in IDs for Fedora adapter.
6
+ [dlpierce](https://github.com/dlpierce)
7
+
1
8
  # v1.0.0.RC1 2018-03-02
2
9
 
3
10
  Initial Release
@@ -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("-").first.split("").each_slice(2).map(&:join).join("/")
40
+ id.to_s.split(/[-\/]/).first.split("").each_slice(2).map(&:join).join("/")
41
41
  end
42
42
 
43
43
  def connection_prefix
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Valkyrie
3
- VERSION = "1.0.0.rc1"
3
+ VERSION = "1.0.0.rc2"
4
4
  end
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.rc1
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-02 00:00:00.000000000 Z
11
+ date: 2018-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct