diff --git a/lib/bundles/inspec-supermarket/api.rb b/lib/bundles/inspec-supermarket/api.rb index a14294d4a..1abc20843 100644 --- a/lib/bundles/inspec-supermarket/api.rb +++ b/lib/bundles/inspec-supermarket/api.rb @@ -12,7 +12,7 @@ module Supermarket # displays a list of profiles def self.profiles(supermarket_url = SUPERMARKET_URL) url = "#{supermarket_url}/api/v1/tools-search" - _success, data = get(url, { type: 'compliance_profile', items: 100, order: 'recently_added' }) + _success, data = get(url, { type: 'compliance_profile', items: 100 }) if !data.nil? profiles = JSON.parse(data) profiles['items'].map { |x| diff --git a/lib/bundles/inspec-supermarket/cli.rb b/lib/bundles/inspec-supermarket/cli.rb index 0e7825725..311700e1e 100644 --- a/lib/bundles/inspec-supermarket/cli.rb +++ b/lib/bundles/inspec-supermarket/cli.rb @@ -22,7 +22,7 @@ module Supermarket headline('Available profiles:') supermarket_profiles.each { |p| - li("#{p['tool_owner']}/#{p['slug']}") + li("#{p['tool_name']} #{mark_text(p['tool_owner'] + '/' + p['slug'])}") } end