hydra-core 5.0.0.rc1 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/hydra-core.gemspec CHANGED
@@ -20,9 +20,9 @@ Gem::Specification.new do |gem|
20
20
 
21
21
 
22
22
  gem.add_dependency "rails", '~>3.2.3'
23
- gem.add_dependency "blacklight", '~> 4.0.0'
23
+ gem.add_dependency "blacklight", '~> 4.0'
24
24
  gem.add_dependency "devise"
25
- gem.add_dependency "active-fedora", '~> 5.0.0'
25
+ gem.add_dependency "active-fedora", '~> 5.0'
26
26
  gem.add_dependency 'RedCloth', '=4.2.9'
27
27
  gem.add_dependency 'block_helpers'
28
28
  gem.add_dependency 'sanitize'
@@ -49,12 +49,17 @@ class HeadGenerator < Rails::Generators::Base
49
49
  copy_file "config/solr_mappings.yml", "config/solr_mappings.yml"
50
50
 
51
51
  # Fedora & Solr YAML files
52
- copy_file "config/fedora.yml", "config/fedora.yml"
53
- copy_file "config/solr.yml", "config/solr.yml"
54
-
55
- # Fedora & Solr Config files
56
- directory "fedora_conf"
57
- directory "solr_conf"
52
+ begin
53
+ invoke('active_fedora:config')
54
+ rescue NoMethodError
55
+ # Looks like we are falling back on the old way of doing this
56
+ copy_file "config/fedora.yml", "config/fedora.yml"
57
+ copy_file "config/solr.yml", "config/solr.yml"
58
+ copy_file "config/jetty.yml", "config/jetty.yml"
59
+ # Fedora & Solr Config files
60
+ directory "fedora_conf"
61
+ directory "solr_conf"
62
+ end
58
63
  end
59
64
 
60
65
  # Register mimetypes required by hydra-head
@@ -113,9 +118,9 @@ EOF
113
118
  "\n # These before_filters apply the hydra access controls" +
114
119
  "\n before_filter :enforce_show_permissions, :only=>:show" +
115
120
  "\n # This applies appropriate access controls to all solr queries" +
116
- "\n CatalogController.solr_search_params_logic << :add_access_controls_to_solr_params" +
121
+ "\n CatalogController.solr_search_params_logic += [:add_access_controls_to_solr_params]" +
117
122
  "\n # This filters out objects that you want to exclude from search results, like FileAssets" +
118
- "\n CatalogController.solr_search_params_logic << :exclude_unwanted_models"
123
+ "\n CatalogController.solr_search_params_logic += [:exclude_unwanted_models]"
119
124
 
120
125
  end
121
126
  else
@@ -0,0 +1,5 @@
1
+ default:
2
+ jetty_port: 8983
3
+ java_opts:
4
+ - "-XX:MaxPermSize=128m"
5
+ - "-Xmx256m"
@@ -1,4 +1,4 @@
1
1
  module HydraHead
2
- VERSION = "5.0.0.rc1"
2
+ VERSION = "5.0.0"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.rc1
5
- prerelease: 6
4
+ version: 5.0.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Matt Zumwalt, Bess Sadler, Julie Meloni, Naomi Dushay, Jessie Keck, John Scofield,
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-12-03 00:00:00.000000000 Z
13
+ date: 2012-12-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -35,7 +35,7 @@ dependencies:
35
35
  requirements:
36
36
  - - ~>
37
37
  - !ruby/object:Gem::Version
38
- version: 4.0.0
38
+ version: '4.0'
39
39
  type: :runtime
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - ~>
45
45
  - !ruby/object:Gem::Version
46
- version: 4.0.0
46
+ version: '4.0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: devise
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -67,7 +67,7 @@ dependencies:
67
67
  requirements:
68
68
  - - ~>
69
69
  - !ruby/object:Gem::Version
70
- version: 5.0.0
70
+ version: '5.0'
71
71
  type: :runtime
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
@@ -75,7 +75,7 @@ dependencies:
75
75
  requirements:
76
76
  - - ~>
77
77
  - !ruby/object:Gem::Version
78
- version: 5.0.0
78
+ version: '5.0'
79
79
  - !ruby/object:Gem::Dependency
80
80
  name: RedCloth
81
81
  requirement: !ruby/object:Gem::Requirement
@@ -179,7 +179,7 @@ dependencies:
179
179
  requirements:
180
180
  - - '='
181
181
  - !ruby/object:Gem::Version
182
- version: 5.0.0.rc1
182
+ version: 5.0.0
183
183
  type: :runtime
184
184
  prerelease: false
185
185
  version_requirements: !ruby/object:Gem::Requirement
@@ -187,7 +187,7 @@ dependencies:
187
187
  requirements:
188
188
  - - '='
189
189
  - !ruby/object:Gem::Version
190
- version: 5.0.0.rc1
190
+ version: 5.0.0
191
191
  - !ruby/object:Gem::Dependency
192
192
  name: sqlite3
193
193
  requirement: !ruby/object:Gem::Requirement
@@ -328,6 +328,7 @@ files:
328
328
  - lib/generators/hydra/templates/config/fedora.yml
329
329
  - lib/generators/hydra/templates/config/initializers/action_dispatch_http_upload_monkey_patch.rb
330
330
  - lib/generators/hydra/templates/config/initializers/hydra_config.rb
331
+ - lib/generators/hydra/templates/config/jetty.yml
331
332
  - lib/generators/hydra/templates/config/role_map_cucumber.yml
332
333
  - lib/generators/hydra/templates/config/role_map_development.yml
333
334
  - lib/generators/hydra/templates/config/role_map_production.yml
@@ -407,9 +408,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
407
408
  required_rubygems_version: !ruby/object:Gem::Requirement
408
409
  none: false
409
410
  requirements:
410
- - - ! '>'
411
+ - - ! '>='
411
412
  - !ruby/object:Gem::Version
412
- version: 1.3.1
413
+ version: '0'
413
414
  requirements: []
414
415
  rubyforge_project:
415
416
  rubygems_version: 1.8.24