filename_cleaner 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOGS.md +4 -0
- data/README.md +4 -4
- data/lib/filename_cleaner/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4477e245f101589f606b01bfa70dee14005469d5
|
4
|
+
data.tar.gz: 779718eb93ff5ecc03997a2cf782014761d68eb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06e54af020ef55ba5c4513d81d9d242aa686c8e4063903c074d074f2ebf0748bb86d4176c950e86bdabf41a65ffc673a8d06dd0b309be38c20e397a09c1dd4e7
|
7
|
+
data.tar.gz: 2b396ccb143b0b74b20c9e745e6764361b51ebd23fdc64a66679288f6ccf8c60085c21607b5ef630b0fc00eb093c8dea088c02dc09c7e3394a6b9dfab2a52a9e
|
data/CHANGELOGS.md
CHANGED
data/README.md
CHANGED
@@ -83,12 +83,12 @@ Example Usage:
|
|
83
83
|
|
84
84
|
```ruby
|
85
85
|
require 'filename_cleaner'
|
86
|
-
#
|
87
|
-
new_name = FilenameCleaner.
|
86
|
+
# Treat the input as having extension (e.g. at least one dot within the input)
|
87
|
+
new_name = FilenameCleaner.sanitize('some b@d fil$name.txt', '_', true)
|
88
88
|
puts new_name # => 'some_b_d_fil_name.txt'
|
89
89
|
|
90
|
-
#
|
91
|
-
new_name = FilenameCleaner.
|
90
|
+
# Treat the input as having no extension (ignore the meaning of within the input)
|
91
|
+
new_name = FilenameCleaner.sanitize('some b@d fil$name.txt', '_', false)
|
92
92
|
puts new_name # => 'some_b_d_fil_name_txt'
|
93
93
|
```
|
94
94
|
|