diff options
| -rw-r--r-- | CHANGELOG.md | 1 | ||||
| -rw-r--r-- | lib/license/finder/ext/bower.rb | 1 | ||||
| -rw-r--r-- | spec/integration/js/bower_spec.rb | 12 |
3 files changed, 9 insertions, 5 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 33acf49..1c9da7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## v3.25.6 - Install `build-essential` for development !219 +- Export `NODE_EXTRA_CA_CERTS` for self signed certificates !219 ## v3.25.5 diff --git a/lib/license/finder/ext/bower.rb b/lib/license/finder/ext/bower.rb index c034568..7013369 100644 --- a/lib/license/finder/ext/bower.rb +++ b/lib/license/finder/ext/bower.rb @@ -62,6 +62,7 @@ module LicenseFinder def default_env @default_env ||= { + 'NODE_EXTRA_CA_CERTS' => ENV.fetch('NODE_EXTRA_CA_CERTS', shell.default_certificate_path).to_s, 'NPM_CONFIG_CAFILE' => ENV.fetch('NPM_CONFIG_CAFILE', shell.default_certificate_path).to_s, 'bower_ca' => ENV.fetch('bower_ca', shell.default_certificate_path).to_s, 'bower_directory' => ENV.fetch('bower_directory', vendor_path.join('bower_components')).to_s diff --git a/spec/integration/js/bower_spec.rb b/spec/integration/js/bower_spec.rb index 720bdf8..d49353c 100644 --- a/spec/integration/js/bower_spec.rb +++ b/spec/integration/js/bower_spec.rb @@ -43,11 +43,13 @@ RSpec.describe "bower" do end end - specify { expect(subject).to match_schema } - specify { expect(subject.dependency_names).to match_array(%w[debug js-bower lodash]) } - specify { expect(subject.licenses_for('debug')).to match_array(['unknown']) } - specify { expect(subject.licenses_for('js-bower')).to match_array(['ISC']) } - specify { expect(subject.licenses_for('lodash')).to match_array(['MIT']) } + specify do + expect(subject).to match_schema + expect(subject.dependency_names).to match_array(%w[debug js-bower lodash]) + expect(subject.licenses_for('debug')).to match_array(['unknown']) + expect(subject.licenses_for('js-bower')).to match_array(['ISC']) + expect(subject.licenses_for('lodash')).to match_array(['MIT']) + end end [ |
