blacklight 6.4.1 → 6.4.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4fea8f394ca9653526946ca4e4bfcf50cc4f78ef
|
|
4
|
+
data.tar.gz: 59305f0d30b38edbb7bc622cc48de9f5b6fd2004
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: df80eb8cbd5f23b4752194861992190bfec55ec8400eb5509f0143233c2533117b2a042a5552859997620d8879d71b6e70917bdf3cec4797efa96a4ce9ad10d6
|
|
7
|
+
data.tar.gz: 39069bcc1804d9199a7e3d3dbecf01343643a910bbb327a9c12680e8701c2599a623c26514b8f36b4365717117cfd26c2ec66fdf469ac89507690dc3c3ed012e
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.4.
|
|
1
|
+
6.4.2
|
|
@@ -50,6 +50,11 @@ module Blacklight::RenderConstraintsHelperBehavior
|
|
|
50
50
|
# @return [String]
|
|
51
51
|
def remove_constraint_url(localized_params)
|
|
52
52
|
scope = localized_params.delete(:route_set) || self
|
|
53
|
+
|
|
54
|
+
unless localized_params.is_a? ActionController::Parameters
|
|
55
|
+
localized_params = ActionController::Parameters.new(localized_params)
|
|
56
|
+
end
|
|
57
|
+
|
|
53
58
|
options = localized_params.merge(q: nil, action: 'index')
|
|
54
59
|
options.permit!
|
|
55
60
|
scope.url_for(options)
|
|
@@ -25,6 +25,14 @@ describe RenderConstraintsHelper do
|
|
|
25
25
|
expect(subject).to have_selector "a[href='/?f%5Btype%5D=journal']"
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
+
context 'with an ordinary hash' do
|
|
29
|
+
let(:params) { { q: 'foobar', f: { type: 'journal' } } }
|
|
30
|
+
|
|
31
|
+
it "has a link relative to the current url" do
|
|
32
|
+
expect(subject).to have_selector "a[href='/?f%5Btype%5D=journal']"
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
28
36
|
context "with a route_set" do
|
|
29
37
|
let(:params) { ActionController::Parameters.new(q: 'foobar', f: { type: 'journal' }, route_set: my_engine) }
|
|
30
38
|
it "accepts an optional route set" 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: 6.4.
|
|
4
|
+
version: 6.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jonathan Rochkind
|
|
@@ -17,7 +17,7 @@ authors:
|
|
|
17
17
|
autorequire:
|
|
18
18
|
bindir: exe
|
|
19
19
|
cert_chain: []
|
|
20
|
-
date: 2016-08-
|
|
20
|
+
date: 2016-08-15 00:00:00.000000000 Z
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|
|
23
23
|
name: rails
|