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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e3f9c0bdf6318337c69b300b5100422e2c6f16f
4
- data.tar.gz: ea3888ab223e4e7a6c1fa756f885b6bd1c78af29
3
+ metadata.gz: 1218b0be13908d308c1bf36d42054ad627ecb973
4
+ data.tar.gz: 4c07a1f43cf53d0fbdbb32a950af1173de36af9a
5
5
  SHA512:
6
- metadata.gz: 6a11c12267ec0a760c9cbda4088ee6798c0c06b3c61b934b3dbf8f7f732ba4bbdc46535dc4635db14b06e52c3046d9c5e606ba70404a7d8760d35ff0b41a6aa1
7
- data.tar.gz: b11267065ece3988669dd7aa37c40bb72975b6209685b63e25ec0588526d1ae78e4495b95c19c13b173034222b7441420cd35bc6466229eeba4b4eea1cb9d337
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, :type => :string , :default => "user"
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
- file_path = "config/initializers/hydra_config.rb"
59
- copy_file "config/initializers/hydra_config.rb", file_path
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:8983/solr/hydra-dev" %>
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
- # specify the user model
21
- # config.user_model = '#{model_name.classify}'
20
+ # Specify the user model
21
+ <%= '# ' if model_name == 'User' %>config.user_model = '<%= model_name %>'
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module HydraHead
2
- VERSION = "9.7.1"
2
+ VERSION = "9.8.0"
3
3
  end
@@ -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
@@ -2,5 +2,5 @@ gem 'rspec-rails', '~> 3.1', group: :test
2
2
  gem 'rspec-its'
3
3
  gem 'byebug' unless ENV['CI']
4
4
 
5
- gem 'rails', ENV.fetch('RAILS_VERSION', '4.2.5')
5
+ gem 'rails', ENV.fetch('RAILS_VERSION', '4.2.5.1')
6
6
  gem 'blacklight', ENV.fetch('BLACKLIGHT_VERSION', '6.0.0')
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.7.1
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-08 00:00:00.000000000 Z
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.7.1
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.7.1
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