ebooks_renamer 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,66 @@
1
+ ## Changelogs
2
+
3
+ ### 0.2.3
4
+
5
+ - Use `require` instead of `require_relative` when possible
6
+ - Misc code cleanup
7
+
8
+ ### 0.2.2
9
+
10
+ - Support ruby version 1.9.3+
11
+ - Minor code cleanup
12
+
13
+ ### 0.2.1
14
+
15
+ - Make ruby version 2.1.0+ explicit in the gemspec
16
+
17
+ ### 0.2.0
18
+
19
+ - Use refinement instead of monkeypatching (need ruby 2.1.0+)
20
+ - Minor code cleanup
21
+
22
+ ### 0.1.5
23
+
24
+ - Use core_ext functionality from `agile_utils`
25
+ - Remove extra `require pry` in the library
26
+ - Be specific about version of required gems
27
+
28
+ ### 0.1.4
29
+
30
+ - Simplify the CLI usage
31
+
32
+ ### 0.1.3
33
+
34
+ - Fix the mistake when comparing the old name vs new name
35
+
36
+ ### 0.1.2
37
+
38
+ - Update to use the new version of filename_cleaner gem
39
+
40
+ ### 0.1.1
41
+
42
+ - Simplify the api and minor code cleanup
43
+
44
+ ### 0.1.0
45
+
46
+ - First [Semantic Versioning][] release
47
+
48
+ ### 0.0.4
49
+
50
+ - Allow the next file to be processed on unexpected error in the main loop
51
+
52
+ ### 0.0.3
53
+
54
+ - Log the errors and allow the process to continue on unexpected error
55
+ - Improve README.md
56
+
57
+ ### 0.0.2
58
+
59
+ - Bug fix - make 'formatted_name' work correctly
60
+ - Minor code cleanup
61
+
62
+ ### 0.0.1
63
+
64
+ - Initial release
65
+
66
+ [Semantic Versioning]: http://semver.org
data/Gemfile CHANGED
@@ -1,4 +1,2 @@
1
1
  source "https://rubygems.org"
2
-
3
- # Specify your gem's dependencies in valid_filename.gemspec
4
2
  gemspec
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
  require_relative "../lib/ebooks_renamer"
3
- include EbooksRenamer
4
3
  if ARGV.empty?
5
4
  EbooksRenamer::CLI.start(%w[usage])
6
5
  else
@@ -12,34 +12,33 @@ Gem::Specification.new do |spec|
12
12
  spec.homepage = 'https://github.com/agilecreativity/ebooks_renamer'
13
13
  spec.license = 'MIT'
14
14
  spec.required_ruby_version = ">= 1.9.3"
15
- spec.files = Dir.glob('{bin,lib,templates}/**/*') + %w(Gemfile
16
- Rakefile
17
- ebooks_renamer.gemspec
18
- README.md
19
- LICENSE
20
- .rubocop.yml
21
- .gitignore)
15
+ spec.files = Dir.glob('{bin,lib}/**/*') + %w(Gemfile
16
+ Rakefile
17
+ ebooks_renamer.gemspec
18
+ README.md
19
+ CHANGELOG.md
20
+ LICENSE
21
+ .rubocop.yml
22
+ .gitignore)
22
23
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
23
24
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
24
25
  spec.require_paths = ['lib']
25
-
26
26
  spec.add_runtime_dependency 'thor', '~> 0.19.1'
27
27
  spec.add_runtime_dependency 'pdf-reader', '~> 1.3.3'
28
28
  spec.add_runtime_dependency 'mobi', '~> 1.0.0'
29
29
  spec.add_runtime_dependency 'epubinfo', '~> 0.4.3'
30
- spec.add_runtime_dependency 'filename_cleaner', '~> 0.4.3'
31
- spec.add_runtime_dependency 'agile_utils', '~> 0.2.2'
32
- spec.add_runtime_dependency 'code_lister', '~> 0.2.2'
33
-
30
+ spec.add_runtime_dependency 'filename_cleaner', '~> 0.4.6'
31
+ spec.add_runtime_dependency 'agile_utils', '~> 0.2.3'
32
+ spec.add_runtime_dependency 'code_lister', '~> 0.2.4'
34
33
  spec.add_development_dependency 'awesome_print', '~> 1.2.0'
35
- spec.add_development_dependency 'bundler', '~> 1.7.0'
34
+ spec.add_development_dependency 'bundler', '~> 1.7.3'
36
35
  spec.add_development_dependency 'gem-ctags', '~> 1.0.6'
37
36
  spec.add_development_dependency 'guard', '~> 2.6.1'
38
37
  spec.add_development_dependency 'guard-minitest', '~> 2.3.1'
39
- spec.add_development_dependency 'minitest', '~> 5.4.0'
38
+ spec.add_development_dependency 'minitest', '~> 5.4.2'
40
39
  spec.add_development_dependency 'minitest-spec-context', '~> 0.0.3'
41
- spec.add_development_dependency 'pry', '~> 0.10.0'
40
+ spec.add_development_dependency 'pry', '~> 0.10.1'
42
41
  spec.add_development_dependency 'rake', '~> 10.3.2'
43
- spec.add_development_dependency 'rubocop', '~> 0.24.1'
42
+ spec.add_development_dependency 'rubocop', '~> 0.26.1'
44
43
  spec.add_development_dependency 'yard', '~> 0.8.7'
45
44
  end
@@ -1,4 +1,16 @@
1
- require_relative "ebooks_renamer/version"
2
- require_relative "ebooks_renamer/cli"
3
- require_relative "ebooks_renamer/ebooks_renamer"
1
+ require "thor"
2
+ require "mobi"
3
+ require "epubinfo"
4
+ require "pdf-reader"
5
+ require "ostruct"
6
+ require "agile_utils"
7
+ require "fileutils"
8
+ require "filename_cleaner"
9
+ require "code_lister"
10
+ require "ebooks_renamer/pdf_parser"
11
+ require "ebooks_renamer/epub_parser"
12
+ require "ebooks_renamer/mobi_parser"
13
+ require "ebooks_renamer/version"
14
+ require "ebooks_renamer/cli"
15
+ require "ebooks_renamer/ebooks_renamer"
4
16
  include EbooksRenamer
@@ -1,6 +1,3 @@
1
- require "thor"
2
- require "agile_utils"
3
- require_relative "ebooks_renamer"
4
1
  module EbooksRenamer
5
2
  class CLI < Thor
6
3
  desc "rename", "Rename ebooks based on given criteria"
@@ -1,14 +1,3 @@
1
- require "mobi"
2
- require "epubinfo"
3
- require "pdf-reader"
4
- require "ostruct"
5
- require "fileutils"
6
- require "filename_cleaner"
7
- require "code_lister"
8
- require_relative "pdf_parser"
9
- require_relative "epub_parser"
10
- require_relative "mobi_parser"
11
-
12
1
  module EbooksRenamer
13
2
  CustomError = Class.new(StandardError)
14
3
  class << self
@@ -1,3 +1,3 @@
1
1
  module EbooksRenamer
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ebooks_renamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-14 00:00:00.000000000 Z
12
+ date: 2014-10-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -82,7 +82,7 @@ dependencies:
82
82
  requirements:
83
83
  - - ~>
84
84
  - !ruby/object:Gem::Version
85
- version: 0.4.3
85
+ version: 0.4.6
86
86
  type: :runtime
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
@@ -90,7 +90,7 @@ dependencies:
90
90
  requirements:
91
91
  - - ~>
92
92
  - !ruby/object:Gem::Version
93
- version: 0.4.3
93
+ version: 0.4.6
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: agile_utils
96
96
  requirement: !ruby/object:Gem::Requirement
@@ -98,7 +98,7 @@ dependencies:
98
98
  requirements:
99
99
  - - ~>
100
100
  - !ruby/object:Gem::Version
101
- version: 0.2.2
101
+ version: 0.2.3
102
102
  type: :runtime
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
@@ -106,7 +106,7 @@ dependencies:
106
106
  requirements:
107
107
  - - ~>
108
108
  - !ruby/object:Gem::Version
109
- version: 0.2.2
109
+ version: 0.2.3
110
110
  - !ruby/object:Gem::Dependency
111
111
  name: code_lister
112
112
  requirement: !ruby/object:Gem::Requirement
@@ -114,7 +114,7 @@ dependencies:
114
114
  requirements:
115
115
  - - ~>
116
116
  - !ruby/object:Gem::Version
117
- version: 0.2.2
117
+ version: 0.2.4
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
@@ -122,7 +122,7 @@ dependencies:
122
122
  requirements:
123
123
  - - ~>
124
124
  - !ruby/object:Gem::Version
125
- version: 0.2.2
125
+ version: 0.2.4
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: awesome_print
128
128
  requirement: !ruby/object:Gem::Requirement
@@ -146,7 +146,7 @@ dependencies:
146
146
  requirements:
147
147
  - - ~>
148
148
  - !ruby/object:Gem::Version
149
- version: 1.7.0
149
+ version: 1.7.3
150
150
  type: :development
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
@@ -154,7 +154,7 @@ dependencies:
154
154
  requirements:
155
155
  - - ~>
156
156
  - !ruby/object:Gem::Version
157
- version: 1.7.0
157
+ version: 1.7.3
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: gem-ctags
160
160
  requirement: !ruby/object:Gem::Requirement
@@ -210,7 +210,7 @@ dependencies:
210
210
  requirements:
211
211
  - - ~>
212
212
  - !ruby/object:Gem::Version
213
- version: 5.4.0
213
+ version: 5.4.2
214
214
  type: :development
215
215
  prerelease: false
216
216
  version_requirements: !ruby/object:Gem::Requirement
@@ -218,7 +218,7 @@ dependencies:
218
218
  requirements:
219
219
  - - ~>
220
220
  - !ruby/object:Gem::Version
221
- version: 5.4.0
221
+ version: 5.4.2
222
222
  - !ruby/object:Gem::Dependency
223
223
  name: minitest-spec-context
224
224
  requirement: !ruby/object:Gem::Requirement
@@ -242,7 +242,7 @@ dependencies:
242
242
  requirements:
243
243
  - - ~>
244
244
  - !ruby/object:Gem::Version
245
- version: 0.10.0
245
+ version: 0.10.1
246
246
  type: :development
247
247
  prerelease: false
248
248
  version_requirements: !ruby/object:Gem::Requirement
@@ -250,7 +250,7 @@ dependencies:
250
250
  requirements:
251
251
  - - ~>
252
252
  - !ruby/object:Gem::Version
253
- version: 0.10.0
253
+ version: 0.10.1
254
254
  - !ruby/object:Gem::Dependency
255
255
  name: rake
256
256
  requirement: !ruby/object:Gem::Requirement
@@ -274,7 +274,7 @@ dependencies:
274
274
  requirements:
275
275
  - - ~>
276
276
  - !ruby/object:Gem::Version
277
- version: 0.24.1
277
+ version: 0.26.1
278
278
  type: :development
279
279
  prerelease: false
280
280
  version_requirements: !ruby/object:Gem::Requirement
@@ -282,7 +282,7 @@ dependencies:
282
282
  requirements:
283
283
  - - ~>
284
284
  - !ruby/object:Gem::Version
285
- version: 0.24.1
285
+ version: 0.26.1
286
286
  - !ruby/object:Gem::Dependency
287
287
  name: yard
288
288
  requirement: !ruby/object:Gem::Requirement
@@ -320,6 +320,7 @@ files:
320
320
  - Rakefile
321
321
  - ebooks_renamer.gemspec
322
322
  - README.md
323
+ - CHANGELOG.md
323
324
  - LICENSE
324
325
  - .rubocop.yml
325
326
  - .gitignore