blacklight 7.18.0 → 7.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/blacklight/nested_open_struct_with_hash_access.rb +2 -2
- data/lib/generators/blacklight/install_generator.rb +5 -5
- data/lib/generators/blacklight/solr_generator.rb +4 -2
- data/lib/generators/blacklight/user_generator.rb +4 -2
- data/spec/lib/blacklight/nested_open_struct_with_hash_access_spec.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a5a489af479cba41b095c127d35112702c19436855e558a727b9b6667455d2d
|
4
|
+
data.tar.gz: 199b0847364f2f8c5d5d2fd2cd86d0d969b1a802144127df77141f42da97a316
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d900379c48b0118bc87a6711989cce5cafb84fc13e4fae4c300ea9d1ec34278634fe69195179231c5c167f01170b95b493171d668e21a37bf4cf7b2e40301f3e
|
7
|
+
data.tar.gz: '089e1155d4a910bdc6657775cc5c4e8e0cc27b02307f36c15123f92cb55429d958d987ed202ff8a0ec9022cfc371ab0b8a769908c549ec784b11e956c25e00ba'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.18.
|
1
|
+
7.18.1
|
@@ -92,11 +92,11 @@ module Blacklight
|
|
92
92
|
def method_missing(mid, *args, **kwargs, &block)
|
93
93
|
len = args.length
|
94
94
|
|
95
|
-
res = if mid.to_s.
|
95
|
+
res = if mid.to_s.end_with?('!')
|
96
96
|
m = mid[0...-1]
|
97
97
|
new_ostruct_member!(m)
|
98
98
|
@table[m]
|
99
|
-
elsif mid.to_s.
|
99
|
+
elsif mid.to_s.end_with?('=')
|
100
100
|
m = mid[0...-1]
|
101
101
|
new_ostruct_member!(m)
|
102
102
|
@table[m] = args.first
|
@@ -37,8 +37,10 @@ module Blacklight
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def bundle_install
|
40
|
-
|
41
|
-
|
40
|
+
inside destination_root do
|
41
|
+
Bundler.with_clean_env do
|
42
|
+
run "bundle install"
|
43
|
+
end
|
42
44
|
end
|
43
45
|
end
|
44
46
|
|
@@ -81,9 +83,7 @@ module Blacklight
|
|
81
83
|
blacklight_marc = String.new('blacklight-marc')
|
82
84
|
gem blacklight_marc, '>= 7.0.0.rc1', '< 8'
|
83
85
|
|
84
|
-
|
85
|
-
run "bundle install"
|
86
|
-
end
|
86
|
+
bundle_install
|
87
87
|
|
88
88
|
generate 'blacklight:marc:install'
|
89
89
|
end
|
@@ -24,8 +24,10 @@ module Blacklight
|
|
24
24
|
gem "devise"
|
25
25
|
gem "devise-guests", "~> 0.6"
|
26
26
|
|
27
|
-
|
28
|
-
|
27
|
+
inside destination_root do
|
28
|
+
Bundler.with_clean_env do
|
29
|
+
run "bundle install"
|
30
|
+
end
|
29
31
|
end
|
30
32
|
|
31
33
|
generate "devise:install"
|
@@ -23,4 +23,18 @@ RSpec.describe Blacklight::NestedOpenStructWithHashAccess do
|
|
23
23
|
expect(subject.blah).to have_attributes(key: :blah)
|
24
24
|
end
|
25
25
|
end
|
26
|
+
|
27
|
+
describe 'adding new parameters' do
|
28
|
+
subject { described_class.new(Blacklight::Configuration::Field) }
|
29
|
+
|
30
|
+
it 'strips the trailing !' do
|
31
|
+
subject.blaH!
|
32
|
+
expect(subject.blah).to have_attributes(key: :blah)
|
33
|
+
end
|
34
|
+
|
35
|
+
it 'supports direct assignment' do
|
36
|
+
subject.blah = '123'
|
37
|
+
expect(subject.blah).to eq '123'
|
38
|
+
end
|
39
|
+
end
|
26
40
|
end
|
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: 7.18.
|
4
|
+
version: 7.18.1
|
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: 2021-04-
|
20
|
+
date: 2021-04-26 00:00:00.000000000 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: rails
|