disarm 0.17.0 → 0.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8109d11076864c4647b18efd378ad51e561dc3302ec339f1da1f895253139be6
4
- data.tar.gz: a42fa1ad22324a6e07bf502e92231a36c628367f720b440ccefe0c3ea4fd82e0
3
+ metadata.gz: 359f83c7f8f014a863c70caaa5bbea011530f5dc4866013bdd087ce6de77c7b4
4
+ data.tar.gz: 419a067a9dd9fde079844c8e5047b9be0b88cdb9a0f781a38c3f29a5e120ab10
5
5
  SHA512:
6
- metadata.gz: 764e4f27dc2a2774fdb6df0f4b0cb016f122281dbb44ee8558ce50148427c6a7c23b7b6261004a6a3e64ed931dc0da613e8ebd98fa8b36e58d10b24030a99837
7
- data.tar.gz: 608a56409c3bdc8ab76f8073880ddd1cd66ca60067063775624fae2306ec83d2591a2011c56f2c329b00f01a09f2db9b16e05331b4b072dbd1977ebec1777369
6
+ metadata.gz: 9831ccfdd4b6fb49d8f5eb1df058226403fae7afc2ae933118f516fd1203a6e4dcd2c0d1dafd3ab5c63a081aa16013f95203c5df444a5bd8f1b6a5f479bb937a
7
+ data.tar.gz: a410e078c2b8092815673eaa244d1747a3dbff70e9ddcb789143c77f1617816715ea1dbe8f23fd1bf0231768c704da5c3dd7a197ed91c5af2fa3a7e157a6c741
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Disarm
4
4
  # Kept in lockstep with the Rust crate / Python package version.
5
- VERSION = "0.17.0"
5
+ VERSION = "0.17.2"
6
6
  end
data/lib/disarm.rb CHANGED
@@ -445,7 +445,8 @@ module Disarm
445
445
  # extension when truncating to `max_length:`. Raises Disarm::InvalidArgument
446
446
  # on an unknown platform, or on a `separator:` that is not printable, non-space
447
447
  # ASCII, contains a character illegal on the platform, or contains a path
448
- # separator ("/" or "\\"). An empty separator is allowed.
448
+ # separator ("/" or "\\"). An empty separator is allowed, and so is " " on its
449
+ # own.
449
450
  #
450
451
  # A safe *filename*, not a safe URL path segment. "%" is legal in a filename, so one
451
452
  # the caller typed is kept — sanitize_filename("..%2Fetc") returns "%2Fetc" — and a
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: disarm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Quinn