Sha256: 1197c73c13481c463f4a048de484fc5df6fc7cf3e84b9a9e99c6f27ee5a38001

Contents?: true

Size: 633 Bytes

Versions: 15

Compression:

Stored size: 633 Bytes

Contents

#!/usr/bin/env bash

set -e

DIR=$(cd `dirname $0` && pwd)
ROOT_DIR="${DIR}/.."

scan_for () {
  SEARCH_STRING=$1
  SCAN_TARGETS=( "docs" "lib/dropbox-sign/api" "lib/dropbox-sign/models" "README.md" )

  printf "Scanning for '${SEARCH_STRING}': "

  set +e
  for i in "${SCAN_TARGETS[@]}"
  do
    grep -ilr "${SEARCH_STRING}" "${ROOT_DIR}/${i}"
    if [ $? -eq 0 ]; then
      printf "Error: ${SEARCH_STRING} found in ${i}\n"
      exit 1
    fi
  done

  printf "'${SEARCH_STRING}' not found\n"
  set -e
}

scan_for "allof"
scan_for "oneof"
scan_for "REPLACE_ME_WITH_DESCRIPTION"
scan_for "REPLACE_ME_WITH_EXAMPLE_FOR"
printf "\n"

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
dropbox-sign-1.8.0 bin/scan_for
dropbox-sign-1.7.0 bin/scan_for
dropbox-sign-1.6.1 bin/scan_for
dropbox-sign-1.6.0 bin/scan_for
dropbox-sign-1.5.0 bin/scan_for
dropbox-sign-1.4.1 bin/scan_for
dropbox-sign-1.4.0 bin/scan_for
dropbox-sign-1.3.0 bin/scan_for
dropbox-sign-1.2.0 bin/scan_for
dropbox-sign-1.1.2 bin/scan_for
dropbox-sign-1.1.1 bin/scan_for
dropbox-sign-1.1.0 bin/scan_for
dropbox-sign-1.0.1 bin/scan_for
dropbox-sign-1.0.0 bin/scan_for
dropbox-sign-1.0.0.pre.beta2301 bin/scan_for