Skip to content

Commit

Permalink
Change Ruby-related strings in app to 2.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfioravanti committed Sep 18, 2017
1 parent 4b4e85d commit 7133300
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/resume/ruby_version_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ module Resume
# @author Paul Fioravanti
module RubyVersionChecker
# Required Ruby version for resume to work
REQUIRED_RUBY_VERSION = ENV.fetch("CUSTOM_RUBY_VERSION", "2.4.1").freeze
REQUIRED_RUBY_VERSION = ENV.fetch("CUSTOM_RUBY_VERSION", "2.4.2").freeze
private_constant :REQUIRED_RUBY_VERSION
# Ruby version command
RUBY_VERSION_COMMAND = "ruby -v".freeze
private_constant :RUBY_VERSION_COMMAND
# Ruby version output regex.
# For example, this will extract `2.4.1` from a string like:
# `ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]`
# For example, this will extract `2.4.2` from a string like:
# `ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16]`
RUBY_VERSION_REGEX = /\Aruby ([\d\.][^p]+)/
private_constant :RUBY_VERSION_REGEX

Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/one_sheet/header.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
################################################################################
### Instructions to generate resume:
###
### 1. Install Ruby version 2.4.1
### 1. Install Ruby version 2.4.2
###
### 2. Ensure you have an internet connection as the script needs Ruby gems
### for PDF generation, assets stored on Dropbox, and resume data
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/resume/ruby_version_checker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Resume
end

before do
stub_const("#{described_class}::RUBY_VERSION", "2.4.1")
stub_const("#{described_class}::RUBY_VERSION", "2.4.2")
end

context "when a LoadError occurs when loading rubygems lib" do
Expand Down

0 comments on commit 7133300

Please sign in to comment.