Sha256: 4e91ce1c4fe532bcc4ae695157bed341e9968d28106c423023b39d7676653e95
Contents?: true
Size: 1.26 KB
Versions: 49
Compression:
Stored size: 1.26 KB
Contents
module GovukPublishingComponents class AuditController < GovukPublishingComponents::ApplicationController def show path = Dir.pwd components = AuditComponents.new(path) applications = analyse_applications(File.expand_path("..", path)) compared_data = AuditComparer.new(components.data, applications) @applications = compared_data.applications_data || [] @components = compared_data.gem_data || [] end private def analyse_applications(path) results = [] applications = %w[ calculators collections collections-publisher content-data-admin content-publisher email-alert-frontend feedback finder-frontend frontend government-frontend govspeak-preview info-frontend licence-finder manuals-frontend release search-admin service-manual-frontend signon smart-answers static travel-advice-publisher whitehall ].sort applications.each do |application| application_path = [path, application].join("/") app = AuditApplications.new(application_path, application) results << app.data end results end end end
Version data entries
49 entries across 49 versions & 1 rubygems