Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Updates from rspec-dev (2015-08-01) #2049

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .rubocop_rspec_base.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
# This file was generated on 2015-08-01T02:04:28-04:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

# This file contains defaults for RSpec projects. Individual projects
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
# This file was generated on 2015-08-01T02:04:28-04:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

language: ruby
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
# This file was generated on 2015-08-01T02:04:28-04:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

version: "{build}"
Expand Down
2 changes: 1 addition & 1 deletion script/clone_all_rspec_repos
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
# This file was generated on 2015-08-01T02:04:28-04:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

set -e
Expand Down
47 changes: 46 additions & 1 deletion script/functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
# This file was generated on 2015-08-01T02:04:28-04:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Expand Down Expand Up @@ -86,6 +86,51 @@ function run_spec_suite_for {
fi;
}

function check_binstubs {
echo "Checking required binstubs"

local success=0
local binstubs=""
local gems=""

if [ ! -x ./bin/rspec ]; then
binstubs="$binstubs bin/rspec"
gems="$gems rspec-core"
success=1
fi

if [ ! -x ./bin/rake ]; then
binstubs="$binstubs bin/rake"
gems="$gems rake"
success=1
fi

if [ -d features ]; then
if [ ! -x ./bin/cucumber ]; then
binstubs="$binstubs bin/cucumber"
gems="$gems cucumber"
success=1
fi
fi

if [ $success -eq 1 ]; then
echo
echo "Missing binstubs:$binstubs"
echo "Install missing binstubs using one of the following:"
echo
echo " # Create the missing binstubs"
echo " $ bundle binstubs$gems"
echo
echo " # To binstub all gems"
echo " $ bundle install --binstubs"
echo
echo " # To binstub all gems and avoid loading bundler"
echo " $ bundle install --binstubs --standalone"
fi

return $success
}

function check_documentation_coverage {
echo "bin/yard stats --list-undoc"

Expand Down
2 changes: 1 addition & 1 deletion script/predicate_functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
# This file was generated on 2015-08-01T02:04:28-04:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

function is_mri {
Expand Down
4 changes: 3 additions & 1 deletion script/run_build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
# This file was generated on 2015-08-01T02:04:28-04:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

set -e
Expand All @@ -10,6 +10,8 @@ if [ -f script/custom_build_functions.sh ]; then
source script/custom_build_functions.sh
fi

fold "binstub check" check_binstubs

fold "specs" run_specs_and_record_done
fold "cukes" run_cukes

Expand Down
2 changes: 1 addition & 1 deletion script/travis_functions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file was generated on 2015-07-10T08:35:29-07:00 from the rspec-dev repo.
# This file was generated on 2015-08-01T02:04:28-04:00 from the rspec-dev repo.
# DO NOT modify it by hand as your changes will get lost the next time it is generated.

# Taken from:
Expand Down