lib/u3d/unity_version_definition.rb in u3d-1.2.3 vs lib/u3d/unity_version_definition.rb in u3d-1.3.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + ## --- BEGIN LICENSE BLOCK --- # Copyright (c) 2016-present WeWantToKnow AS # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -49,9 +51,10 @@ available_packages.include? package.downcase end def [](package) return nil unless available_package? package + @packages.find { |pack| pack.id == package.downcase } end def ini UI.deprecated 'UnityVersionDefinition no longer exposes the raw ini data'