ebook_renamer 0.0.8 → 0.0.9

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: 5a2139b4a762320fd57c0f4fa7bc7a596fa9fe7e
4
- data.tar.gz: 9e398f2a27d81053475b3fae18fe92b7de07d8d3
3
+ metadata.gz: 641bf272bd78c0b01fbbc03d5d2380d1b8c2162e
4
+ data.tar.gz: b4d1c87105e71bef24817e3c3c6ef6c9549c2ea0
5
5
  SHA512:
6
- metadata.gz: 48751c782e8240b4a539a04bbaed42235c0e620c016fa3c3f298874c7de6f7c4d4eae4cfd08afa56a0d45a6769a2dae7f127c369536d39ace8db3b3c3157c4da
7
- data.tar.gz: c88f3706a48f84c46c4cb102e89502d6fe943d05fabe6e39baa1b16b1da909f665ec3193350b3195b6fb4cd16bb73284d15ac120cec61aae79fdfc477b7e3553
6
+ metadata.gz: ecac60b0e43fa309b06736b056ff198cb8aa0543f5c44b360fc5642df698fd97637275004103b535aa4d4df468364e4437c80e33c423118ff53ae74d013fb63e
7
+ data.tar.gz: 8dde10bb99350d39247acdfa851511da69a2b953b08947b41809eba3f1b0f37fd93d8483b96ddaf49ee6f986bb1ecdf603a975159a34087208f49839677f6cb9
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.1.1
1
+ 2.0.0
data/README.md CHANGED
@@ -52,13 +52,13 @@ $cd ~/Dropbox/ebooks/
52
52
  $ebook_renamer rename --base-dir ~/Dropbox/ebooks/samples
53
53
 
54
54
  # For help on how to use the gem just type without any options.
55
- ebook_renamer
55
+ $ebook_renamer
56
56
 
57
57
  # Run the command without making any changes to the files (dry-run) in the current directory
58
- $ebook_renamer --base-dir . --recursive
58
+ $ebook_renamer rename --base-dir . --recursive
59
59
 
60
60
  # Once you are happy with what result then
61
- $ebook_renamer --base-dir . --recursive --commit
61
+ $ebook_renamer rename --base-dir . --recursive --commit
62
62
  ```
63
63
 
64
64
  ### Example Outputs
@@ -135,6 +135,10 @@ Rename ebook files (pdf,epub,mobi)
135
135
 
136
136
  ### Changelog
137
137
 
138
+ #### 0.0.9
139
+
140
+ - Make sure the gemspec include the proper dependencies.
141
+
138
142
  #### 0.0.8
139
143
 
140
144
  - Use Thor instead of OptionParser for parsing of options
data/bin/ebook_renamer CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'thor'
3
- require 'pry'
4
3
  require_relative '../lib/ebook_renamer'
5
4
  require_relative '../lib/ebook_renamer/helper'
6
5
  require_relative '../lib/ebook_renamer/version'
6
+
7
7
  include EbookRenamer
8
8
  EbookRenamer::Command.start(ARGV)
@@ -17,10 +17,11 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
+ spec.add_runtime_dependency "thor", "~> 0.18"
21
+ spec.add_runtime_dependency "awesome_print", "~> 1.2"
22
+
20
23
  spec.add_development_dependency "bundler", "~> 1.3"
21
24
  spec.add_development_dependency "rake"
22
- spec.add_development_dependency "thor"
23
-
24
25
  spec.add_development_dependency "minitest-spec-context", "~> 0.0.3"
25
26
  spec.add_development_dependency "guard-minitest", "~> 2.2"
26
27
  spec.add_development_dependency "minitest", "~> 4.2"
data/lib/ebook_renamer.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'thor'
2
2
  require 'ap'
3
3
  module EbookRenamer
4
+
4
5
  class Command < Thor
5
6
  desc "rename", "Rename ebook files (pdf,epub,mobi)"
6
7
 
@@ -1,3 +1,3 @@
1
1
  module EbookRenamer
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,167 +1,181 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ebook_renamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
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-04-09 00:00:00.000000000 Z
11
+ date: 2014-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
20
- type: :development
19
+ version: '0.18'
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: '1.3'
26
+ version: '0.18'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: awesome_print
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '1.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '1.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - ">="
52
+ - - ~>
39
53
  - !ruby/object:Gem::Version
40
- version: '0'
54
+ version: '1.3'
41
55
  - !ruby/object:Gem::Dependency
42
- name: thor
56
+ name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - ">="
59
+ - - '>='
46
60
  - !ruby/object:Gem::Version
47
61
  version: '0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - ">="
66
+ - - '>='
53
67
  - !ruby/object:Gem::Version
54
68
  version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: minitest-spec-context
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - "~>"
73
+ - - ~>
60
74
  - !ruby/object:Gem::Version
61
75
  version: 0.0.3
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - "~>"
80
+ - - ~>
67
81
  - !ruby/object:Gem::Version
68
82
  version: 0.0.3
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: guard-minitest
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - "~>"
87
+ - - ~>
74
88
  - !ruby/object:Gem::Version
75
89
  version: '2.2'
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - "~>"
94
+ - - ~>
81
95
  - !ruby/object:Gem::Version
82
96
  version: '2.2'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: minitest
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - "~>"
101
+ - - ~>
88
102
  - !ruby/object:Gem::Version
89
103
  version: '4.2'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - "~>"
108
+ - - ~>
95
109
  - !ruby/object:Gem::Version
96
110
  version: '4.2'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: awesome_print
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - "~>"
115
+ - - ~>
102
116
  - !ruby/object:Gem::Version
103
117
  version: '1.2'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
- - - "~>"
122
+ - - ~>
109
123
  - !ruby/object:Gem::Version
110
124
  version: '1.2'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: guard
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
- - - "~>"
129
+ - - ~>
116
130
  - !ruby/object:Gem::Version
117
131
  version: '2.6'
118
132
  type: :development
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
- - - "~>"
136
+ - - ~>
123
137
  - !ruby/object:Gem::Version
124
138
  version: '2.6'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: pry
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
- - - "~>"
143
+ - - ~>
130
144
  - !ruby/object:Gem::Version
131
145
  version: '0.9'
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
- - - "~>"
150
+ - - ~>
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0.9'
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: gem-ctags
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
- - - "~>"
157
+ - - ~>
144
158
  - !ruby/object:Gem::Version
145
159
  version: '1.0'
146
160
  type: :development
147
161
  prerelease: false
148
162
  version_requirements: !ruby/object:Gem::Requirement
149
163
  requirements:
150
- - - "~>"
164
+ - - ~>
151
165
  - !ruby/object:Gem::Version
152
166
  version: '1.0'
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: yard
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
- - - "~>"
171
+ - - ~>
158
172
  - !ruby/object:Gem::Version
159
173
  version: '0.8'
160
174
  type: :development
161
175
  prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
- - - "~>"
178
+ - - ~>
165
179
  - !ruby/object:Gem::Version
166
180
  version: '0.8'
167
181
  description: Bulk rename of ebook files based on available metadata
@@ -172,10 +186,10 @@ executables:
172
186
  extensions: []
173
187
  extra_rdoc_files: []
174
188
  files:
175
- - ".gitignore"
176
- - ".ruby-version"
177
- - ".travis.yml"
178
- - ".yardopts"
189
+ - .gitignore
190
+ - .ruby-version
191
+ - .travis.yml
192
+ - .yardopts
179
193
  - Gemfile
180
194
  - Guardfile
181
195
  - LICENSE
@@ -204,17 +218,17 @@ require_paths:
204
218
  - lib
205
219
  required_ruby_version: !ruby/object:Gem::Requirement
206
220
  requirements:
207
- - - ">="
221
+ - - '>='
208
222
  - !ruby/object:Gem::Version
209
223
  version: '0'
210
224
  required_rubygems_version: !ruby/object:Gem::Requirement
211
225
  requirements:
212
- - - ">="
226
+ - - '>='
213
227
  - !ruby/object:Gem::Version
214
228
  version: '0'
215
229
  requirements: []
216
230
  rubyforge_project:
217
- rubygems_version: 2.2.2
231
+ rubygems_version: 2.0.14
218
232
  signing_key:
219
233
  specification_version: 4
220
234
  summary: Rename multiple ebook files (epub, mobi, pdf) based on existing metadata