hydra-core 9.7.1 → 9.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/hydra/head_generator.rb +8 -8
- data/lib/generators/hydra/templates/config/blacklight.yml +1 -1
- data/lib/generators/hydra/templates/config/initializers/hydra_config.rb +2 -2
- data/lib/hydra-head/version.rb +1 -1
- data/lib/tasks/hydra.rake +12 -0
- data/spec/test_app_templates/Gemfile.extra +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1218b0be13908d308c1bf36d42054ad627ecb973
|
4
|
+
data.tar.gz: 4c07a1f43cf53d0fbdbb32a950af1173de36af9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c7a3966e1c8ff2ff266069fbaf797379adf6e723a571cfd099a0f8d0b45fba2e864b40ac76f12d1870cb5e45ae5abb2885809191df8bcd783bdd921839af305
|
7
|
+
data.tar.gz: a35f12fd32f795bf9eb264607fdea5a697ff4702512619d6dd43032ad3b5a3b03279f2dbf111b2be79db6d8a47664d44d206739bc211008cd8c458e1cb093013
|
@@ -6,7 +6,7 @@ module Hydra
|
|
6
6
|
|
7
7
|
source_root File.expand_path('../templates', __FILE__)
|
8
8
|
|
9
|
-
argument :model_name, :
|
9
|
+
argument :model_name, type: :string , default: 'User'
|
10
10
|
class_option :'skip-rspec', type: :boolean, default: false, desc: "Skip the rspec generator"
|
11
11
|
|
12
12
|
|
@@ -21,6 +21,11 @@ module Hydra
|
|
21
21
|
#
|
22
22
|
# Config Files & Initializers
|
23
23
|
#
|
24
|
+
def inject_fcrepo_wrapper
|
25
|
+
gem_group :development, :test do
|
26
|
+
gem "fcrepo_wrapper"
|
27
|
+
end
|
28
|
+
end
|
24
29
|
|
25
30
|
def inject_test_framework
|
26
31
|
return if options[:'skip-rspec']
|
@@ -55,13 +60,8 @@ module Hydra
|
|
55
60
|
def create_configuration_files
|
56
61
|
|
57
62
|
# Initializers
|
58
|
-
|
59
|
-
|
60
|
-
unless model_name == 'user'
|
61
|
-
insert_into_file file_path, :after => 'Hydra.configure do |config|' do
|
62
|
-
"\n config.user_model = '#{model_name.classify}'"
|
63
|
-
end
|
64
|
-
end
|
63
|
+
template "config/initializers/hydra_config.rb",
|
64
|
+
"config/initializers/hydra_config.rb"
|
65
65
|
|
66
66
|
# Role Mappings
|
67
67
|
copy_file "config/role_map.yml", "config/role_map.yml"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
development:
|
2
2
|
adapter: solr
|
3
|
-
url: <%= ENV['SOLR_URL'] || "http://127.0.0.1
|
3
|
+
url: <%= ENV['SOLR_URL'] || "http://127.0.0.1:#{ENV.fetch('SOLR_DEVELOPMENT_PORT', 8983)}/solr/hydra-development" %>
|
4
4
|
test: &test
|
5
5
|
adapter: solr
|
6
6
|
url: http://localhost:<%= ENV['SOLR_TEST_PORT'] || 8985 %>/solr/hydra-test
|
@@ -17,6 +17,6 @@ Hydra.configure do |config|
|
|
17
17
|
# config.permissions.lease.expiration_date = ActiveFedora::SolrQueryBuilder.solr_name("lease_expiration_date", :stored_sortable, type: :date)
|
18
18
|
#
|
19
19
|
#
|
20
|
-
#
|
21
|
-
# config.user_model = '
|
20
|
+
# Specify the user model
|
21
|
+
<%= '# ' if model_name == 'User' %>config.user_model = '<%= model_name %>'
|
22
22
|
end
|
data/lib/hydra-head/version.rb
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'active_fedora/rake_support'
|
2
|
+
|
3
|
+
namespace :hydra do
|
4
|
+
desc "Start a solr, fedora and rails instance"
|
5
|
+
task :server do
|
6
|
+
with_server('development',
|
7
|
+
fcrepo_port: ENV.fetch('FCREPO_PORT', '8984'),
|
8
|
+
solr_port: ENV.fetch('SOLR_PORT', '8983')) do
|
9
|
+
`rails server`
|
10
|
+
end
|
11
|
+
end
|
12
|
+
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: 9.
|
4
|
+
version: 9.8.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: 2016-02-
|
12
|
+
date: 2016-02-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - '='
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 9.
|
34
|
+
version: 9.8.0
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - '='
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 9.
|
41
|
+
version: 9.8.0
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: active-fedora
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -153,6 +153,7 @@ files:
|
|
153
153
|
- lib/mods_asset.rb
|
154
154
|
- lib/railties/active-fedora.rake
|
155
155
|
- lib/railties/hydra_jetty.rake
|
156
|
+
- lib/tasks/hydra.rake
|
156
157
|
- spec/.gitignore
|
157
158
|
- spec/controllers/catalog_controller_spec.rb
|
158
159
|
- spec/controllers/downloads_controller_spec.rb
|