Update expeditor version-update script (#2312)

PR #2311 updated the Rubocop engine to use Ruby 2.3 to evaluate, and
the default behavior is to no longer require `.freeze` to be added
to string literals that are treated like constants. This caused the
pattern match used in the Expeditor version update script to no longer
work.

Also manually fixing the `lib/inspec/version.rb` file to be correct.

Signed-off-by: Adam Leff <adam@leff.co>
This commit is contained in:
Adam Leff 2017-11-16 11:59:00 -05:00 committed by GitHub
parent e40bf36bad
commit 6ccc8aad26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -6,4 +6,4 @@
set -evx
sed -i -r "s/VERSION = '.+'\.freeze/VERSION = '$(cat VERSION)'\.freeze/" lib/inspec/version.rb
sed -i -r "s/VERSION = '.*'/VERSION = '$(cat VERSION)'/" lib/inspec/version.rb

View file

@ -4,5 +4,5 @@
# author: Christoph Hartmann
module Inspec
VERSION = '1.45.7'
VERSION = '1.45.8'
end