Sha256: 34f389d938cb13ec2040fe6633c2c5e4bb60ca4095ed91de25d54028cfa4ad1f
Contents?: true
Size: 943 Bytes
Versions: 5
Compression:
Stored size: 943 Bytes
Contents
# frozen_string_literal: true require 'bundler/setup' require 'rake' require 'bundler/gem_tasks' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) task default: 'spec' task :update_gemfiles do require 'pry' Dir.glob('gemfiles/*.gemfile').each do |gemfile| puts "Updating #{gemfile}...\n\n" ENV['BUNDLE_GEMFILE'] = gemfile puts `bundle install --gemfile=#{gemfile} --no-cache` puts `bundle update --gemfile=#{gemfile}` lockfile = "#{gemfile}.lock" raise(StandardError, "Expected #{lockfile} to exist.") unless File.exist?(lockfile) parsed_lockfile = Bundler::LockfileParser.new(Bundler.read_file(lockfile)) # Ensure lockfile has x86_64-linux if parsed_lockfile.platforms.map(&:to_s).none? { |p| p == 'x86_64-linux' } puts "Adding platform x86_64-linux to #{lockfile}\n\n" puts `bundle lock --add-platform x86_64-linux --gemfile=#{gemfile}` end puts '' end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
country_select-10.0.1 | Rakefile |
country_select-10.0.0 | Rakefile |
country_select-9.0.0 | Rakefile |
country_select-8.0.3 | Rakefile |
country_select-8.0.2 | Rakefile |