lib/librarian/puppet/source/forge/repo_v1.rb
def api_version_data(module_name, version)
            # if we already got all the versions, find in cached data
            return @api_data[module_name].detect{|x| x['version'] == version.to_s} if @api_data
            # otherwise call the api for this version if not cached already
            @api_version_data[version] = normalize_dependencies(api_call(name, version)) if @api_version_data[version].nil?
            @api_version_data[version]
          end
# get and cache the API data for a specific module and version
get and cache the API data for a specific module and version
get and cache the API data for a specific module and version
def api_version_data(module_name, version)
            return @api_data[module_name].detect{|x| x['version'] == version.to_s} if @api_data
            @api_version_data[version] = normalize_dependencies(api_call(name, version)) if @api_version_data[version].nil?
            @api_version_data[version]
          end
def api_version_data ( module_name , version ) return @api_data [ module_name ] . detect { | x | x [ 'version' ] == version . to_s } if @api_data @api_version_data [ version ] = normalize_dependencies ( api_call ( name , version ) ) if @api_version_data [ version ] . nil? @api_version_data [ version ] end
get and cache the API data for a specific module and version
get and cache the API data for a specific module and version
# if we already got all the versions, find in cached data # otherwise call the api for this version if not cached already
module_name
version