hydra-tutorial 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/hydra-tutorial.gemspec +1 -1
- data/open-repositories-tutorial.thor +5 -1
- metadata +4 -4
data/hydra-tutorial.gemspec
CHANGED
@@ -646,6 +646,9 @@ class HydraOpenRepositoriesTutorialApp < Thor::Group
|
|
646
646
|
"
|
647
647
|
end
|
648
648
|
|
649
|
+
insert_into_file "app/assets/javascripts/application.js", :after => "//= require_tree .\n" do
|
650
|
+
"Blacklight.do_search_context_behavior = function() { }\n"
|
651
|
+
end
|
649
652
|
say %Q{
|
650
653
|
We'll also update our controller to provide access controls on records.
|
651
654
|
}
|
@@ -793,7 +796,8 @@ class HydraOpenRepositoriesTutorialApp < Thor::Group
|
|
793
796
|
" include Hydra::Controller::UploadBehavior\n"
|
794
797
|
end
|
795
798
|
insert_into_file "app/controllers/records_controller.rb", :after => "apply_depositor_metadata(@record)\n" do
|
796
|
-
"
|
799
|
+
" @record.label = params[:record][:title] # this is a bad hack to work around an AF bug\n" +
|
800
|
+
" add_posted_blob_to_asset(@record, params[:filedata]) if params.has_key?(:filedata)\n"
|
797
801
|
end
|
798
802
|
end
|
799
803
|
|
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.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -112,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
112
112
|
version: '0'
|
113
113
|
segments:
|
114
114
|
- 0
|
115
|
-
hash:
|
115
|
+
hash: 2344410728046652505
|
116
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
117
|
none: false
|
118
118
|
requirements:
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
version: '0'
|
122
122
|
segments:
|
123
123
|
- 0
|
124
|
-
hash:
|
124
|
+
hash: 2344410728046652505
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
127
|
rubygems_version: 1.8.24
|