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.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "hydra-tutorial"
3
- s.version = "0.0.8"
3
+ s.version = "0.0.9"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.authors = ["Chris Beer"]
6
6
  s.email = ["hydra-tech@googlegroups.com"]
@@ -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
- " add_posted_blob_to_asset(@record, params[:filedata]) if params.has_key?(:filedata)\n"
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.8
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-11 00:00:00.000000000 Z
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: -366629335021699433
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: -366629335021699433
124
+ hash: 2344410728046652505
125
125
  requirements: []
126
126
  rubyforge_project:
127
127
  rubygems_version: 1.8.24