hydra-head 3.1.5 → 3.2.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/CREATE_RAILS_APP.textile +2 -3
- data/Gemfile.lock +34 -32
- data/HISTORY.textile +8 -0
- data/app/models/file_asset.rb +1 -111
- data/app/models/mods_asset.rb +1 -1
- data/hydra-head.gemspec +2 -2
- data/lib/hydra-head.rb +1 -0
- data/lib/hydra-head/railtie.rb +11 -0
- data/lib/hydra-head/version.rb +1 -1
- data/lib/hydra.rb +2 -0
- data/lib/hydra/assets.rb +1 -1
- data/lib/hydra/assets_controller_helper.rb +1 -0
- data/lib/hydra/catalog.rb +7 -4
- data/lib/hydra/file_assets.rb +6 -17
- data/lib/hydra/image.rb +3 -0
- data/lib/hydra/model_methods.rb +6 -0
- data/lib/hydra/models/file_asset.rb +74 -0
- data/lib/railties/hydra-fixtures.rake +1 -3
- data/lib/railties/hydra_jetty.rake +1 -1
- data/tasks/hydra-head-fixtures.rake +1 -2
- data/test_support/features/step_definitions/edit_metadata_steps.rb +4 -4
- data/test_support/features/step_definitions/file_list_steps.rb +5 -5
- data/test_support/features/step_definitions/user_steps.rb +4 -4
- data/test_support/spec/helpers/hydra_assets_helper_spec.rb +5 -57
- data/test_support/spec/integration/file_asset_spec.rb +5 -56
- data/test_support/spec/models/file_asset_spec.rb +0 -17
- data/vendor/cache/{active-fedora-3.1.4.gem → active-fedora-3.2.0.pre5.gem} +0 -0
- data/vendor/cache/columnize-0.3.6.gem +0 -0
- data/vendor/cache/cucumber-1.1.4.gem +0 -0
- data/vendor/cache/{cucumber-rails-1.2.0.gem → cucumber-rails-1.2.1.gem} +0 -0
- data/vendor/cache/daemons-1.1.5.gem +0 -0
- data/vendor/cache/gherkin-2.7.1.gem +0 -0
- data/vendor/cache/haml-3.1.4.gem +0 -0
- data/vendor/cache/jettywrapper-1.2.0.gem +0 -0
- data/vendor/cache/json-1.6.3.gem +0 -0
- data/vendor/cache/json_pure-1.6.4.gem +0 -0
- data/vendor/cache/kaminari-0.13.0.gem +0 -0
- data/vendor/cache/om-1.4.4.gem +0 -0
- data/vendor/cache/rdoc-3.12.gem +0 -0
- data/vendor/cache/rubydora-0.3.1.gem +0 -0
- data/vendor/cache/selenium-webdriver-2.15.0.gem +0 -0
- data/vendor/cache/solrizer-fedora-1.2.2.gem +0 -0
- data/vendor/cache/stomp-1.2.0.gem +0 -0
- data/vendor/cache/yard-0.7.4.gem +0 -0
- metadata +43 -36
- data/app/views/catalog/_email_form.html.erb +0 -9
- data/vendor/cache/columnize-0.3.5.gem +0 -0
- data/vendor/cache/cucumber-1.1.3.gem +0 -0
- data/vendor/cache/daemons-1.1.4.gem +0 -0
- data/vendor/cache/gherkin-2.6.8.gem +0 -0
- data/vendor/cache/haml-3.1.3.gem +0 -0
- data/vendor/cache/jettywrapper-1.1.0.gem +0 -0
- data/vendor/cache/json-1.6.2.gem +0 -0
- data/vendor/cache/json_pure-1.6.2.gem +0 -0
- data/vendor/cache/kaminari-0.12.4.gem +0 -0
- data/vendor/cache/om-1.4.3.gem +0 -0
- data/vendor/cache/rdoc-3.11.gem +0 -0
- data/vendor/cache/rubydora-0.2.6.gem +0 -0
- data/vendor/cache/selenium-webdriver-2.13.0.gem +0 -0
- data/vendor/cache/solrizer-fedora-1.2.0.gem +0 -0
- data/vendor/cache/stomp-1.1.10.gem +0 -0
- data/vendor/cache/yard-0.7.3.gem +0 -0
@@ -4,7 +4,6 @@ require "active_fedora"
|
|
4
4
|
describe FileAsset do
|
5
5
|
|
6
6
|
before(:each) do
|
7
|
-
# Fedora::Repository.stubs(:instance).returns(stub_everything())
|
8
7
|
@file_asset = FileAsset.new
|
9
8
|
@file_asset.stubs(:create_date).returns("2008-07-02T05:09:42.015Z")
|
10
9
|
@file_asset.stubs(:modified_date).returns("2008-09-29T21:21:52.892Z")
|
@@ -19,22 +18,6 @@ describe FileAsset do
|
|
19
18
|
@file_asset.should respond_to(:apply_depositor_metadata)
|
20
19
|
end
|
21
20
|
|
22
|
-
describe '#garbage_collect' do
|
23
|
-
it "should delete the object if it does not have any objects asserting has_collection_member" do
|
24
|
-
mock_non_orphan = mock("non-orphan file asset", :containers=>["foo"])
|
25
|
-
mock_non_orphan.expects(:delete).never
|
26
|
-
|
27
|
-
mock_orphan = mock("orphan file asset", :containers=>[])
|
28
|
-
mock_orphan.expects(:delete)
|
29
|
-
|
30
|
-
FileAsset.expects(:load_instance).with("_non_orphan_pid_").returns(mock_non_orphan)
|
31
|
-
FileAsset.expects(:load_instance).with("_orphan_pid_").returns(mock_orphan)
|
32
|
-
|
33
|
-
FileAsset.garbage_collect("_non_orphan_pid_")
|
34
|
-
FileAsset.garbage_collect("_orphan_pid_")
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
21
|
describe 'label' do
|
39
22
|
asset = FileAsset.new
|
40
23
|
asset.label = 'image.jp2'
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hydra-head
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 1923832043
|
5
|
+
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 3
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
- pre
|
8
11
|
- 1
|
9
|
-
|
10
|
-
version: 3.1.5
|
12
|
+
version: 3.2.0.pre1
|
11
13
|
platform: ruby
|
12
14
|
authors:
|
13
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
|
@@ -15,7 +17,7 @@ autorequire:
|
|
15
17
|
bindir: bin
|
16
18
|
cert_chain: []
|
17
19
|
|
18
|
-
date:
|
20
|
+
date: 2012-01-01 00:00:00 -06:00
|
19
21
|
default_executable:
|
20
22
|
dependencies:
|
21
23
|
- !ruby/object:Gem::Dependency
|
@@ -72,14 +74,16 @@ dependencies:
|
|
72
74
|
requirement: &id004 !ruby/object:Gem::Requirement
|
73
75
|
none: false
|
74
76
|
requirements:
|
75
|
-
- -
|
77
|
+
- - ">="
|
76
78
|
- !ruby/object:Gem::Version
|
77
|
-
hash:
|
79
|
+
hash: 1923832035
|
78
80
|
segments:
|
79
81
|
- 3
|
80
|
-
-
|
81
|
-
-
|
82
|
-
|
82
|
+
- 2
|
83
|
+
- 0
|
84
|
+
- pre
|
85
|
+
- 5
|
86
|
+
version: 3.2.0.pre5
|
83
87
|
type: :runtime
|
84
88
|
version_requirements: *id004
|
85
89
|
- !ruby/object:Gem::Dependency
|
@@ -444,12 +448,12 @@ dependencies:
|
|
444
448
|
requirements:
|
445
449
|
- - ">="
|
446
450
|
- !ruby/object:Gem::Version
|
447
|
-
hash:
|
451
|
+
hash: 27
|
448
452
|
segments:
|
449
453
|
- 1
|
450
454
|
- 2
|
451
|
-
-
|
452
|
-
version: 1.2.
|
455
|
+
- 2
|
456
|
+
version: 1.2.2
|
453
457
|
type: :runtime
|
454
458
|
version_requirements: *id029
|
455
459
|
- !ruby/object:Gem::Dependency
|
@@ -789,7 +793,6 @@ files:
|
|
789
793
|
- app/views/catalog/_document_list.html.erb
|
790
794
|
- app/views/catalog/_edit_partials/_default.html.erb
|
791
795
|
- app/views/catalog/_edit_partials/_default_details.html.erb
|
792
|
-
- app/views/catalog/_email_form.html.erb
|
793
796
|
- app/views/catalog/_facets.html.erb
|
794
797
|
- app/views/catalog/_home.html.erb
|
795
798
|
- app/views/catalog/_home_text.html.erb
|
@@ -985,6 +988,7 @@ files:
|
|
985
988
|
- lib/hydra-head.rb
|
986
989
|
- lib/hydra-head/controller.rb
|
987
990
|
- lib/hydra-head/engine.rb
|
991
|
+
- lib/hydra-head/railtie.rb
|
988
992
|
- lib/hydra-head/routes.rb
|
989
993
|
- lib/hydra-head/version.rb
|
990
994
|
- lib/hydra.rb
|
@@ -1005,6 +1009,7 @@ files:
|
|
1005
1009
|
- lib/hydra/model_mixins.rb
|
1006
1010
|
- lib/hydra/model_mixins/common_metadata.rb
|
1007
1011
|
- lib/hydra/model_mixins/mods_object.rb
|
1012
|
+
- lib/hydra/models/file_asset.rb
|
1008
1013
|
- lib/hydra/mods_article.rb
|
1009
1014
|
- lib/hydra/mods_dataset.rb
|
1010
1015
|
- lib/hydra/mods_generic_content.rb
|
@@ -1154,7 +1159,7 @@ files:
|
|
1154
1159
|
- vendor/cache/abstract-1.0.0.gem
|
1155
1160
|
- vendor/cache/actionmailer-3.0.11.gem
|
1156
1161
|
- vendor/cache/actionpack-3.0.11.gem
|
1157
|
-
- vendor/cache/active-fedora-3.
|
1162
|
+
- vendor/cache/active-fedora-3.2.0.pre5.gem
|
1158
1163
|
- vendor/cache/activemodel-3.0.11.gem
|
1159
1164
|
- vendor/cache/activerecord-3.0.11.gem
|
1160
1165
|
- vendor/cache/activeresource-3.0.11.gem
|
@@ -1167,12 +1172,12 @@ files:
|
|
1167
1172
|
- vendor/cache/builder-2.1.2.gem
|
1168
1173
|
- vendor/cache/capybara-1.1.2.gem
|
1169
1174
|
- vendor/cache/childprocess-0.2.3.gem
|
1170
|
-
- vendor/cache/columnize-0.3.
|
1175
|
+
- vendor/cache/columnize-0.3.6.gem
|
1171
1176
|
- vendor/cache/crack-0.3.1.gem
|
1172
|
-
- vendor/cache/cucumber-1.1.
|
1173
|
-
- vendor/cache/cucumber-rails-1.2.
|
1177
|
+
- vendor/cache/cucumber-1.1.4.gem
|
1178
|
+
- vendor/cache/cucumber-rails-1.2.1.gem
|
1174
1179
|
- vendor/cache/curb-0.7.15.gem
|
1175
|
-
- vendor/cache/daemons-1.1.
|
1180
|
+
- vendor/cache/daemons-1.1.5.gem
|
1176
1181
|
- vendor/cache/database_cleaner-0.7.0.gem
|
1177
1182
|
- vendor/cache/diff-lcs-1.1.3.gem
|
1178
1183
|
- vendor/cache/equivalent-xml-0.2.8.gem
|
@@ -1181,16 +1186,16 @@ files:
|
|
1181
1186
|
- vendor/cache/factory_girl-2.3.2.gem
|
1182
1187
|
- vendor/cache/fastercsv-1.5.4.gem
|
1183
1188
|
- vendor/cache/ffi-1.0.11.gem
|
1184
|
-
- vendor/cache/gherkin-2.
|
1189
|
+
- vendor/cache/gherkin-2.7.1.gem
|
1185
1190
|
- vendor/cache/gyoku-0.4.4.gem
|
1186
|
-
- vendor/cache/haml-3.1.
|
1191
|
+
- vendor/cache/haml-3.1.4.gem
|
1187
1192
|
- vendor/cache/httparty-0.8.1.gem
|
1188
1193
|
- vendor/cache/httpi-0.9.5.gem
|
1189
1194
|
- vendor/cache/i18n-0.5.0.gem
|
1190
|
-
- vendor/cache/jettywrapper-1.
|
1191
|
-
- vendor/cache/json-1.6.
|
1192
|
-
- vendor/cache/json_pure-1.6.
|
1193
|
-
- vendor/cache/kaminari-0.
|
1195
|
+
- vendor/cache/jettywrapper-1.2.0.gem
|
1196
|
+
- vendor/cache/json-1.6.3.gem
|
1197
|
+
- vendor/cache/json_pure-1.6.4.gem
|
1198
|
+
- vendor/cache/kaminari-0.13.0.gem
|
1194
1199
|
- vendor/cache/launchy-2.0.5.gem
|
1195
1200
|
- vendor/cache/linecache-0.46.gem
|
1196
1201
|
- vendor/cache/logger-1.2.8.gem
|
@@ -1205,7 +1210,7 @@ files:
|
|
1205
1210
|
- vendor/cache/multipart-post-1.1.2.gem
|
1206
1211
|
- vendor/cache/nokogiri-1.5.0.gem
|
1207
1212
|
- vendor/cache/nori-1.0.2.gem
|
1208
|
-
- vendor/cache/om-1.4.
|
1213
|
+
- vendor/cache/om-1.4.4.gem
|
1209
1214
|
- vendor/cache/polyglot-0.3.3.gem
|
1210
1215
|
- vendor/cache/rack-1.2.4.gem
|
1211
1216
|
- vendor/cache/rack-mount-0.6.14.gem
|
@@ -1216,7 +1221,7 @@ files:
|
|
1216
1221
|
- vendor/cache/rbx-require-relative-0.0.5.gem
|
1217
1222
|
- vendor/cache/rdf-0.3.4.1.gem
|
1218
1223
|
- vendor/cache/rdf-rdfxml-0.3.5.gem
|
1219
|
-
- vendor/cache/rdoc-3.
|
1224
|
+
- vendor/cache/rdoc-3.12.gem
|
1220
1225
|
- vendor/cache/rest-client-1.6.7.gem
|
1221
1226
|
- vendor/cache/rsolr-1.0.2.gem
|
1222
1227
|
- vendor/cache/rsolr-ext-1.0.3.gem
|
@@ -1227,15 +1232,15 @@ files:
|
|
1227
1232
|
- vendor/cache/rspec-rails-2.7.0.gem
|
1228
1233
|
- vendor/cache/ruby-debug-0.10.4.gem
|
1229
1234
|
- vendor/cache/ruby-debug-base-0.10.4.gem
|
1230
|
-
- vendor/cache/rubydora-0.
|
1235
|
+
- vendor/cache/rubydora-0.3.1.gem
|
1231
1236
|
- vendor/cache/rubyzip-0.9.5.gem
|
1232
1237
|
- vendor/cache/sanitize-2.0.3.gem
|
1233
1238
|
- vendor/cache/savon-0.9.7.gem
|
1234
|
-
- vendor/cache/selenium-webdriver-2.
|
1239
|
+
- vendor/cache/selenium-webdriver-2.15.0.gem
|
1235
1240
|
- vendor/cache/solr-ruby-0.0.8.gem
|
1236
1241
|
- vendor/cache/solrizer-1.1.2.gem
|
1237
|
-
- vendor/cache/solrizer-fedora-1.2.
|
1238
|
-
- vendor/cache/stomp-1.
|
1242
|
+
- vendor/cache/solrizer-fedora-1.2.2.gem
|
1243
|
+
- vendor/cache/stomp-1.2.0.gem
|
1239
1244
|
- vendor/cache/term-ansicolor-1.0.7.gem
|
1240
1245
|
- vendor/cache/thor-0.14.6.gem
|
1241
1246
|
- vendor/cache/treetop-1.4.10.gem
|
@@ -1246,7 +1251,7 @@ files:
|
|
1246
1251
|
- vendor/cache/will_paginate-3.0.2.gem
|
1247
1252
|
- vendor/cache/xml-simple-1.1.1.gem
|
1248
1253
|
- vendor/cache/xpath-0.1.4.gem
|
1249
|
-
- vendor/cache/yard-0.7.
|
1254
|
+
- vendor/cache/yard-0.7.4.gem
|
1250
1255
|
has_rdoc: true
|
1251
1256
|
homepage: http://projecthydra.org
|
1252
1257
|
licenses: []
|
@@ -1268,12 +1273,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1268
1273
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1269
1274
|
none: false
|
1270
1275
|
requirements:
|
1271
|
-
- - "
|
1276
|
+
- - ">"
|
1272
1277
|
- !ruby/object:Gem::Version
|
1273
|
-
hash:
|
1278
|
+
hash: 25
|
1274
1279
|
segments:
|
1275
|
-
-
|
1276
|
-
|
1280
|
+
- 1
|
1281
|
+
- 3
|
1282
|
+
- 1
|
1283
|
+
version: 1.3.1
|
1277
1284
|
requirements: []
|
1278
1285
|
|
1279
1286
|
rubyforge_project:
|
@@ -1,9 +0,0 @@
|
|
1
|
-
<h1>Email This</h1>
|
2
|
-
|
3
|
-
<%= form_tag url_for(:action => 'send_email_record', :style => 'email'), :id => 'email_form', :method => :post do %>
|
4
|
-
<%= label_tag(:to, "Email:") %><br/>
|
5
|
-
<%= text_field_tag(:to) %><br/>
|
6
|
-
<%= label_tag(:message, "Message:") %><br/>
|
7
|
-
<%= text_area_tag(:message, nil, :rows => 10, :cols => 25) %><br/>
|
8
|
-
<%= submit_tag "Send" %>
|
9
|
-
<% end %>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/cache/haml-3.1.3.gem
DELETED
Binary file
|
Binary file
|
data/vendor/cache/json-1.6.2.gem
DELETED
Binary file
|
Binary file
|
Binary file
|
data/vendor/cache/om-1.4.3.gem
DELETED
Binary file
|
data/vendor/cache/rdoc-3.11.gem
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/cache/yard-0.7.3.gem
DELETED
Binary file
|