filename_cleaner 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/filename_cleaner.gemspec +2 -3
- data/lib/filename_cleaner/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdac07fa184d53eded2bdebcbfa1e362d90bbd14
|
4
|
+
data.tar.gz: f34bb1e4fd166d5d34ff20971d83512e5e027b27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a599a4effdd5bdedc43410d7e80852b1570cf877f6d4581820473c98ff3d3fadf9f970502a1709970bd1a14a46447b659a9ca94f2032a07676e7a2bf2590bdcb
|
7
|
+
data.tar.gz: eb4b943621f94faaf3c20327c5bfe6ed690100ce048d1a3e081ee502bb06a6a50b938c9793eff164ac837b24134c43db5db1a0efb0c052aeb9f51fbea366c7da
|
data/README.md
CHANGED
@@ -79,7 +79,7 @@ Example Usage:
|
|
79
79
|
|
80
80
|
```ruby
|
81
81
|
require 'filename_cleaner'
|
82
|
-
clean_name = FilenameCleaner::
|
82
|
+
clean_name = FilenameCleaner::sanitize_filename('some b@d fil$name.txt')
|
83
83
|
puts clean_name # => 'some.b.d.fil.name.txt'
|
84
84
|
|
85
85
|
```
|
@@ -88,7 +88,7 @@ puts clean_name # => 'some.b.d.fil.name.txt'
|
|
88
88
|
|
89
89
|
```ruby
|
90
90
|
require 'filename_cleaner'
|
91
|
-
clean_name = FilenameCleaner::
|
91
|
+
clean_name = FilenameCleaner::sanitize_filename('some b@d fil$name.txt', '_')
|
92
92
|
puts clean_name # => 'some_b_d_fil_name.txt'
|
93
93
|
|
94
94
|
```
|
data/filename_cleaner.gemspec
CHANGED
@@ -16,8 +16,8 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ['lib']
|
19
|
-
spec.add_runtime_dependency 'thor', '~> 0.
|
20
|
-
spec.add_runtime_dependency 'agile_utils', '~> 0.
|
19
|
+
spec.add_runtime_dependency 'thor', '~> 0.19'
|
20
|
+
spec.add_runtime_dependency 'agile_utils', '~> 0.1'
|
21
21
|
spec.add_development_dependency 'bundler', '~> 1.5'
|
22
22
|
spec.add_development_dependency 'rake', '~> 10.1'
|
23
23
|
spec.add_development_dependency 'awesome_print', '~> 1.2'
|
@@ -29,5 +29,4 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency 'gem-ctags', '~> 1.0'
|
30
30
|
spec.add_development_dependency 'yard', '~> 0.8'
|
31
31
|
spec.add_development_dependency 'rubocop', '~> 0.20'
|
32
|
-
|
33
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filename_cleaner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Burin Choomnuan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.19'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.19'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: agile_utils
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: '0.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: '0.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|