Sha256: ae7ef3c03604a200a97b980a2ffe1c9aaaedde3a1ff22ade48a2a19f18d083bb
Contents?: true
Size: 1.36 KB
Versions: 1
Compression:
Stored size: 1.36 KB
Contents
require 'rake' namespace :drg do desc "Pins the gems in your Gemfile to the current version in the Gemfile.lock" task :pin do DRG::Tasks::Pinner.new.perform end desc 'Unpins the gems in your the Gemfile' task :unpin do DRG::Tasks::Pinner.new.unpin end namespace :pin do desc 'Adds the fuzzy match operator to the minor version of your gems (e.g. rails, "~> 4.2")' task :minor do DRG::Tasks::Pinner.new(:minor).perform end desc 'Adds the fuzzy match operator to the major version of your gems (e.g. rails, "~> 4")' task :major do DRG::Tasks::Pinner.new(:major).perform end desc 'Adds the fuzzy match operator to the patch version of your gems (e.g. rails, "~> 4.2.3")' task :patch do DRG::Tasks::Pinner.new(:patch).perform end desc 'Pins all gems [or the requested gem] to the latest available patch version' task :latest_minor, [:gem_name] do |_, options| DRG::Tasks::ProgessivePinner.new(:minor).perform(options[:gem_name]) end desc 'Pins all gems [or the requested gem] to the latest available minor version' task :latest_patch, [:gem_name] do |_, options| DRG::Tasks::ProgessivePinner.new(:patch).perform(options[:gem_name]) end end desc 'Updates your gems in the Gemfile to the latest compatible version' task :update do DRG::Tasks::Updater.new.perform end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
drg-0.6.0 | lib/tasks/drg.rake |