hydra-head 3.1.0.rc2 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/HISTORY.textile
CHANGED
@@ -15,9 +15,8 @@ class HeadGenerator < Rails::Generators::Base
|
|
15
15
|
1. Creates a database migration for superusers if they do not exist in /db/migrate
|
16
16
|
2. Adds additional mime types to you application in the file '/config/initializers/mime_types.rb'
|
17
17
|
3. Creates config/initializers/hydra_config.rb
|
18
|
-
4. Creates config/
|
19
|
-
5. Creates
|
20
|
-
6. Creates a number of role_map config files that are used in the placeholder user roles implementation
|
18
|
+
4. Creates config/fedora.yml and config/solr.yml which you may need to modify to tell the hydra head where to find fedora & solr
|
19
|
+
5. Creates a number of role_map config files that are used in the placeholder user roles implementation
|
21
20
|
Enjoy building your Hydra Head!
|
22
21
|
"""
|
23
22
|
|
@@ -28,7 +27,6 @@ class HeadGenerator < Rails::Generators::Base
|
|
28
27
|
# Copy all files in templates/config directory to host config
|
29
28
|
def create_configuration_files
|
30
29
|
# Initializers
|
31
|
-
copy_file "config/initializers/fedora_config.rb", "config/initializers/fedora_config.rb"
|
32
30
|
copy_file "config/initializers/hydra_config.rb", "config/initializers/hydra_config.rb"
|
33
31
|
copy_file "config/initializers/blacklight_config.rb", "config/initializers/blacklight_config.rb"
|
34
32
|
copy_file "config/initializers/action_dispatch_http_upload_monkey_patch.rb", "config/initializers/action_dispatch_http_upload_monkey_patch.rb"
|
data/lib/hydra-head/version.rb
CHANGED
data/tasks/hydra-head.rake
CHANGED
@@ -46,7 +46,6 @@ namespace :hyhead do
|
|
46
46
|
end
|
47
47
|
|
48
48
|
|
49
|
-
# The following is a task named :doc which generates documentation using yard
|
50
49
|
begin
|
51
50
|
require 'yard'
|
52
51
|
require 'yard/rake/yardoc_task'
|
@@ -57,13 +56,14 @@ namespace :hyhead do
|
|
57
56
|
end
|
58
57
|
|
59
58
|
YARD::Rake::YardocTask.new(:doc) do |yt|
|
60
|
-
yt.files = ['lib/**/*', project_root+"*", 'app/**/*'
|
59
|
+
yt.files = ['lib/**/*', project_root+"*", 'app/**/*']
|
61
60
|
|
62
61
|
yt.options << "-m" << "textile"
|
63
62
|
yt.options << "--protected"
|
64
63
|
yt.options << "--no-private"
|
65
64
|
yt.options << "-r" << "README.textile"
|
66
65
|
yt.options << "-o" << "doc"
|
66
|
+
yt.options << "--files" << "*.textile"
|
67
67
|
end
|
68
68
|
rescue LoadError
|
69
69
|
desc "Generate YARD Documentation"
|
@@ -99,30 +99,8 @@ namespace :hyhead do
|
|
99
99
|
FileUtils.cd('../../')
|
100
100
|
end
|
101
101
|
|
102
|
-
# desc "Sets up test host, loads fixtures, then runs cucumber features - need to have jetty running."
|
103
|
-
# task :setup_and_run => ["hyhead:setup_test_app", "hyhead:remove_features_from_host", "hyhead:copy_features_to_host"] do
|
104
|
-
# system("rake hydra:fixtures:refresh environment=test")
|
105
|
-
# Rake::Task["hyhead:cucumber:run"].invoke
|
106
|
-
# end
|
107
102
|
end
|
108
103
|
|
109
|
-
# Not sure if these are necessary - MZ 09Jul2011
|
110
|
-
# desc "Copy current contents of the features directory into TEST_HOST_PATH/test_support/features"
|
111
|
-
# task :copy_features_to_host => [:set_test_host_path] do
|
112
|
-
# features_dir = "#{TEST_HOST_PATH}/test_support/features"
|
113
|
-
# excluded = [".", ".."]
|
114
|
-
# FileUtils.mkdir_p(features_dir)
|
115
|
-
# puts "Copying features to #{features_dir}"
|
116
|
-
# # puts %x[ls -l test_support/features/mods_asset_search_result.feature]
|
117
|
-
# %x[cp -R test_support/features/* #{features_dir}]
|
118
|
-
# end
|
119
|
-
#
|
120
|
-
# desc "Remove TEST_HOST_PATH/test_support/features"
|
121
|
-
# task :remove_features_from_host => [:set_test_host_path] do
|
122
|
-
# features_dir = "#{TEST_HOST_PATH}/test_support/features"
|
123
|
-
# puts "Emptying out #{features_dir}"
|
124
|
-
# %x[rm -rf #{features_dir}]
|
125
|
-
# end
|
126
104
|
|
127
105
|
|
128
106
|
#
|
metadata
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hydra-head
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 3
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 1
|
9
9
|
- 0
|
10
|
-
|
11
|
-
- 2
|
12
|
-
version: 3.1.0.rc2
|
10
|
+
version: 3.1.0
|
13
11
|
platform: ruby
|
14
12
|
authors:
|
15
13
|
- Matt Zumwalt, Bess Sadler, Julie Meloni, Naomi Dushay, Jessie Keck, John Scofield, Justin Coyne & many more. See https://github.com/projecthydra/hydra-head/contributors
|
@@ -17,7 +15,7 @@ autorequire:
|
|
17
15
|
bindir: bin
|
18
16
|
cert_chain: []
|
19
17
|
|
20
|
-
date: 2011-11-
|
18
|
+
date: 2011-11-16 00:00:00 -06:00
|
21
19
|
default_executable:
|
22
20
|
dependencies:
|
23
21
|
- !ruby/object:Gem::Dependency
|
@@ -953,7 +951,6 @@ files:
|
|
953
951
|
- lib/generators/hydra/templates/config/fedora.yml
|
954
952
|
- lib/generators/hydra/templates/config/initializers/action_dispatch_http_upload_monkey_patch.rb
|
955
953
|
- lib/generators/hydra/templates/config/initializers/blacklight_config.rb
|
956
|
-
- lib/generators/hydra/templates/config/initializers/fedora_config.rb
|
957
954
|
- lib/generators/hydra/templates/config/initializers/hydra_config.rb
|
958
955
|
- lib/generators/hydra/templates/config/role_map_cucumber.yml
|
959
956
|
- lib/generators/hydra/templates/config/role_map_development.yml
|
@@ -1252,14 +1249,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1252
1249
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1253
1250
|
none: false
|
1254
1251
|
requirements:
|
1255
|
-
- - "
|
1252
|
+
- - ">="
|
1256
1253
|
- !ruby/object:Gem::Version
|
1257
|
-
hash:
|
1254
|
+
hash: 3
|
1258
1255
|
segments:
|
1259
|
-
-
|
1260
|
-
|
1261
|
-
- 1
|
1262
|
-
version: 1.3.1
|
1256
|
+
- 0
|
1257
|
+
version: "0"
|
1263
1258
|
requirements: []
|
1264
1259
|
|
1265
1260
|
rubyforge_project:
|
@@ -1,25 +0,0 @@
|
|
1
|
-
require 'active-fedora'
|
2
|
-
#
|
3
|
-
# Misc Config for SALT Application
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
# This initializes ActiveFedora with config info from RAILS_ROOT/lib/fedora.yml
|
8
|
-
# Among other things, it allows you to access Fedora and Solr (ActiveFedora's copy) as ActiveFedora.fedora and ActiveFedora.solr
|
9
|
-
silence_warnings { ENABLE_SOLR_UPDATES=true }
|
10
|
-
|
11
|
-
# Don't need to call ActiveFedora.init any more. It's handled by {ActiveFedora::Railtie}
|
12
|
-
# ActiveFedora.init
|
13
|
-
|
14
|
-
#
|
15
|
-
# Loads EAD descriptors
|
16
|
-
# Attempts to parse any xml files in lib/stanford/ead/
|
17
|
-
#
|
18
|
-
# You can access any of the loaded descriptors using Descriptor.retrieve( id ), where "id" is the base filename of the descriptor xml file
|
19
|
-
|
20
|
-
# puts "Registering EADs..."
|
21
|
-
# Dir[File.join( RAILS_ROOT, 'lib', "stanford", "ead", "/*.xml" )].each do |f|
|
22
|
-
# puts "... EAD id #{File.basename(f, ".xml")}"
|
23
|
-
# Descriptor.register( File.basename(f, ".xml") )
|
24
|
-
# end
|
25
|
-
|