From daff719c1a1cd31ce052b880a80da8de446b388d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Mon, 20 Oct 2014 14:08:00 +0200 Subject: [PATCH] [CodeSign] Fix YARD documentation type annotations. --- lib/motion/util/code_sign.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/motion/util/code_sign.rb b/lib/motion/util/code_sign.rb index 2ed9bbc2..882cff00 100644 --- a/lib/motion/util/code_sign.rb +++ b/lib/motion/util/code_sign.rb @@ -3,10 +3,10 @@ module Motion; module Util module CodeSign class << self - # @param Boolean valid_only Whether or not to include only valid code - # sign identities. + # @param valid_only [Boolean] Whether or not to include only valid code + # sign identities. # - # @returns String The raw output from querying the `security` DB. + # @returns [String] The raw output from querying the `security` DB. # def query_security_db_for_identities(valid_only) command = '/usr/bin/security -q find-identity -p codesigning' @@ -14,20 +14,20 @@ module Motion; module Util `#{command}`.strip end - # @param Boolean valid_only Whether or not to include only valid code - # sign identities. + # @param valid_only [Boolean] Whether or not to include only valid code + # sign identities. # - # @returns Hash{String => String} The UUIDs and names of the identities. + # @returns [Hash{String => String}] The UUIDs and names of the identities. # def identities(valid_only) output = query_security_db_for_identities(valid_only) Hash[*output.scan(/(\h{40})\s"(.+?)"/).flatten] end - # @param Boolean valid_only Whether or not to include only valid code - # sign identities. + # @param valid_only [Boolean] Whether or not to include only valid code + # sign identities. # - # @returns Array The names of the identities. + # @returns [Array] The names of the identities. # def identity_names(valid_only) identities(valid_only).values