blacklight 4.7.0.pre1 → 4.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4813599bbaa8851d1b75d07b6633d4abf29ea757
4
- data.tar.gz: 03def0b743980084a3ccab15df138b171723fe75
3
+ metadata.gz: 31257b25d32f93ef95d2451084d1126a7595af53
4
+ data.tar.gz: dba5f44c198f0708326a11b450219b4d84227c80
5
5
  SHA512:
6
- metadata.gz: 492ed7e40e8b99aa34bff4a09caec3569b7d2daaf050c6f4f87159a2489cf7f045830feb4fc2518bd598e00c14dda14be1c838b36c0b7ed2fb10386a21bf894e
7
- data.tar.gz: d1104e397c0a860d8cea7301afaf9658dc98825ba3518576058867179253344fd54455070fd234b7c38824bf03c6911bb05ab7768737a5d2e817e75bfabb860d
6
+ metadata.gz: c5c9a3f9d86b87a5eb9fd07e81a5fbefba16c909996e850dbeede4adc4ff1e87138fc4bdb126ff20a800fc1882fe3ef61470b294ca2523b5625c5f3812a59158
7
+ data.tar.gz: 8730f957f7cded439289206f80b62692f012d4f1f365ed70798fe422441b15ac863d8551fc152def010638406caa49e9bfc3e9624a7fe7dfca5eeb68b9a0900d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.7.0.pre1
1
+ 4.7.0
@@ -86,6 +86,7 @@ module Blacklight::BlacklightHelperBehavior
86
86
  def render_document_list_partial options={}
87
87
  render :partial=>'catalog/document_list'
88
88
  end
89
+ deprecation_deprecate :render_document_list_partial
89
90
 
90
91
  # Save function area for search results 'index' view, normally
91
92
  # renders next to title.
@@ -103,6 +104,10 @@ module Blacklight::BlacklightHelperBehavior
103
104
  def render_show_doc_actions(document=@document, options={})
104
105
  # I'm not sure why this key is documentFunctions and #render_index_doc_actions uses wrapping_class.
105
106
  # TODO: remove documentFunctions key in Blacklight 5.x
107
+ if options.has_key? :documentFunctions
108
+ Deprecation.warn(Blacklight::BlacklightHelperBehavior, "Calling #render_show_doc_actions with the :documentFunctions option is deprecated; use :wrapping_class instead")
109
+ end
110
+
106
111
  wrapping_class = options.delete(:documentFunctions) || options.delete(:wrapping_class) || "documentFunctions"
107
112
 
108
113
  content = []
@@ -77,6 +77,10 @@ module Blacklight::RenderConstraintsHelperBehavior
77
77
  # [:escape_value]
78
78
  # default true, HTML escape.
79
79
  def render_constraint_element(label, value, options = {})
80
+ if (options[:escape_label] and !label.html_safe?) or (options.has_key?(:escape_value) and !value.html_safe?)
81
+ Deprecation.warn(Blacklight::RenderConstraintsHelperBehavior, "Calling #render_constraint_element with :escape_label or :escape_value parameters is deprecated; make sure your values are #html_safe instead")
82
+ end
83
+
80
84
  render(:partial => "catalog/constraints_element", :locals => {:label => label, :value => value, :options => options})
81
85
  end
82
86
 
@@ -10,6 +10,13 @@ namespace :blacklight do
10
10
  Search.delete_old_searches(args[:days_old].to_i)
11
11
  end
12
12
 
13
+ namespace :solr do
14
+ desc "Put sample data into solr"
15
+ task :seed do
16
+ Rake::Task["solr:marc:index_test_data"].invoke
17
+ end
18
+ end
19
+
13
20
  end
14
21
 
15
22
 
@@ -90,7 +90,7 @@ describe BlacklightHelper do
90
90
  def current_search_session
91
91
 
92
92
  end
93
-
93
+
94
94
  describe "deprecated methods" do
95
95
  describe "#index_field_names" do
96
96
  it "should warn" do
@@ -113,6 +113,14 @@ describe BlacklightHelper do
113
113
  helper.document_show_field_labels
114
114
  end
115
115
  end
116
+
117
+ describe "#render_document_list_partial" do
118
+ it "should warn" do
119
+ expect(Blacklight::BlacklightHelperBehavior.deprecation_behavior.first).to receive(:call)
120
+ helper.stub(:render)
121
+ helper.render_document_list_partial
122
+ end
123
+ end
116
124
  end
117
125
 
118
126
  describe "#application_name", :test => true do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.0.pre1
4
+ version: 4.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
@@ -17,7 +17,7 @@ authors:
17
17
  autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
- date: 2014-02-03 00:00:00.000000000 Z
20
+ date: 2014-02-05 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rails
@@ -583,9 +583,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
583
583
  version: '0'
584
584
  required_rubygems_version: !ruby/object:Gem::Requirement
585
585
  requirements:
586
- - - ">"
586
+ - - ">="
587
587
  - !ruby/object:Gem::Version
588
- version: 1.3.1
588
+ version: '0'
589
589
  requirements: []
590
590
  rubyforge_project: blacklight
591
591
  rubygems_version: 2.2.0