Sha256: 28a87ea2d73612e91999e72847a954981d78956b34a1df9dbc620c8783abbf12
Contents?: true
Size: 433 Bytes
Versions: 2
Compression:
Stored size: 433 Bytes
Contents
require "bundler/gem_tasks" require "rake/testtask" require "benchmark/ips" Rake::TestTask.new(:test) do |t| t.libs << "test" t.libs << "lib" t.test_files = FileList["test/**/*_test.rb"] end task default: :test task :benchmark do require "ip_anonymizer" Benchmark.ips do |x| x.report("mask_ip") { IpAnonymizer.mask_ip("8.8.4.4") } x.report("hash_ip") { IpAnonymizer.hash_ip("8.8.4.4", key: "secret") } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ip_anonymizer-0.1.1 | Rakefile |
ip_anonymizer-0.1.0 | Rakefile |