fastlane/lib/fastlane/actions/version_get_podspec.rb in fastlane-2.79.0.beta.20180129010003 vs fastlane/lib/fastlane/actions/version_get_podspec.rb in fastlane-2.79.0

- old
+ new

@@ -4,11 +4,11 @@ def self.run(params) podspec_path = params[:path] UI.user_error!("Could not find podspec file at path '#{podspec_path}'") unless File.exist?(podspec_path) - version_podspec_file = Helper::PodspecHelper.new(podspec_path) + version_podspec_file = Helper::PodspecHelper.new(podspec_path, params[:require_variable_prefix]) Actions.lane_context[SharedValues::PODSPEC_VERSION_NUMBER] = version_podspec_file.version_value end ##################################################### @@ -27,10 +27,14 @@ is_string: true, code_gen_sensitive: true, default_value: Dir["*.podspec"].last, verify_block: proc do |value| UI.user_error!("Please pass a path to the `version_get_podspec` action") if value.length == 0 - end) + end), + FastlaneCore::ConfigItem.new(key: :require_variable_prefix, + env_name: "FL_VERSION_BUMP_PODSPEC_VERSION_REQUIRE_VARIABLE_PREFIX", + description: "true by default, this is used for non CocoaPods version bumps only", + default_value: true) ] end def self.output [