Sha256: 3395baa6284e0b76dbc3f20d89aadb8c0062d959c2513f05173545cedfbf466d
Contents?: true
Size: 597 Bytes
Versions: 24
Compression:
Stored size: 597 Bytes
Contents
require "bundler/gem_tasks" require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) task :default => :spec task :anonym, :tokens do |t, args| replace = args[:tokens].split(" ").map do |token| from, to = token.split(":") "s/#{from}/#{to}/g" end `find -E . -regex '^.+\.(rb|yml)$' -exec sed -i "" "#{replace.join(";")}" {} \\;` end task :deanonym, :tokens do |t, args| replace = args[:tokens].split(" ").map do |token| from, to = token.split(":") "s/#{to}/#{from}/g" end `find -E . -regex '^.+\.(rb|yml)$' -exec sed -i "" "#{replace.join(";")}" {} \\;` end
Version data entries
24 entries across 24 versions & 2 rubygems