-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
33 lines (22 loc) · 860 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "./ruby_version"
RSpec::Core::RakeTask.new(:spec)
task default: :spec
desc "Installs gems using the correct gemfile for the current version of ruby."
task :bundle do
puts "Installing from '#{RubyVersion.gemfile}'"
system("bundle --gemfile=#{RubyVersion.gemfile}")
system("bundle lock --add-platform x86_64-linux --gemfile=#{RubyVersion.gemfile}")
end
desc "Runs bundle outdated for the current version of ruby."
task :outdated do
puts "Checking outdated for '#{RubyVersion.gemfile}'"
system("BUNDLE_GEMFILE=#{RubyVersion.gemfile} bundle outdated")
end
desc "Runs bundle update for the current version of ruby."
task :update do
puts "Updating for '#{RubyVersion.gemfile}'"
system("BUNDLE_GEMFILE=#{RubyVersion.gemfile} bundle update")
end