hydra-ezid 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +46 -0
- data/.gitmodules +4 -0
- data/.travis.yml +17 -0
- data/CONTRIBUTING.md +111 -0
- data/CONTRIBUTORS.md +3 -0
- data/Gemfile +17 -0
- data/History.md +5 -0
- data/LICENSE +191 -0
- data/README.md +72 -0
- data/Rakefile +16 -0
- data/app/assets/images/hydra_ezid/.keep +0 -0
- data/app/assets/javascripts/hydra_ezid/.keep +0 -0
- data/app/assets/stylesheets/hydra_ezid/.keep +0 -0
- data/app/controllers/.keep +0 -0
- data/app/controllers/ezid_controller.rb +3 -0
- data/app/helpers/.keep +0 -0
- data/app/helpers/ezid_helper.rb +3 -0
- data/app/mailers/.keep +0 -0
- data/app/models/.keep +0 -0
- data/app/views/.keep +0 -0
- data/app/views/ezid/_button_to_mint_ezid.html.erb +1 -0
- data/config/routes.rb +3 -0
- data/fedora_conf/conf/development/fedora.fcfg +946 -0
- data/fedora_conf/conf/test/fedora.fcfg +946 -0
- data/gemfiles/rails3.gemfile +6 -0
- data/gemfiles/rails4.gemfile +6 -0
- data/hydra-ezid.gemspec +29 -0
- data/lib/hydra-ezid.rb +6 -0
- data/lib/hydra/ezid.rb +11 -0
- data/lib/hydra/ezid/controller_behavior.rb +27 -0
- data/lib/hydra/ezid/model_methods.rb +10 -0
- data/lib/hydra/ezid/version.rb +5 -0
- data/solr_conf/conf/schema.xml +372 -0
- data/solr_conf/conf/solrconfig.xml +164 -0
- data/solr_conf/solr.xml +35 -0
- data/spec/controllers/ezid_controller_spec.rb +4 -0
- data/spec/factories.rb +3 -0
- data/spec/factories/.keep +0 -0
- data/spec/helpers/ezid_helper_spec.rb +6 -0
- data/spec/models/ezid_spec.rb +4 -0
- data/spec/spec_helper.rb +30 -0
- data/spec/support/app/models/sample.rb +36 -0
- data/spec/support/app/views/catalog/_sort_and_per_page.html.erb +10 -0
- data/spec/support/db/migrate/20111101221803_create_searches.rb +16 -0
- data/spec/support/lib/generators/test_app_generator.rb +56 -0
- data/spec/support/lib/tasks/rspec.rake +8 -0
- data/tasks/hydra-ezid-dev.rake +68 -0
- data/tasks/jetty.rake +40 -0
- metadata +207 -0
data/tasks/jetty.rake
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
namespace :jetty do
|
2
|
+
desc "Copies the default Solr & Fedora configs into the bundled Hydra Testing Server"
|
3
|
+
task :config do
|
4
|
+
Rake::Task["jetty:config_fedora"].invoke
|
5
|
+
Rake::Task["jetty:config_solr"].invoke
|
6
|
+
end
|
7
|
+
|
8
|
+
desc "Copies the contents of solr_conf into the Solr development-core and test-core of Testing Server"
|
9
|
+
task :config_solr do
|
10
|
+
FileList['solr_conf/conf/*'].each do |f|
|
11
|
+
cp("#{f}", 'jetty/solr/development-core/conf/', :verbose => true)
|
12
|
+
cp("#{f}", 'jetty/solr/test-core/conf/', :verbose => true)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
desc "Copies a custom fedora config for the bundled Hydra Testing Server"
|
17
|
+
task :config_fedora do
|
18
|
+
# load a custom fedora.fcfg -
|
19
|
+
if defined?(Rails.root)
|
20
|
+
app_root = Rails.root
|
21
|
+
else
|
22
|
+
app_root = File.join(File.dirname(__FILE__),"..")
|
23
|
+
end
|
24
|
+
|
25
|
+
fcfg = File.join(app_root,"fedora_conf","conf","development","fedora.fcfg")
|
26
|
+
if File.exists?(fcfg)
|
27
|
+
puts "copying over development/fedora.fcfg"
|
28
|
+
cp("#{fcfg}", 'jetty/fedora/default/server/config/', :verbose => true)
|
29
|
+
else
|
30
|
+
puts "#{fcfg} file not found -- skipping fedora config"
|
31
|
+
end
|
32
|
+
fcfg = File.join(app_root,"fedora_conf","conf","test","fedora.fcfg")
|
33
|
+
if File.exists?(fcfg)
|
34
|
+
puts "copying over test/fedora.fcfg"
|
35
|
+
cp("#{fcfg}", 'jetty/fedora/test/server/config/', :verbose => true)
|
36
|
+
else
|
37
|
+
puts "#{fcfg} file not found -- skipping fedora config"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
metadata
ADDED
@@ -0,0 +1,207 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hydra-ezid
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Michael J. Giarlo
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-08-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: blacklight
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: hydra-head
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: ezid
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.3'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.3'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec-rails
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: sass-rails
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - <
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '5'
|
104
|
+
- - '>='
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '3.2'
|
107
|
+
type: :development
|
108
|
+
prerelease: false
|
109
|
+
version_requirements: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - <
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '5'
|
114
|
+
- - '>='
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '3.2'
|
117
|
+
description: A Rails engine providing EZID services for Hydra applications
|
118
|
+
email:
|
119
|
+
- leftwing@alumni.rutgers.edu
|
120
|
+
executables: []
|
121
|
+
extensions: []
|
122
|
+
extra_rdoc_files: []
|
123
|
+
files:
|
124
|
+
- .gitignore
|
125
|
+
- .gitmodules
|
126
|
+
- .travis.yml
|
127
|
+
- CONTRIBUTING.md
|
128
|
+
- CONTRIBUTORS.md
|
129
|
+
- Gemfile
|
130
|
+
- History.md
|
131
|
+
- LICENSE
|
132
|
+
- README.md
|
133
|
+
- Rakefile
|
134
|
+
- app/assets/images/hydra_ezid/.keep
|
135
|
+
- app/assets/javascripts/hydra_ezid/.keep
|
136
|
+
- app/assets/stylesheets/hydra_ezid/.keep
|
137
|
+
- app/controllers/.keep
|
138
|
+
- app/controllers/ezid_controller.rb
|
139
|
+
- app/helpers/.keep
|
140
|
+
- app/helpers/ezid_helper.rb
|
141
|
+
- app/mailers/.keep
|
142
|
+
- app/models/.keep
|
143
|
+
- app/views/.keep
|
144
|
+
- app/views/ezid/_button_to_mint_ezid.html.erb
|
145
|
+
- config/routes.rb
|
146
|
+
- fedora_conf/conf/development/fedora.fcfg
|
147
|
+
- fedora_conf/conf/test/fedora.fcfg
|
148
|
+
- gemfiles/rails3.gemfile
|
149
|
+
- gemfiles/rails4.gemfile
|
150
|
+
- hydra-ezid.gemspec
|
151
|
+
- lib/hydra-ezid.rb
|
152
|
+
- lib/hydra/ezid.rb
|
153
|
+
- lib/hydra/ezid/controller_behavior.rb
|
154
|
+
- lib/hydra/ezid/model_methods.rb
|
155
|
+
- lib/hydra/ezid/version.rb
|
156
|
+
- solr_conf/conf/schema.xml
|
157
|
+
- solr_conf/conf/solrconfig.xml
|
158
|
+
- solr_conf/solr.xml
|
159
|
+
- spec/controllers/ezid_controller_spec.rb
|
160
|
+
- spec/factories.rb
|
161
|
+
- spec/factories/.keep
|
162
|
+
- spec/helpers/ezid_helper_spec.rb
|
163
|
+
- spec/models/ezid_spec.rb
|
164
|
+
- spec/spec_helper.rb
|
165
|
+
- spec/support/app/models/sample.rb
|
166
|
+
- spec/support/app/views/catalog/_sort_and_per_page.html.erb
|
167
|
+
- spec/support/db/migrate/20111101221803_create_searches.rb
|
168
|
+
- spec/support/lib/generators/test_app_generator.rb
|
169
|
+
- spec/support/lib/tasks/rspec.rake
|
170
|
+
- tasks/hydra-ezid-dev.rake
|
171
|
+
- tasks/jetty.rake
|
172
|
+
homepage: https://github.com/psu-stewardship/hydra-ezid
|
173
|
+
licenses:
|
174
|
+
- APACHE2
|
175
|
+
metadata: {}
|
176
|
+
post_install_message:
|
177
|
+
rdoc_options: []
|
178
|
+
require_paths:
|
179
|
+
- lib
|
180
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
181
|
+
requirements:
|
182
|
+
- - '>='
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
version: '0'
|
185
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - '>='
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
requirements: []
|
191
|
+
rubyforge_project:
|
192
|
+
rubygems_version: 2.0.3
|
193
|
+
signing_key:
|
194
|
+
specification_version: 4
|
195
|
+
summary: A Rails engine providing EZID services for Hydra applications
|
196
|
+
test_files:
|
197
|
+
- spec/controllers/ezid_controller_spec.rb
|
198
|
+
- spec/factories.rb
|
199
|
+
- spec/factories/.keep
|
200
|
+
- spec/helpers/ezid_helper_spec.rb
|
201
|
+
- spec/models/ezid_spec.rb
|
202
|
+
- spec/spec_helper.rb
|
203
|
+
- spec/support/app/models/sample.rb
|
204
|
+
- spec/support/app/views/catalog/_sort_and_per_page.html.erb
|
205
|
+
- spec/support/db/migrate/20111101221803_create_searches.rb
|
206
|
+
- spec/support/lib/generators/test_app_generator.rb
|
207
|
+
- spec/support/lib/tasks/rspec.rake
|