diff options
author | Jamie Winsor <jamie@vialstudios.com> | 2013-05-05 14:02:02 -0700 |
---|---|---|
committer | Jamie Winsor <jamie@vialstudios.com> | 2013-05-05 15:56:12 -0700 |
commit | e308513c12c34882c8fc5250cdf27298bd412156 (patch) | |
tree | 8c16df74d8fe59f7ac26687f5c9d5101e953936e /lib/chef_zero/endpoints/cookbook_endpoint.rb | |
parent | 6d2f3e14753c2ac2b8bded03859a9ace4d13cc1f (diff) | |
download | chef-zero-e308513c12c34882c8fc5250cdf27298bd412156.tar.gz |
remove dependency on Chef::Version and Chef::VersionConstraint
use Solve for version comparison and constraint satisfication
Diffstat (limited to 'lib/chef_zero/endpoints/cookbook_endpoint.rb')
-rw-r--r-- | lib/chef_zero/endpoints/cookbook_endpoint.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/endpoints/cookbook_endpoint.rb b/lib/chef_zero/endpoints/cookbook_endpoint.rb index 9334af7..e8326a7 100644 --- a/lib/chef_zero/endpoints/cookbook_endpoint.rb +++ b/lib/chef_zero/endpoints/cookbook_endpoint.rb @@ -31,7 +31,7 @@ module ChefZero end def latest_version(versions) - sorted = versions.sort_by { |version| Chef::Version.new(version) } + sorted = versions.sort_by { |version| Solve::Version.new(version) } sorted[-1] end end |