Sha256: 718f6b702841ba14ad545d044f354b991d1385dc72e70a770eab9ce08c8e865e
Contents?: true
Size: 1.36 KB
Versions: 3
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 :minor_latest, [: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 :patch_latest, [: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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
drg-0.8.1 | lib/tasks/drg.rake |
drg-0.8.0 | lib/tasks/drg.rake |
drg-0.7.0 | lib/tasks/drg.rake |