From d29de83c4140844b83912f8944d7793695a84cfc Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Sat, 8 Jul 2017 01:10:00 +0200 Subject: [PATCH] prepare release, update gems --- .ruby-version | 2 +- Gemfile.lock | 36 ++++++++++++++++++------------------ README.md | 6 +++--- bin/update_gems | 12 ++++++++++++ 4 files changed, 34 insertions(+), 22 deletions(-) create mode 100755 bin/update_gems diff --git a/.ruby-version b/.ruby-version index 197c4d5c..005119ba 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.4.0 +2.4.1 diff --git a/Gemfile.lock b/Gemfile.lock index ccd33313..8cb18e12 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -12,38 +12,38 @@ GEM ffi (1.9.18) hashdiff (0.3.4) json (2.1.0) - mini_portile2 (2.1.0) - nokogiri (1.7.1) - mini_portile2 (~> 2.1.0) + mini_portile2 (2.2.0) + nokogiri (1.8.0) + mini_portile2 (~> 2.2.0) public_suffix (2.0.5) - rspec (3.5.0) - rspec-core (~> 3.5.0) - rspec-expectations (~> 3.5.0) - rspec-mocks (~> 3.5.0) - rspec-core (3.5.4) - rspec-support (~> 3.5.0) - rspec-expectations (3.5.0) + rspec (3.6.0) + rspec-core (~> 3.6.0) + rspec-expectations (~> 3.6.0) + rspec-mocks (~> 3.6.0) + rspec-core (3.6.0) + rspec-support (~> 3.6.0) + rspec-expectations (3.6.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.5.0) + rspec-support (~> 3.6.0) rspec-its (1.2.0) rspec-core (>= 3.0.0) rspec-expectations (>= 3.0.0) - rspec-mocks (3.5.0) + rspec-mocks (3.6.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.5.0) - rspec-support (3.5.0) + rspec-support (~> 3.6.0) + rspec-support (3.6.0) ruby-progressbar (1.8.1) safe_yaml (1.0.4) simplecov (0.14.1) docile (~> 1.1.0) json (>= 1.8, < 3) simplecov-html (~> 0.10.0) - simplecov-html (0.10.0) - terminal-table (1.7.3) - unicode-display_width (~> 1.1.1) + simplecov-html (0.10.1) + terminal-table (1.8.0) + unicode-display_width (~> 1.1, >= 1.1.1) typhoeus (1.1.2) ethon (>= 0.9.0) - unicode-display_width (1.1.3) + unicode-display_width (1.3.0) webmock (3.0.1) addressable (>= 2.3.6) crack (>= 0.3.2) diff --git a/README.md b/README.md index 2c309509..02bb7f69 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ Published on https://hub.docker.com/r/wpscanteam/wpscan/ ## Prerequisites -- Ruby >= 2.1.9 - Recommended: 2.4.0 +- Ruby >= 2.1.9 - Recommended: 2.4.1 - Curl >= 7.21 - Recommended: latest - FYI the 7.29 has a segfault - RubyGems - Recommended: latest - Git @@ -174,8 +174,8 @@ https://rvm.io/integration/gnome-terminal#integrating-rvm-with-gnome-terminal curl -sSL https://get.rvm.io | bash -s stable source ~/.rvm/scripts/rvm echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc - rvm install 2.4.0 - rvm use 2.4.0 --default + rvm install 2.4.1 + rvm use 2.4.1 --default echo "gem: --no-ri --no-rdoc" > ~/.gemrc git clone https://github.com/wpscanteam/wpscan.git cd wpscan diff --git a/bin/update_gems b/bin/update_gems new file mode 100755 index 00000000..99df3bc9 --- /dev/null +++ b/bin/update_gems @@ -0,0 +1,12 @@ +#!/bin/bash + +SOURCE="${BASH_SOURCE[0]}" +while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink + DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" + SOURCE="$(readlink "$SOURCE")" + [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located +done +DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" + +cd $DIR/../ +docker run -it --rm -v "$DIR/../":/wpscan -w /wpscan ruby:2.4 bundle update