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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60b0a39be3483ff0a8968a73c07ad6e7fcd576c7249020606d602454401e3e81
4
- data.tar.gz: 46aa7df118c340444ec95e045cd1006a62017595160adcfd953d99bafb1222db
3
+ metadata.gz: 3a5a489af479cba41b095c127d35112702c19436855e558a727b9b6667455d2d
4
+ data.tar.gz: 199b0847364f2f8c5d5d2fd2cd86d0d969b1a802144127df77141f42da97a316
5
5
  SHA512:
6
- metadata.gz: 02715a196cc746c2e3b23a453edcf4f7e50c43077a670ee2ec0975362969a36f71a299ad881d688d97207d25d75ddccedf460d14ed8c877347e3f626b9d43971
7
- data.tar.gz: da5835cdb464f59d5b0715c0808e08ac81484e70271443b15baad6076f5266ed0000e5cad2d73cd9638796ec1532f891f57c0b3e4b87a85ea136e50ed38a0e13
6
+ metadata.gz: d900379c48b0118bc87a6711989cce5cafb84fc13e4fae4c300ea9d1ec34278634fe69195179231c5c167f01170b95b493171d668e21a37bf4cf7b2e40301f3e
7
+ data.tar.gz: '089e1155d4a910bdc6657775cc5c4e8e0cc27b02307f36c15123f92cb55429d958d987ed202ff8a0ec9022cfc371ab0b8a769908c549ec784b11e956c25e00ba'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.18.0
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.ends_with?('!')
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.ends_with?('=')
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
- Bundler.with_clean_env do
41
- run "bundle install"
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
- Bundler.with_clean_env do
85
- run "bundle install"
86
- end
86
+ bundle_install
87
87
 
88
88
  generate 'blacklight:marc:install'
89
89
  end
@@ -35,8 +35,10 @@ module Blacklight
35
35
  end
36
36
 
37
37
  def bundle_install
38
- Bundler.with_clean_env do
39
- run "bundle install"
38
+ inside destination_root do
39
+ Bundler.with_clean_env do
40
+ run "bundle install"
41
+ end
40
42
  end
41
43
  end
42
44
  end
@@ -24,8 +24,10 @@ module Blacklight
24
24
  gem "devise"
25
25
  gem "devise-guests", "~> 0.6"
26
26
 
27
- Bundler.with_clean_env do
28
- run "bundle install"
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.0
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-23 00:00:00.000000000 Z
20
+ date: 2021-04-26 00:00:00.000000000 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: rails