Sha256: 296ff41b82493596c001d1ba156e492ebbc8a9bbb4e42a4c64ffde1608752cde

Contents?: true

Size: 518 Bytes

Versions: 6

Compression:

Stored size: 518 Bytes

Contents

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

task :update_contributors do
  puts 'Updating CONTRIBUTORS file'
  contributors = `git log --format='%aN' | sort -u`.split("\n")
  contributors_file = 'CONTRIBUTORS'
  contributors.each do |contributor|
    unless File.read(contributors_file).match(contributor)
      File.open(contributors_file, 'a') { |file| file.write("#{contributor}\n") }
    end
  end
end

RSpec::Core::RakeTask.new(:spec)

task :default => :spec

task 'build' => :update_contributors

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mobile_pagination-0.0.9 Rakefile
mobile_pagination-0.0.8 Rakefile
mobile_pagination-0.0.7 Rakefile
mobile_pagination-0.0.6 Rakefile
mobile_pagination-0.0.5 Rakefile
mobile_pagination-0.0.4 Rakefile