diff options
author | Lamont Granquist <lamont@opscode.com> | 2021-01-20 21:19:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 21:19:46 -0800 |
commit | d444a5bb29b7a83a3174022ce8cbb7a1f27bf9cc (patch) | |
tree | 4055e2ed7ab29e180665ba7804330ade02797d7b | |
parent | 995196eeb1414c334a58d2aed5b6e1dde2c393a3 (diff) | |
parent | 60d18a2eb9352570296286cc25ac0f6a8a3de538 (diff) | |
download | chef-d444a5bb29b7a83a3174022ce8cbb7a1f27bf9cc.tar.gz |
Merge pull request #10913 from chef/lcg/dont-ship-chef-dev-gems
-rw-r--r-- | chef.gemspec | 9 | ||||
-rw-r--r-- | lib/chef/version_string.rb | 2 | ||||
-rw-r--r-- | omnibus/Gemfile.lock | 36 |
3 files changed, 28 insertions, 19 deletions
diff --git a/chef.gemspec b/chef.gemspec index 11dedca7ff..92277325db 100644 --- a/chef.gemspec +++ b/chef.gemspec @@ -1,4 +1,13 @@ $:.unshift(File.dirname(__FILE__) + "/lib") +vs_path = File.expand_path("chef-utils/lib/chef-utils/version_string.rb", __dir__) + +if File.exist?(vs_path) + # this is the moral equivalent of a require_relative since bundler makes require_relative here fail hard + eval(IO.read(vs_path)) +else + # if the path doesn't exist then we're just in the wild gem and not in the git repo + require "chef-utils/version_string" +end require "chef/version" Gem::Specification.new do |s| diff --git a/lib/chef/version_string.rb b/lib/chef/version_string.rb index 8da5df570a..c98d4c9a75 100644 --- a/lib/chef/version_string.rb +++ b/lib/chef/version_string.rb @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -require "chef-utils/version_string" +require "chef-utils/version_string" unless defined?(ChefUtils::VersionString) class Chef VersionString = ChefUtils::VersionString diff --git a/omnibus/Gemfile.lock b/omnibus/Gemfile.lock index 1ae13e8652..7d0019534c 100644 --- a/omnibus/Gemfile.lock +++ b/omnibus/Gemfile.lock @@ -18,7 +18,7 @@ GIT GIT remote: https://github.com/chef/omnibus-software - revision: 1cff56e31219e2851d2651e9b92fffd15e42bd00 + revision: 05f70739fb4a14d5c117c620ba7bb24dce6fd538 branch: master specs: omnibus-software (4.0.0) @@ -64,12 +64,12 @@ GEM solve (~> 4.0) thor (>= 0.20) builder (3.2.4) - chef (16.9.20) + chef (16.9.29) addressable bcrypt_pbkdf (= 1.1.0.rc2) bundler (>= 1.10) - chef-config (= 16.9.20) - chef-utils (= 16.9.20) + chef-config (= 16.9.29) + chef-utils (= 16.9.29) chef-vault chef-zero (>= 14.0.11) diff-lcs (>= 1.2.4, < 1.4.0) @@ -100,13 +100,13 @@ GEM tty-prompt (~> 0.21) tty-screen (~> 0.6) tty-table (~> 0.11) - uuidtools (~> 2.1.5) - chef (16.9.20-universal-mingw32) + uuidtools (>= 2.1.5, < 3.0) + chef (16.9.29-universal-mingw32) addressable bcrypt_pbkdf (= 1.1.0.rc2) bundler (>= 1.10) - chef-config (= 16.9.20) - chef-utils (= 16.9.20) + chef-config (= 16.9.29) + chef-utils (= 16.9.29) chef-vault chef-zero (>= 14.0.11) diff-lcs (>= 1.2.4, < 1.4.0) @@ -138,7 +138,7 @@ GEM tty-prompt (~> 0.21) tty-screen (~> 0.6) tty-table (~> 0.11) - uuidtools (~> 2.1.5) + uuidtools (>= 2.1.5, < 3.0) win32-api (~> 1.5.3) win32-certstore (~> 0.3) win32-event (~> 0.6.1) @@ -150,9 +150,9 @@ GEM win32-taskscheduler (~> 2.0) wmi-lite (~> 1.0) chef-cleanroom (1.0.2) - chef-config (16.9.20) + chef-config (16.9.29) addressable - chef-utils (= 16.9.20) + chef-utils (= 16.9.29) fuzzyurl mixlib-config (>= 2.2.12, < 4.0) mixlib-shellout (>= 2.0, < 4.0) @@ -161,7 +161,7 @@ GEM chef-config concurrent-ruby (~> 1.0) ffi-yajl (~> 2.2) - chef-utils (16.9.20) + chef-utils (16.9.29) chef-vault (4.1.0) chef-zero (15.0.4) ffi-yajl (~> 2.2) @@ -173,7 +173,7 @@ GEM citrus (3.0.2) cleanroom (1.0.0) coderay (1.1.3) - concurrent-ruby (1.1.7) + concurrent-ruby (1.1.8) diff-lcs (1.3) ed25519 (1.2.4) erubi (1.10.0) @@ -201,7 +201,7 @@ GEM highline (2.0.3) httpclient (2.8.3) iniparse (1.5.0) - inspec-core (4.24.32) + inspec-core (4.25.1) addressable (~> 2.4) chef-telemetry (~> 1.0) faraday (>= 0.9.0, < 1.4) @@ -213,7 +213,7 @@ GEM parallel (~> 1.9) parslet (>= 1.5, < 3.0) pry (~> 0.13) - rspec (~> 3.10) + rspec (>= 3.9, < 3.11) rspec-its (~> 1.2) rubyzip (>= 1.2.2, < 3.0) semverse (~> 3.0) @@ -333,7 +333,7 @@ GEM rspec-support (~> 3.10.0) rspec-support (3.10.1) ruby-progressbar (1.11.0) - ruby2_keywords (0.0.2) + ruby2_keywords (0.0.4) rubyntlm (0.6.2) rubyzip (2.3.0) sawyer (0.8.2) @@ -364,7 +364,7 @@ GEM winrm (~> 2.0) winrm-elevated (~> 1.0) winrm-fs (~> 1.1) - thor (1.0.1) + thor (1.1.0) toml-rb (2.0.1) citrus (~> 3.0, > 3.0) tomlrb (1.3.0) @@ -399,7 +399,7 @@ GEM tty-screen (~> 0.8) unicode-display_width (1.7.0) unicode_utils (1.4.0) - uuidtools (2.1.5) + uuidtools (2.2.0) webrick (1.7.0) win32-api (1.5.3-universal-mingw32) win32-certstore (0.4.1) |