ebooks_renamer 0.1.1 → 0.1.2

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: b26e766e43a944e345a5c30f859df39a635725ab
4
- data.tar.gz: 7beb1a0ffd7d6f3efa45daebb8c93f5c8300b8a5
3
+ metadata.gz: 21fe146438b4dbb0ad23847f2124d567d10fcca1
4
+ data.tar.gz: a89bf580f80cbd067eb650655a75354d8be98a60
5
5
  SHA512:
6
- metadata.gz: 109a3bc65164d4397127916e4777dd02ffbec6f2ed0f59186e40f44706a8a56f3aedb0267f0c8ac515255c827bf01935a9e846ece77aa3a6ee3769d68ba20218
7
- data.tar.gz: 68ed62a40d482943e90aae376d3a39f7f7ba29dc3cd015c36bc8e3db7df9d97090ee1f25975420ccb19fba2879286fd733b293cb018744a15232c2496463f750
6
+ metadata.gz: 98e1c3e802c68ce8884ecca42589fd977478469fd9de171a8683beb05aecc0ad999f01c2dc6472c1a5df7a8364ba020d3f330ac5caef0387cfb24770db006ff5
7
+ data.tar.gz: 2c50e1534fb80443ce4334ceba3fb0757bc801e850a270a2effa81e42908c04084ab8f0147e21cf6d2ee13c126cc158a1527615e097d06caf1fd05f024ba3a63
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_runtime_dependency 'pdf-reader', '~> 1.3.3'
27
27
  spec.add_runtime_dependency 'mobi', '~> 1.0.0'
28
28
  spec.add_runtime_dependency 'epubinfo', '~> 0.4.3'
29
- spec.add_runtime_dependency 'filename_cleaner', '~> 0.1'
29
+ spec.add_runtime_dependency 'filename_cleaner', '~> 0.3'
30
30
  spec.add_runtime_dependency 'code_lister', '~> 0.1'
31
31
  spec.add_development_dependency 'awesome_print', '~> 1.2'
32
32
  spec.add_development_dependency 'bundler', '~> 1.5'
@@ -50,8 +50,9 @@ module EbooksRenamer
50
50
  # return the sanitized file name with full path
51
51
  [File.dirname(file),
52
52
  File::SEPARATOR,
53
- FilenameCleaner.sanitize_filename([name, File.extname(file)].join(''),
54
- sep_string)].join('')
53
+ FilenameCleaner.sanitize(name, sep_string, false),
54
+ File.extname(file),
55
+ ].join('')
55
56
  else
56
57
  # return the full path of the original file
57
58
  File.expand_path(file)
@@ -1,3 +1,3 @@
1
1
  module EbooksRenamer
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ebooks_renamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
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-12 00:00:00.000000000 Z
11
+ date: 2014-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.1'
75
+ version: '0.3'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.1'
82
+ version: '0.3'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: code_lister
85
85
  requirement: !ruby/object:Gem::Requirement