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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f6078a186a0c9e84d192701867662ad2ce071bd
4
- data.tar.gz: 43354655bc00fcb28cd45bd232a6c7eeb2ac82e8
3
+ metadata.gz: 4477e245f101589f606b01bfa70dee14005469d5
4
+ data.tar.gz: 779718eb93ff5ecc03997a2cf782014761d68eb6
5
5
  SHA512:
6
- metadata.gz: 7bc0cf808b4f785de98469185023e17b5cab828f58d7369a16429bd76897e397a41925f746093a1ef207c4184cf635859af47dfa9ca902024756a4b25c016ed9
7
- data.tar.gz: 2f60628983d6bef4f9e6df80c8eac533a07181b335807d52f6b0fc211a02a86d1455a67be19422b67343b73e799946379a9293de4ba589c5c6102175d19964bc
6
+ metadata.gz: 06e54af020ef55ba5c4513d81d9d242aa686c8e4063903c074d074f2ebf0748bb86d4176c950e86bdabf41a65ffc673a8d06dd0b309be38c20e397a09c1dd4e7
7
+ data.tar.gz: 2b396ccb143b0b74b20c9e745e6764361b51ebd23fdc64a66679288f6ccf8c60085c21607b5ef630b0fc00eb093c8dea088c02dc09c7e3394a6b9dfab2a52a9e
data/CHANGELOGS.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ### Changelogs
2
2
 
3
+ #### 0.3.1
4
+
5
+ - Correct the sample usage in README.md
6
+
3
7
  #### 0.3.0
4
8
 
5
9
  - Cleanup and simplify the apis
data/README.md CHANGED
@@ -83,12 +83,12 @@ Example Usage:
83
83
 
84
84
  ```ruby
85
85
  require 'filename_cleaner'
86
- # work with the file that have extension
87
- new_name = FilenameCleaner.sanitize_name_with_extension('some b@d fil$name.txt', '_')
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
- # or to work with the file without extension
91
- new_name = FilenameCleaner.sanitize_name('some b@d fil$name.txt', '_')
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
 
@@ -1,3 +1,3 @@
1
1
  module FilenameCleaner
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filename_cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Burin Choomnuan