hydra-core 12.0.2 → 12.1.0

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: 10c49645f65ec18120e3d084c4c1255fe77a3a8152af0831cacd188eca5575bb
4
- data.tar.gz: e6f1894f072f5afb1f87e7575488afdce118a021f1498aa297b00478ff196b7f
3
+ metadata.gz: c7e5e72614fe00144600d5e3c4efccf2947f158aa1b7577d7b0653bc332299de
4
+ data.tar.gz: 21f9cae205905ad2d0956533ffc393e5c59c7a18fc9bf196b3a69ad85ee9fe12
5
5
  SHA512:
6
- metadata.gz: 815f9671df76f46e9d0f26512c64029197383d7a8505e4f41b2c02adc3357519e18d67408e916c346b1331c8b1f12310356a2055cf845c9e6e214ee28a2d4fd6
7
- data.tar.gz: 3aa459d7ef765a0f0ef45ec73d2ac25d252048d25dd23e04a2f8484d4141655d2639adacbfcdeced3fb2c6c3cbbfdaf9767a9312e62d59d5b051645a678ca6c7
6
+ metadata.gz: ed09758c8ed087d4546392489d5944e932fef374e1ba08b60101af76f237d2cd18d0a15438e33e477b1b99c7b1ee7752ba46f43f5d7240f4bd2ae9840b40ee28
7
+ data.tar.gz: 542b990dc47db319c90a7ba1470f66945a3a325777d90c3829ab8c07b2e4c64c3ba3eb0db3a1a54e778da782fba529bc99bf7633715268e8f0b751a736005807
@@ -81,7 +81,7 @@ module Hydra
81
81
  # @return [String] the filename
82
82
  def file_name
83
83
  fname = params[:filename] || file.original_name || (asset.respond_to?(:label) && asset.label) || file.id
84
- fname = URI.unescape(fname) if Rails.version >= '6.0'
84
+ fname = CGI.unescape(fname) if Rails.version >= '6.0'
85
85
  fname
86
86
  end
87
87
 
data/hydra-core.gemspec CHANGED
@@ -15,11 +15,12 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = version
17
17
  gem.license = "APACHE2"
18
+ gem.metadata = { "rubygems_mfa_required" => "true" }
18
19
 
19
20
  gem.required_ruby_version = '>= 2.4'
20
21
 
21
22
  gem.add_dependency 'hydra-access-controls', version
22
- gem.add_dependency "railties", '>= 5.2', '< 7'
23
+ gem.add_dependency "railties", '>= 5.2', '< 7.1'
23
24
 
24
25
  gem.add_development_dependency 'rails-controller-testing', '~> 1'
25
26
  gem.add_development_dependency 'rspec-rails', '~> 4.0'
@@ -70,6 +70,7 @@ module Hydra
70
70
 
71
71
  def create_conneg_configuration
72
72
  file_path = "config/initializers/mime_types.rb"
73
+ create_file file_path unless File.exist?(file_path)
73
74
  append_to_file file_path do
74
75
  "Mime::Type.register \"application/n-triples\", :nt\n" +
75
76
  "Mime::Type.register \"application/ld+json\", :jsonld\n" +
@@ -79,7 +80,7 @@ module Hydra
79
80
 
80
81
  def inject_solr_document_conneg
81
82
  file_path = "app/models/solr_document.rb"
82
- if File.exists?(file_path)
83
+ if File.exist?(file_path)
83
84
  inject_into_file file_path, :before => /end\Z/ do
84
85
  "\n # Do content negotiation for AF models. \n" +
85
86
  "\n use_extension( Hydra::ContentNegotiation )\n"
@@ -90,7 +91,7 @@ module Hydra
90
91
  # Add Hydra behaviors to the user model
91
92
  def inject_hydra_user_behavior
92
93
  file_path = "app/models/#{model_name.underscore}.rb"
93
- if File.exists?(file_path)
94
+ if File.exist?(file_path)
94
95
  inject_into_class file_path, model_name.classify do
95
96
  " # Connects this user object to Hydra behaviors.\n" +
96
97
  " include Hydra::User\n\n"
@@ -1,3 +1,3 @@
1
1
  module HydraHead
2
- VERSION = "12.0.1"
2
+ VERSION = "12.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.0.2
4
+ version: 12.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Zumwalt, Bess Sadler, Julie Meloni, Naomi Dushay, Jessie Keck, John Scofield,
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-07-27 00:00:00.000000000 Z
12
+ date: 2023-01-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hydra-access-controls
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 12.0.2
20
+ version: 12.1.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 12.0.2
27
+ version: 12.1.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: railties
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: '5.2'
35
35
  - - "<"
36
36
  - !ruby/object:Gem::Version
37
- version: '7'
37
+ version: '7.1'
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: '5.2'
45
45
  - - "<"
46
46
  - !ruby/object:Gem::Version
47
- version: '7'
47
+ version: '7.1'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rails-controller-testing
50
50
  requirement: !ruby/object:Gem::Requirement
@@ -150,7 +150,8 @@ files:
150
150
  homepage: https://github.com/samvera/hydra-head/tree/master/hydra-core
151
151
  licenses:
152
152
  - APACHE2
153
- metadata: {}
153
+ metadata:
154
+ rubygems_mfa_required: 'true'
154
155
  post_install_message:
155
156
  rdoc_options: []
156
157
  require_paths:
@@ -166,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
167
  - !ruby/object:Gem::Version
167
168
  version: '0'
168
169
  requirements: []
169
- rubygems_version: 3.0.3
170
+ rubygems_version: 3.3.26
170
171
  signing_key:
171
172
  specification_version: 4
172
173
  summary: Hydra-Head Rails Engine (requires Rails3)