hydra-head 3.0.0.rc1 → 3.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -2
- data/HOW_TO_GET_STARTED.textile +0 -7
- data/README.textile +4 -4
- data/hydra-head.gemspec +1 -1
- data/lib/hydra-head/version.rb +1 -1
- data/tasks/hydra-head.rake +1 -1
- metadata +8 -9
- data/lib/blacklight.rb +0 -40
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
hydra-head (3.0.0.
|
4
|
+
hydra-head (3.0.0.rc2)
|
5
5
|
RedCloth (= 4.2.3)
|
6
6
|
active-fedora (~> 3.0.7)
|
7
7
|
blacklight (= 3.0.0)
|
@@ -37,7 +37,6 @@ PATH
|
|
37
37
|
trollop
|
38
38
|
will_paginate
|
39
39
|
xml-simple
|
40
|
-
yard
|
41
40
|
|
42
41
|
GEM
|
43
42
|
remote: http://rubygems.org/
|
@@ -270,3 +269,4 @@ DEPENDENCIES
|
|
270
269
|
rspec-rails (>= 2.0.0)
|
271
270
|
ruby-debug
|
272
271
|
ruby-debug-base
|
272
|
+
yard
|
data/HOW_TO_GET_STARTED.textile
CHANGED
@@ -6,13 +6,6 @@ h2. Before You Begin
|
|
6
6
|
|
7
7
|
This tutorial is a work in progress. We are actively seeking feedback. If you run into _anything_ that is incorrect or confusing, please email the "hydra-tech":http://groups.google.com/group/hydra-tech mailing list and let us know.
|
8
8
|
|
9
|
-
*Apologies for the dust*
|
10
|
-
|
11
|
-
The HTML and CSS for hydra-head are currently being overhauled in anticipation of the 3.0.0 release. The Hydra UI group is working hard on brand new information architecture with corresponding brand-new HTML and CSS. This work is being carried out in another branch of the hydra-head code on Github and will be merged into the prereleases of the gem as the work approaches completion. In the meantime, if you use the pre-release versions of hydra-head, you will encounter odd HTML with broken styling. We are aware of this. You might think of it as a tour through a construction site where the electricity, plumbing, walls and windows are finished but the drywall, carpet, and furnishings are still being worked on.
|
12
|
-
|
13
|
-
This means that the server-side code in hydra-head (Models, Controllers, Modules, and underlying libraries) is stable and ready for you to explore, but the View-level code is still in flux.
|
14
|
-
|
15
|
-
If you want to use the UI infrastructure that the hydra-head gem provides, you should wait for the official 3.0.0 release before putting a lot of work into customizing and styling the HTML in your views. In contrast, if you plan to write all of the UI for your Hydra Head from scratch and simply use the underlying infrastructure to interact with Fedora & Solr, then it's safe to proceed with development.
|
16
9
|
|
17
10
|
h2. What you will learn from this document
|
18
11
|
|
data/README.textile
CHANGED
@@ -71,10 +71,10 @@ First, add them to the "Gemfile":http://gembundler.com/gemfile.html of your appl
|
|
71
71
|
<pre>
|
72
72
|
source 'http://rubygems.org'
|
73
73
|
|
74
|
-
gem 'rails', '~>3.0.
|
74
|
+
gem 'rails', '~>3.0.10'
|
75
75
|
|
76
76
|
gem 'blacklight', '~> 3.0.0'
|
77
|
-
gem 'hydra-head', '3.0.
|
77
|
+
gem 'hydra-head', '3.0.0.rc1'
|
78
78
|
|
79
79
|
# We will assume that you're using sqlite3 for testing/demo,
|
80
80
|
# but in a production setup you probably want to use a real sql database like mysql or postgres
|
@@ -110,7 +110,7 @@ Even if all of the dependencies are satisfied, this will take a _very_ long time
|
|
110
110
|
|
111
111
|
<pre>
|
112
112
|
gem install blacklight
|
113
|
-
gem install hydra-head -v 3.0.
|
113
|
+
gem install hydra-head -v 3.0.0.rc1
|
114
114
|
</pre>
|
115
115
|
|
116
116
|
Then re-run bundle install and it will run slightly faster.
|
@@ -147,7 +147,7 @@ Run the database migrations
|
|
147
147
|
|
148
148
|
<pre>
|
149
149
|
rake db:migrate
|
150
|
-
rake db:
|
150
|
+
rake db:test:prepare
|
151
151
|
</pre>
|
152
152
|
|
153
153
|
h3. Add all the generated code to the Git repository
|
data/hydra-head.gemspec
CHANGED
@@ -45,10 +45,10 @@ Gem::Specification.new do |s|
|
|
45
45
|
s.add_dependency 'trollop'
|
46
46
|
s.add_dependency 'will_paginate'
|
47
47
|
s.add_dependency 'xml-simple'
|
48
|
-
s.add_dependency 'yard'
|
49
48
|
s.add_dependency 'block_helpers'
|
50
49
|
s.add_dependency 'sanitize'
|
51
50
|
|
51
|
+
s.add_development_dependency 'yard'
|
52
52
|
s.add_development_dependency 'jettywrapper', "~> 0.0.10"
|
53
53
|
s.add_development_dependency 'ruby-debug'
|
54
54
|
s.add_development_dependency 'ruby-debug-base'
|
data/lib/hydra-head/version.rb
CHANGED
data/tasks/hydra-head.rake
CHANGED
@@ -67,7 +67,7 @@ namespace :hyhead do
|
|
67
67
|
end
|
68
68
|
|
69
69
|
YARD::Rake::YardocTask.new(:doc) do |yt|
|
70
|
-
readme_filename = 'README.textile'
|
70
|
+
readme_filename = File.join(project_root,'README.textile')
|
71
71
|
textile_docs = []
|
72
72
|
Dir[File.join(project_root, "*.textile")].each_with_index do |f, index|
|
73
73
|
unless f.include?("/#{readme_filename}") # Skip readme, which is already built by the --readme option
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hydra-head
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15424113
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
9
|
- 0
|
10
10
|
- rc
|
11
|
-
-
|
12
|
-
version: 3.0.0.
|
11
|
+
- 2
|
12
|
+
version: 3.0.0.rc2
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- 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 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-10-
|
20
|
+
date: 2011-10-21 00:00:00 -05:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -505,7 +505,7 @@ dependencies:
|
|
505
505
|
type: :runtime
|
506
506
|
version_requirements: *id033
|
507
507
|
- !ruby/object:Gem::Dependency
|
508
|
-
name:
|
508
|
+
name: block_helpers
|
509
509
|
prerelease: false
|
510
510
|
requirement: &id034 !ruby/object:Gem::Requirement
|
511
511
|
none: false
|
@@ -519,7 +519,7 @@ dependencies:
|
|
519
519
|
type: :runtime
|
520
520
|
version_requirements: *id034
|
521
521
|
- !ruby/object:Gem::Dependency
|
522
|
-
name:
|
522
|
+
name: sanitize
|
523
523
|
prerelease: false
|
524
524
|
requirement: &id035 !ruby/object:Gem::Requirement
|
525
525
|
none: false
|
@@ -533,7 +533,7 @@ dependencies:
|
|
533
533
|
type: :runtime
|
534
534
|
version_requirements: *id035
|
535
535
|
- !ruby/object:Gem::Dependency
|
536
|
-
name:
|
536
|
+
name: yard
|
537
537
|
prerelease: false
|
538
538
|
requirement: &id036 !ruby/object:Gem::Requirement
|
539
539
|
none: false
|
@@ -544,7 +544,7 @@ dependencies:
|
|
544
544
|
segments:
|
545
545
|
- 0
|
546
546
|
version: "0"
|
547
|
-
type: :
|
547
|
+
type: :development
|
548
548
|
version_requirements: *id036
|
549
549
|
- !ruby/object:Gem::Dependency
|
550
550
|
name: jettywrapper
|
@@ -972,7 +972,6 @@ files:
|
|
972
972
|
- install.rb
|
973
973
|
- lib/application_controller.rb
|
974
974
|
- lib/application_helper.rb
|
975
|
-
- lib/blacklight.rb
|
976
975
|
- lib/blacklight/catalog_helper.rb
|
977
976
|
- lib/block_mapper.rb
|
978
977
|
- lib/djatoka.rb
|
data/lib/blacklight.rb
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
require "hydra-head" # This is a hacky way of ensuring that require_plugin_dependency is defined.
|
2
|
-
module Blacklight
|
3
|
-
|
4
|
-
require_plugin_dependency "vendor/plugins/blacklight/lib/blacklight.rb"
|
5
|
-
|
6
|
-
# This method overrides the default Blacklight self.init in order to support the opention of dual default/fulltext indexing
|
7
|
-
# that's supported in hydrangea. This also supports the traditional one index structure of Blacklight.
|
8
|
-
|
9
|
-
def self.init
|
10
|
-
|
11
|
-
solr_config = YAML::load(File.open("#{RAILS_ROOT}/config/solr.yml"))
|
12
|
-
raise "The #{RAILS_ENV} environment settings were not found in the solr.yml config" unless solr_config[RAILS_ENV]
|
13
|
-
|
14
|
-
if solr_config[RAILS_ENV].has_key?("default")
|
15
|
-
Blacklight.solr_config[:url] = solr_config[RAILS_ENV]['default']['url']
|
16
|
-
elsif solr_config[RAILS_ENV].has_key?('url')
|
17
|
-
Blacklight.solr_config[:url] = solr_config[RAILS_ENV]['url']
|
18
|
-
else
|
19
|
-
raise "BLACKLIGHT: Unable to configure solr -- #{solr_config.inspect}"
|
20
|
-
end
|
21
|
-
|
22
|
-
if Gem.available? 'curb'
|
23
|
-
require 'curb'
|
24
|
-
Blacklight.solr = RSolr::Ext.connect(Blacklight.solr_config.merge(:adapter=>:curb))
|
25
|
-
else
|
26
|
-
Blacklight.solr = RSolr::Ext.connect(Blacklight.solr_config)
|
27
|
-
end
|
28
|
-
|
29
|
-
# set the SolrDocument.connection to Blacklight.solr
|
30
|
-
SolrDocument.connection = Blacklight.solr
|
31
|
-
logger.info("BLACKLIGHT: running version #{Blacklight.version}")
|
32
|
-
logger.info("BLACKLIGHT: initialized with Blacklight.solr_config: #{Blacklight.solr_config.inspect}")
|
33
|
-
logger.info("BLACKLIGHT: initialized with Blacklight.solr: #{Blacklight.solr.inspect}")
|
34
|
-
logger.info("BLACKLIGHT: initialized with Blacklight.config: #{Blacklight.config.inspect}")
|
35
|
-
|
36
|
-
end
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
end
|