diff --git a/CHANGELOG.md b/CHANGELOG.md index ffc991b..56af73f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ ## 0.2.4 [unreleased] - Added `scubber` option for custom rules -- Scrub url encoded data +- Scrub URL-encoded data ## 0.2.3 @@ -14,12 +14,12 @@ ## 0.2.1 - Fix for log broadcaster in Rails console -- Fix for url password filtering +- Fix for URL password filtering ## 0.2.0 - Less aggressive filtering on numbers -- Filter passwords in urls +- Filter passwords in URLs - Added `Logstop.scrub` method ## 0.1.0 diff --git a/README.md b/README.md index 7e9e638..a6a25b4 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ By default, scrubs: - phone numbers - credit card numbers - Social Security numbers (SSNs) -- passwords in urls +- passwords in URLs Works with all types of logging - Ruby, ActiveRecord, ActiveJob, and more @@ -21,6 +21,8 @@ Works with all types of logging - Ruby, ActiveRecord, ActiveJob, and more User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? [["email", "[FILTERED]"]] ``` +Works even when sensitive data is URL-encoded + [![Build Status](https://travis-ci.org/ankane/logstop.svg?branch=master)](https://travis-ci.org/ankane/logstop) ## Installation diff --git a/lib/logstop/version.rb b/lib/logstop/version.rb index 8cf0f2f..c907342 100644 --- a/lib/logstop/version.rb +++ b/lib/logstop/version.rb @@ -1,3 +1,3 @@ module Logstop - VERSION = "0.2.3" + VERSION = "0.2.4" end diff --git a/logstop.gemspec b/logstop.gemspec index c1cc91e..f2ac3f7 100644 --- a/logstop.gemspec +++ b/logstop.gemspec @@ -6,19 +6,17 @@ require "logstop/version" Gem::Specification.new do |spec| spec.name = "logstop" spec.version = Logstop::VERSION - spec.authors = ["Andrew Kane"] - spec.email = ["andrew@chartkick.com"] - spec.summary = "Keep personally identifiable information (PII) out of your logs" spec.homepage = "https://github.com/ankane/logstop" spec.license = "MIT" - spec.files = `git ls-files -z`.split("\x0").reject do |f| - f.match(%r{^(test|spec|features)/}) - end - spec.bindir = "exe" - spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } - spec.require_paths = ["lib"] + spec.author = "Andrew Kane" + spec.email = "andrew@chartkick.com" + + spec.files = Dir["*.{md,txt}", "{lib}/**/*"] + spec.require_path = "lib" + + spec.required_ruby_version = ">= 2.2" spec.add_development_dependency "activesupport" spec.add_development_dependency "benchmark-ips"