lib/cocoapods-core/podfile/target_definition.rb
def store_podspec(options = nil)
        if options
          unless options.keys.all? { |key| [:name, :path].include?(key) }
            raise StandardError, "Unrecognized options for the podspec method `#{options}`"
          end
          get_hash_value('podspecs', []) << options
        else
          get_hash_value('podspecs', []) << { :autodetect => true }
        end
      end
# Stores the podspec whose dependencies should be included by the
# target.
#
# @param  [Hash] options
#         The options used to find the podspec (either by name or by
#         path). If nil the podspec is auto-detected (i.e. the first one
#         in the folder of the Podfile)
#
# @note   The storage of this information is optimized for YAML
#         readability.
#
# @todo   This needs urgently a rename.
#
# @return [void]
#
Stores the podspec whose dependencies should be included by the
target.
Stores the podspec whose dependencies should be included by the target .
def store_podspec(options = nil)
        if options
          unless options.keys.all? { |key| [:name, :path].include?(key) }
            raise StandardError, "Unrecognized options for the podspec method `#{options}`"
          end
          get_hash_value('podspecs', []) << options
        else
          get_hash_value('podspecs', []) << { :autodetect => true }
        end
      end
def store_podspec ( options = nil ) if options unless options . keys . all? { | key | [ :name , :path ] . include? ( key ) } raise StandardError , "Unrecognized options for the podspec method `#{options}`" end get_hash_value ( 'podspecs' , [ ] ) << options else get_hash_value ( 'podspecs' , [ ] ) << { :autodetect => true } end end
Stores the podspec whose dependencies should be included by the
target.
Stores the podspec whose dependencies should be included by the target .
None
void
options
options The options used to find the podspec (either by name or by path). If nil the podspec is auto-detected
options The options used to find the podspec ( either by name or by path ) . If nil the podspec is auto - detected
note
The storage of this information is optimized for YAML readability.
The storage of this information is optimized for YAML readability .
todo
This needs urgently a rename.
This needs urgently a rename .