blacklight 3.0.0pre3 → 3.0.0pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (20) hide show
  1. data/VERSION +1 -1
  2. data/lib/blacklight.rb +1 -0
  3. data/lib/blacklight/catalog.rb +2 -1
  4. data/lib/blacklight/controller.rb +2 -2
  5. data/lib/blacklight/engine.rb +5 -5
  6. data/lib/blacklight/version.rb +6 -4
  7. data/lib/generators/blacklight/assets_generator.rb +3 -3
  8. data/lib/generators/blacklight/templates/public/images/{bg.png → blacklight/bg.png} +0 -0
  9. data/lib/generators/blacklight/templates/public/images/{border.png → blacklight/border.png} +0 -0
  10. data/lib/generators/blacklight/templates/public/images/{bul_sq_gry.gif → blacklight/bul_sq_gry.gif} +0 -0
  11. data/lib/generators/blacklight/templates/public/images/{checkmark.gif → blacklight/checkmark.gif} +0 -0
  12. data/lib/generators/blacklight/templates/public/images/{logo.png → blacklight/logo.png} +0 -0
  13. data/lib/generators/blacklight/templates/public/images/{magnifying_glass.gif → blacklight/magnifying_glass.gif} +0 -0
  14. data/lib/generators/blacklight/templates/public/images/{remove.gif → blacklight/remove.gif} +0 -0
  15. data/lib/generators/blacklight/templates/public/images/{separator.gif → blacklight/separator.gif} +0 -0
  16. data/lib/generators/blacklight/templates/public/images/{start_over.gif → blacklight/start_over.gif} +0 -0
  17. data/lib/generators/blacklight/templates/public/javascripts/{blacklight.js → blacklight/blacklight.js} +0 -0
  18. data/lib/generators/blacklight/templates/public/stylesheets/{blacklight.css → blacklight/blacklight.css} +0 -0
  19. data/lib/generators/blacklight/templates/public/stylesheets/jquery/ui-lightness/images/ui-anim_basic_16x16.gif +0 -0
  20. metadata +23 -19
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.0pre3
1
+ 3.0.0pre4
data/lib/blacklight.rb CHANGED
@@ -25,6 +25,7 @@ module Blacklight
25
25
  extend Configurable
26
26
  extend SearchFields
27
27
 
28
+ require 'blacklight/version'
28
29
  require 'blacklight/engine' if defined?(Rails)
29
30
 
30
31
  class << self
@@ -1,10 +1,11 @@
1
1
  module Blacklight::Catalog
2
2
  extend ActiveSupport::Concern
3
- include Blacklight::SolrHelper
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 << ['blacklight/yui', 'blacklight/jquery/ui-lightness/jquery-ui-1.8.1.custom.css', 'blacklight/blacklight', {:media=>'all'}]
42
+ stylesheet_links << ['yui', 'jquery/ui-lightness/jquery-ui-1.8.1.custom.css', 'blacklight/blacklight', {:media=>'all'}]
43
43
 
44
- javascript_includes << ['blacklight/jquery-1.4.2.min.js', 'blacklight/jquery-ui-1.8.1.custom.min.js', 'blacklight/blacklight' ]
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
 
@@ -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
- # Note, check for configuration files before calling init,
19
- # otherwise we can't generate these files with the Generator
20
- # and we can't tell at this point if we are begin run as a generator
21
- # or not (at least, I didn't see a way)
22
- Blacklight.init if File.exists?(Blacklight.solr_file)
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.
@@ -1,7 +1,9 @@
1
1
  module Blacklight
2
- def self.version
3
- @version ||= File.read(File.join(File.dirname(__FILE__), '..', '..', 'VERSION')).chomp
4
- end
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
- VERSION = self.version
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", "public/images/blacklight")
20
- directory("public/stylesheets", "public/stylesheets/blacklight")
21
- directory("public/javascripts", "public/javascripts/blacklight")
19
+ directory("public/images")
20
+ directory("public/stylesheets")
21
+ directory("public/javascripts")
22
22
  end
23
23
 
24
24
  end
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: -766259868
5
- prerelease: true
4
+ hash: 1923832001
5
+ prerelease: 5
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 0pre3
10
- version: 3.0.0pre3
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-11 00:00:00 -04:00
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: 270495401
129
+ hash: 1923831917
128
130
  segments:
129
131
  - 3
130
132
  - 0
131
- - pre2
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.3.7
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