blacklight 4.7.0.pre1 → 4.7.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31257b25d32f93ef95d2451084d1126a7595af53
|
4
|
+
data.tar.gz: dba5f44c198f0708326a11b450219b4d84227c80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5c9a3f9d86b87a5eb9fd07e81a5fbefba16c909996e850dbeede4adc4ff1e87138fc4bdb126ff20a800fc1882fe3ef61470b294ca2523b5625c5f3812a59158
|
7
|
+
data.tar.gz: 8730f957f7cded439289206f80b62692f012d4f1f365ed70798fe422441b15ac863d8551fc152def010638406caa49e9bfc3e9624a7fe7dfca5eeb68b9a0900d
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.7.0
|
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
|
|
@@ -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
|
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-
|
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:
|
588
|
+
version: '0'
|
589
589
|
requirements: []
|
590
590
|
rubyforge_project: blacklight
|
591
591
|
rubygems_version: 2.2.0
|