-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bundler handling of 'without' (#13351)
* Fix bundler handling of 'without' Prior to this change, the values set in `set_local` are ignored when invoking bundler via the command line, as is used with `invoke!`. This commit sets those values in `ENV` variables instead, fixing the functionality to not install development gems. * Update bundler spec to check ENV variable * Added test to ensure kramdown gem not vendored * Re-add set_local setting to play nice with `expand_logstash_mixin_dependencies` * logstash service needs to be installed * gem_vendored? needs to use full path to vendor files * use `stdout` from `cat` command to generate spec temporary file * Removed unnecessary support for supplying a block from #gem_vendored? Co-authored-by: Ry Biesemeyer <ry.biesemeyer@elastic.co>
- Loading branch information
Showing
5 changed files
with
98 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Licensed to Elasticsearch B.V. under one or more contributor | ||
# license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright | ||
# ownership. Elasticsearch B.V. licenses this file to you under | ||
# the Apache License, Version 2.0 (the "License"); you may | ||
# not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
require_relative '../spec_helper' | ||
|
||
describe "artifacts composition" do | ||
config = ServiceTester.configuration | ||
config.servers.each do |address| | ||
logstash = ServiceTester::Artifact.new(address, config.lookup[address]) | ||
|
||
before(:each) do | ||
logstash.install({:version => LOGSTASH_VERSION}) | ||
end | ||
|
||
after(:each) do | ||
logstash.uninstall | ||
end | ||
|
||
context 'prohibited gem dependencies' do | ||
it 'does not vendor any version of kramdown' do | ||
expect(logstash.gem_vendored?('kramdown')).to be false | ||
end | ||
end | ||
|
||
context 'necessary gem dependencies (sanity check)' do | ||
it 'vendors concurrent-ruby' do | ||
expect(logstash.gem_vendored?('concurrent-ruby')).to be true | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters