Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Commit

Permalink
Allow prereleases to be included in the chefdk
Browse files Browse the repository at this point in the history
  • Loading branch information
John Keiser committed Nov 10, 2014
1 parent 2f14643 commit 88c5502
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/chef-dk/component_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ def component_path

def gem_base_dir
return nil if @gem_name_for_base_dir.nil?
Gem::Specification::find_by_name(@gem_name_for_base_dir).gem_dir
gem = Gem::Specification::find_by_name(@gem_name_for_base_dir)
gem ||= Gem::Specification::find_by_name(@gem_name_for_base_dir, '>= 0.a') # Allow prerelease versions
gem.gem_dir
end

def gem_base_dir=(gem_name)
Expand All @@ -152,4 +154,3 @@ def path_variable_key

end
end

0 comments on commit 88c5502

Please sign in to comment.