hydra-tutorial 0.0.5 → 0.0.6
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/README.md +18 -0
- data/hydra-tutorial.gemspec +1 -1
- data/open-repositories-tutorial.thor +4 -0
- metadata +3 -3
data/README.md
CHANGED
@@ -1,10 +1,28 @@
|
|
1
1
|
# Hydra Tutorial Application
|
2
2
|
|
3
|
+
The tutorial will:
|
4
|
+
|
5
|
+
* installs basic application prerequisites
|
6
|
+
* generate a new rails application
|
7
|
+
* walks through building a Hydra model:
|
8
|
+
* first, as a AF::Base object with an XML datastream
|
9
|
+
* then, with a simple OM terminology for a basic, contrived schema
|
10
|
+
* finally, with a simple MODS-based terminology
|
11
|
+
* wire the model into Rails using standard Rails scaffolding
|
12
|
+
* adding blacklight and hydra-head gems for object discovery
|
13
|
+
* add a basic rspec/capybara test
|
14
|
+
|
15
|
+
Throughout the process, there's a number of prompts to poke around the
|
16
|
+
rails console and/or in a browser. At the end of the tutorial, you have
|
17
|
+
a working Hydra Head for adding MODS-based metadata records. In the next
|
18
|
+
release, I'll try to wire in file uploads, collections, etc.
|
19
|
+
|
3
20
|
## Pre-requisites
|
4
21
|
* ruby v 1.8.7 or higher
|
5
22
|
* java 1.5 or higher (in order to run solr under a java servlet container)
|
6
23
|
* [[RVM|https://rvm.beginrescueend.com/rvm/install/]] (recommended)
|
7
24
|
|
25
|
+
## Using
|
8
26
|
```bash
|
9
27
|
<INSTALL RUBY, e.g.:
|
10
28
|
$ curl -L https://get.rvm.io | bash -s stable --ruby
|
data/hydra-tutorial.gemspec
CHANGED
@@ -244,6 +244,10 @@ class HydraOpenRepositoriesTutorialApp < Thor::Group
|
|
244
244
|
}, Thor::Shell::Color::YELLOW
|
245
245
|
run "rails new #{$application_root}"
|
246
246
|
run "cd #{$application_root}"
|
247
|
+
inside $application_root do
|
248
|
+
gem 'execjs'
|
249
|
+
gem 'therubyracer'
|
250
|
+
end
|
247
251
|
end
|
248
252
|
|
249
253
|
def out_of_the_box
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hydra-tutorial
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -111,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
segments:
|
113
113
|
- 0
|
114
|
-
hash: -
|
114
|
+
hash: -3693139295353040724
|
115
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
segments:
|
122
122
|
- 0
|
123
|
-
hash: -
|
123
|
+
hash: -3693139295353040724
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
126
|
rubygems_version: 1.8.24
|