blacklight 3.0.0pre3 → 3.0.0pre4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/blacklight.rb +1 -0
- data/lib/blacklight/catalog.rb +2 -1
- data/lib/blacklight/controller.rb +2 -2
- data/lib/blacklight/engine.rb +5 -5
- data/lib/blacklight/version.rb +6 -4
- data/lib/generators/blacklight/assets_generator.rb +3 -3
- data/lib/generators/blacklight/templates/public/images/{bg.png → blacklight/bg.png} +0 -0
- data/lib/generators/blacklight/templates/public/images/{border.png → blacklight/border.png} +0 -0
- data/lib/generators/blacklight/templates/public/images/{bul_sq_gry.gif → blacklight/bul_sq_gry.gif} +0 -0
- data/lib/generators/blacklight/templates/public/images/{checkmark.gif → blacklight/checkmark.gif} +0 -0
- data/lib/generators/blacklight/templates/public/images/{logo.png → blacklight/logo.png} +0 -0
- data/lib/generators/blacklight/templates/public/images/{magnifying_glass.gif → blacklight/magnifying_glass.gif} +0 -0
- data/lib/generators/blacklight/templates/public/images/{remove.gif → blacklight/remove.gif} +0 -0
- data/lib/generators/blacklight/templates/public/images/{separator.gif → blacklight/separator.gif} +0 -0
- data/lib/generators/blacklight/templates/public/images/{start_over.gif → blacklight/start_over.gif} +0 -0
- data/lib/generators/blacklight/templates/public/javascripts/{blacklight.js → blacklight/blacklight.js} +0 -0
- data/lib/generators/blacklight/templates/public/stylesheets/{blacklight.css → blacklight/blacklight.css} +0 -0
- data/lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-anim_basic_16x16.gif +0 -0
- metadata +23 -19
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.0pre4
|
data/lib/blacklight.rb
CHANGED
data/lib/blacklight/catalog.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
module Blacklight::Catalog
|
2
2
|
extend ActiveSupport::Concern
|
3
|
-
|
3
|
+
|
4
4
|
|
5
5
|
# The following code is executed when someone includes blacklight::catalog in their
|
6
6
|
# own controller.
|
7
7
|
included do
|
8
|
+
include Blacklight::SolrHelper
|
8
9
|
before_filter :search_session, :history_session
|
9
10
|
before_filter :delete_or_assign_search_session_params, :only => :index
|
10
11
|
after_filter :set_additional_search_session_values, :only=>:index
|
@@ -39,9 +39,9 @@ module Blacklight::Controller
|
|
39
39
|
# http://api.rubyonrails.org/classes/ActionController/Filters/ClassMethods.html
|
40
40
|
# for how to turn off a filter in a sub-class and such.
|
41
41
|
def default_html_head
|
42
|
-
stylesheet_links << ['
|
42
|
+
stylesheet_links << ['yui', 'jquery/ui-lightness/jquery-ui-1.8.1.custom.css', 'blacklight/blacklight', {:media=>'all'}]
|
43
43
|
|
44
|
-
javascript_includes << ['
|
44
|
+
javascript_includes << ['jquery-1.4.2.min.js', 'jquery-ui-1.8.1.custom.min.js', 'blacklight/blacklight' ]
|
45
45
|
end
|
46
46
|
|
47
47
|
|
data/lib/blacklight/engine.rb
CHANGED
@@ -15,11 +15,11 @@ module Blackight
|
|
15
15
|
# innitilization process.
|
16
16
|
# See: http://www.cowboycoded.com/2010/08/02/hooking-in-your-rails-3-engine-or-railtie-initializer-in-the-right-place/
|
17
17
|
initializer 'blacklight.init', :after=> :disable_dependency_loading do |app|
|
18
|
-
#
|
19
|
-
#
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
# Check for a blacklight_install envrionment variable - if set then blacklight
|
19
|
+
# is actively being installed and we should not attempt an init at this time.
|
20
|
+
if defined?(Rails::Server)
|
21
|
+
Blacklight.init
|
22
|
+
end
|
23
23
|
end
|
24
24
|
|
25
25
|
# This makes our rake tasks visible.
|
data/lib/blacklight/version.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
module Blacklight
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
unless Blacklight.const_defined? :VERSION
|
3
|
+
def self.version
|
4
|
+
@version ||= File.read(File.join(File.dirname(__FILE__), '..', '..', 'VERSION')).chomp
|
5
|
+
end
|
5
6
|
|
6
|
-
|
7
|
+
VERSION = self.version
|
8
|
+
end
|
7
9
|
end
|
@@ -16,9 +16,9 @@ module Blacklight
|
|
16
16
|
source_root File.expand_path('../templates', __FILE__)
|
17
17
|
|
18
18
|
def assets
|
19
|
-
directory("public/images"
|
20
|
-
directory("public/stylesheets"
|
21
|
-
directory("public/javascripts"
|
19
|
+
directory("public/images")
|
20
|
+
directory("public/stylesheets")
|
21
|
+
directory("public/javascripts")
|
22
22
|
end
|
23
23
|
|
24
24
|
end
|
File without changes
|
File without changes
|
data/lib/generators/blacklight/templates/public/images/{bul_sq_gry.gif → blacklight/bul_sq_gry.gif}
RENAMED
File without changes
|
data/lib/generators/blacklight/templates/public/images/{checkmark.gif → blacklight/checkmark.gif}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/generators/blacklight/templates/public/images/{separator.gif → blacklight/separator.gif}
RENAMED
File without changes
|
data/lib/generators/blacklight/templates/public/images/{start_over.gif → blacklight/start_over.gif}
RENAMED
File without changes
|
File without changes
|
File without changes
|
Binary file
|
metadata
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 1923832001
|
5
|
+
prerelease: 5
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
|
9
|
+
- 0
|
10
|
+
- pre
|
11
|
+
- 4
|
12
|
+
version: 3.0.0pre4
|
11
13
|
platform: ruby
|
12
14
|
authors:
|
13
15
|
- jrochkind
|
@@ -21,7 +23,7 @@ autorequire:
|
|
21
23
|
bindir: bin
|
22
24
|
cert_chain: []
|
23
25
|
|
24
|
-
date: 2011-05-
|
26
|
+
date: 2011-05-12 00:00:00 -04:00
|
25
27
|
default_executable:
|
26
28
|
dependencies:
|
27
29
|
- !ruby/object:Gem::Dependency
|
@@ -124,11 +126,12 @@ dependencies:
|
|
124
126
|
requirements:
|
125
127
|
- - ~>
|
126
128
|
- !ruby/object:Gem::Version
|
127
|
-
hash:
|
129
|
+
hash: 1923831917
|
128
130
|
segments:
|
129
131
|
- 3
|
130
132
|
- 0
|
131
|
-
-
|
133
|
+
- pre
|
134
|
+
- 2
|
132
135
|
version: 3.0.pre2
|
133
136
|
type: :runtime
|
134
137
|
version_requirements: *id007
|
@@ -276,19 +279,20 @@ files:
|
|
276
279
|
- lib/generators/blacklight/templates/migrations/create_bookmarks.rb
|
277
280
|
- lib/generators/blacklight/templates/migrations/create_searches.rb
|
278
281
|
- lib/generators/blacklight/templates/migrations/remove_editable_fields_from_bookmarks.rb
|
279
|
-
- lib/generators/blacklight/templates/public/images/bg.png
|
280
|
-
- lib/generators/blacklight/templates/public/images/border.png
|
281
|
-
- lib/generators/blacklight/templates/public/images/bul_sq_gry.gif
|
282
|
-
- lib/generators/blacklight/templates/public/images/checkmark.gif
|
283
|
-
- lib/generators/blacklight/templates/public/images/logo.png
|
284
|
-
- lib/generators/blacklight/templates/public/images/magnifying_glass.gif
|
285
|
-
- lib/generators/blacklight/templates/public/images/remove.gif
|
286
|
-
- lib/generators/blacklight/templates/public/images/separator.gif
|
287
|
-
- lib/generators/blacklight/templates/public/images/start_over.gif
|
288
|
-
- lib/generators/blacklight/templates/public/javascripts/blacklight.js
|
282
|
+
- lib/generators/blacklight/templates/public/images/blacklight/bg.png
|
283
|
+
- lib/generators/blacklight/templates/public/images/blacklight/border.png
|
284
|
+
- lib/generators/blacklight/templates/public/images/blacklight/bul_sq_gry.gif
|
285
|
+
- lib/generators/blacklight/templates/public/images/blacklight/checkmark.gif
|
286
|
+
- lib/generators/blacklight/templates/public/images/blacklight/logo.png
|
287
|
+
- lib/generators/blacklight/templates/public/images/blacklight/magnifying_glass.gif
|
288
|
+
- lib/generators/blacklight/templates/public/images/blacklight/remove.gif
|
289
|
+
- lib/generators/blacklight/templates/public/images/blacklight/separator.gif
|
290
|
+
- lib/generators/blacklight/templates/public/images/blacklight/start_over.gif
|
291
|
+
- lib/generators/blacklight/templates/public/javascripts/blacklight/blacklight.js
|
289
292
|
- lib/generators/blacklight/templates/public/javascripts/jquery-1.4.2.min.js
|
290
293
|
- lib/generators/blacklight/templates/public/javascripts/jquery-ui-1.8.1.custom.min.js
|
291
|
-
- lib/generators/blacklight/templates/public/stylesheets/blacklight.css
|
294
|
+
- lib/generators/blacklight/templates/public/stylesheets/blacklight/blacklight.css
|
295
|
+
- lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-anim_basic_16x16.gif
|
292
296
|
- lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
|
293
297
|
- lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
|
294
298
|
- lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
|
@@ -420,7 +424,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
420
424
|
requirements: []
|
421
425
|
|
422
426
|
rubyforge_project: blacklight
|
423
|
-
rubygems_version: 1.
|
427
|
+
rubygems_version: 1.5.2
|
424
428
|
signing_key:
|
425
429
|
specification_version: 3
|
426
430
|
summary: A next-geration Library Catalag for Universities
|