ro-bundle 0.2.4 → 0.2.5

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: c56df3d0e3ccff9e38461c5ac3f8192c71f3aeb4045765698ee23d73f6215b83
4
- data.tar.gz: 90baca96edb2222c70ab73100cfbb58df8a459940f1d92d380467d6bbe0fcafb
3
+ metadata.gz: 763804a43ec1bd90fa5c8be95c25808e8877a60d0a9b8ee29b312179585afc59
4
+ data.tar.gz: 8c11baba2952c2a11ec03258335dac5fc46c50826ec63d30fd584109e7f440b5
5
5
  SHA512:
6
- metadata.gz: f0d4640ded273d042845a892878c7a3f0fefb5d326da641db04e9e0b1a2a380ff92a91bcf0b5819db02f52c2db69771fc87ce08b752e689f02420716810460eb
7
- data.tar.gz: 66cfa1290ed6ffdb3bf091a952abb34c08b3d8518bcce2ea69513f4e3fe9907301347b82693005ccea8a77f5aa09c354383ddda001f5da28105a82a8b3e83096
6
+ metadata.gz: 4d08175914d093e89a94b582402d05d0a9af7bf53a79fc5fe7de44022d4b34895a002c5ef29b191d9883ac8fbf3bce18d38df4b8a7a3e5f7e8216b8bcbf16b03
7
+ data.tar.gz: 0b5dfd58c3b4a8351e7c05e22f9aed53c99334979db70ae927701e848979562609a379c56f706561153a6c8773be6d4ace0c18a013a0859f6ab829a3b4188fe2
@@ -1 +1 @@
1
- ruby-2.2.8
1
+ ruby-2.6.6
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ task :default => [:test]
15
15
  Rake::TestTask.new do |t|
16
16
  t.libs << "test"
17
17
  t.test_files = FileList['test/ts_ro_bundle.rb']
18
- t.verbose = true
18
+ t.verbose = false
19
19
  end
20
20
 
21
21
  RDoc::Task.new do |r|
@@ -13,6 +13,7 @@ require "time"
13
13
  require "ucf"
14
14
  require "uri"
15
15
  require "uuid"
16
+ require "addressable"
16
17
 
17
18
  require "ro-bundle/version"
18
19
  require "ro-bundle/util"
@@ -33,7 +33,7 @@ module ROBundle
33
33
  @structure[:uri] = if Util.is_absolute_uri?(object)
34
34
  object.to_s
35
35
  else
36
- URI.encode(object.start_with?("/") ? object : "/#{object}")
36
+ Addressable::URI.encode(object.start_with?("/") ? object : "/#{object}")
37
37
  end
38
38
  @structure[:mediatype] = mediatype
39
39
  end
@@ -52,7 +52,7 @@ module ROBundle
52
52
  #
53
53
  # The path of this aggregate in "rubyzip" format, i.e. no leading '/'.
54
54
  def file_entry
55
- URI.decode(Util.strip_leading_slash(uri)) unless Util.is_absolute_uri?(uri)
55
+ Addressable::URI.unencode(Util.strip_leading_slash(uri)) unless Util.is_absolute_uri?(uri)
56
56
  end
57
57
 
58
58
  # :call-seq:
@@ -9,5 +9,5 @@
9
9
  #
10
10
  module ROBundle
11
11
  # The version number of this library as a String.
12
- VERSION = "0.2.4"
12
+ VERSION = "0.2.5"
13
13
  end
@@ -28,17 +28,17 @@ Gem::Specification.new do |spec|
28
28
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
29
29
  spec.require_paths = ["lib"]
30
30
 
31
- spec.has_rdoc = true
32
31
  spec.extra_rdoc_files = [ "Changes.rdoc", "Licence.rdoc", "ReadMe.rdoc" ]
33
32
  spec.rdoc_options = [ "-N", "--tab-width=2", "--main=ReadMe.rdoc" ]
34
33
 
35
34
  spec.required_ruby_version = ">= 1.9.3"
36
35
  spec.add_development_dependency "bundler", "~> 1.5"
37
- spec.add_development_dependency "rake", "~> 10.1"
36
+ spec.add_development_dependency "rake", ">= 12.3.3"
38
37
  spec.add_development_dependency "rdoc", "~> 4.1"
39
38
  spec.add_development_dependency "test-unit", "~> 3.0"
40
39
  spec.add_development_dependency "coveralls"
41
40
  spec.add_runtime_dependency "ucf", "~> 2.0.2"
42
- spec.add_runtime_dependency "json", "~> 1.8"
41
+ spec.add_runtime_dependency "json", ">= 2.3.0"
43
42
  spec.add_runtime_dependency "uuid", "~> 2.3"
43
+ spec.add_runtime_dependency "addressable", "~> 2.7.0"
44
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ro-bundle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Haines
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-11-29 00:00:00.000000000 Z
13
+ date: 2021-01-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -30,16 +30,16 @@ dependencies:
30
30
  name: rake
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - "~>"
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
- version: '10.1'
35
+ version: 12.3.3
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - "~>"
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: '10.1'
42
+ version: 12.3.3
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: rdoc
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -100,16 +100,16 @@ dependencies:
100
100
  name: json
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - "~>"
103
+ - - ">="
104
104
  - !ruby/object:Gem::Version
105
- version: '1.8'
105
+ version: 2.3.0
106
106
  type: :runtime
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - "~>"
110
+ - - ">="
111
111
  - !ruby/object:Gem::Version
112
- version: '1.8'
112
+ version: 2.3.0
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: uuid
115
115
  requirement: !ruby/object:Gem::Requirement
@@ -124,6 +124,20 @@ dependencies:
124
124
  - - "~>"
125
125
  - !ruby/object:Gem::Version
126
126
  version: '2.3'
127
+ - !ruby/object:Gem::Dependency
128
+ name: addressable
129
+ requirement: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - "~>"
132
+ - !ruby/object:Gem::Version
133
+ version: 2.7.0
134
+ type: :runtime
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - "~>"
139
+ - !ruby/object:Gem::Version
140
+ version: 2.7.0
127
141
  description: This library provides an API for manipulating Research Object (RO) bundles.
128
142
  The RO bundle specification can be found at https://w3id.org/bundle/.
129
143
  email:
@@ -210,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
224
  - !ruby/object:Gem::Version
211
225
  version: '0'
212
226
  requirements: []
213
- rubygems_version: 3.0.6
227
+ rubygems_version: 3.0.8
214
228
  signing_key:
215
229
  specification_version: 4
216
230
  summary: This library provides an API for manipulating Research Object (RO) bundles.