fastlane/lib/fastlane/plugins/plugin_manager.rb in fastlane-2.18.0.beta.20170219010032 vs fastlane/lib/fastlane/plugins/plugin_manager.rb in fastlane-2.18.0.beta.20170220010017
- old
+ new
@@ -239,15 +239,15 @@
fastlane_folder_name = File.basename(FastlaneCore::FastlaneFolder.path)
else
fastlane_folder_name = "fastlane"
end
"plugins_path = File.join(File.dirname(__FILE__), '#{fastlane_folder_name}', '#{PluginManager::PLUGINFILE_NAME}')\n" \
- "eval(File.read(plugins_path), binding) if File.exist?(plugins_path)"
+ "eval_gemfile(plugins_path) if File.exist?(plugins_path)"
end
# Makes sure, the user's Gemfile actually loads the Plugins file
def plugins_attached?
- gemfile_path && gemfile_content.include?(self.class.code_to_attach)
+ gemfile_path && gemfile_content.include?(PluginManager::PLUGINFILE_NAME)
end
def ensure_plugins_attached!
return if plugins_attached?
self.setup