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

Version Path
webmaster_tools-0.1.9 Rakefile
webmaster_tools-0.1.8 Rakefile
webmaster_tools-0.1.7 Rakefile
webmaster_tools-0.1.6 Rakefile
adyen-admin-0.0.16 Rakefile
adyen-admin-0.0.15 Rakefile
adyen-admin-0.0.14 Rakefile
webmaster_tools-0.1.5 Rakefile
adyen-admin-0.0.13 Rakefile
adyen-admin-0.0.12 Rakefile
adyen-admin-0.0.11 Rakefile
adyen-admin-0.0.10 Rakefile
adyen-admin-0.0.9 Rakefile
webmaster_tools-0.1.4 Rakefile
adyen-admin-0.0.8 Rakefile
adyen-admin-0.0.7 Rakefile
adyen-admin-0.0.6 Rakefile
adyen-admin-0.0.5 Rakefile
adyen-admin-0.0.4 Rakefile
adyen-admin-0.0.3 Rakefile