source2epub 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ #### 0.2.3
2
+
3
+ - Support ruby 1.9.3+
4
+ - Minor code cleanup
5
+
1
6
  #### 0.2.2
2
7
 
3
8
  - Code refactoring
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,7 +1,6 @@
1
1
  require "thor"
2
2
  require "vim_printer"
3
3
  require_relative "source2epub"
4
-
5
4
  module Source2Epub
6
5
  class CLI < Thor
7
6
  desc "export", "Export a given github URL or local project directory to an epub file"
@@ -1,3 +1,3 @@
1
1
  module Source2Epub
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
data/lib/source2epub.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require_relative "source2epub/version"
2
- require_relative "source2epub/logger"
3
2
  require_relative "source2epub/source2epub"
4
3
  require_relative "source2epub/exporter"
5
4
  require_relative "source2epub/cli"
data/source2epub.gemspec CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
  }
16
16
  spec.homepage = "https://github.com/agilecreativity/source2epub"
17
17
  spec.license = "MIT"
18
- spec.required_ruby_version = '>= 2.1.0'
18
+ spec.required_ruby_version = '>= 1.9.3'
19
19
  spec.files = Dir.glob("{bin,lib,config}/**/*") + %w[Gemfile
20
20
  Rakefile
21
21
  source2epub.gemspec
@@ -30,20 +30,19 @@ Gem::Specification.new do |spec|
30
30
 
31
31
  spec.add_runtime_dependency "thor", "~> 0.19.1"
32
32
  spec.add_runtime_dependency "git", "~> 1.2.7"
33
- spec.add_runtime_dependency "agile_utils", "~> 0.2.1"
34
- spec.add_runtime_dependency "code_lister", "~> 0.2.1"
35
- spec.add_runtime_dependency "vim_printer", "~> 0.2.1"
33
+ spec.add_runtime_dependency "agile_utils", "~> 0.2.2"
34
+ spec.add_runtime_dependency "code_lister", "~> 0.2.2"
35
+ spec.add_runtime_dependency "vim_printer", "~> 0.2.2"
36
36
  spec.add_runtime_dependency "eeepub", "~> 0.8.1"
37
37
 
38
38
  spec.add_development_dependency "awesome_print", "~> 1.2.0"
39
- spec.add_development_dependency "bundler", "~> 1.6.2"
39
+ spec.add_development_dependency "bundler", "~> 1.7.0"
40
40
  spec.add_development_dependency "gem-ctags", "~> 1.0.6"
41
41
  spec.add_development_dependency "guard", "~> 2.6.1"
42
42
  spec.add_development_dependency "guard-minitest", "~> 2.3.0"
43
- spec.add_development_dependency "minitest", "~> 5.3.5"
43
+ spec.add_development_dependency "minitest", "~> 5.4.0"
44
44
  spec.add_development_dependency "minitest-spec-context", "~> 0.0.3"
45
45
  spec.add_development_dependency "pry", "~> 0.10.0"
46
- spec.add_development_dependency "pry-byebug", "~> 1.3.3"
47
46
  spec.add_development_dependency "rake", "~> 10.3.2"
48
47
  spec.add_development_dependency "rubocop", "~> 0.24.1"
49
48
  spec.add_development_dependency "yard", "~> 0.8.7"
metadata CHANGED
@@ -1,268 +1,289 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: source2epub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Burin Choomnuan
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-07-31 00:00:00.000000000 Z
12
+ date: 2014-08-14 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: thor
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - "~>"
19
+ - - ~>
18
20
  - !ruby/object:Gem::Version
19
21
  version: 0.19.1
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - "~>"
27
+ - - ~>
25
28
  - !ruby/object:Gem::Version
26
29
  version: 0.19.1
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: git
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - "~>"
35
+ - - ~>
32
36
  - !ruby/object:Gem::Version
33
37
  version: 1.2.7
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - "~>"
43
+ - - ~>
39
44
  - !ruby/object:Gem::Version
40
45
  version: 1.2.7
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: agile_utils
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - "~>"
51
+ - - ~>
46
52
  - !ruby/object:Gem::Version
47
- version: 0.2.1
53
+ version: 0.2.2
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - "~>"
59
+ - - ~>
53
60
  - !ruby/object:Gem::Version
54
- version: 0.2.1
61
+ version: 0.2.2
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: code_lister
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - "~>"
67
+ - - ~>
60
68
  - !ruby/object:Gem::Version
61
- version: 0.2.1
69
+ version: 0.2.2
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - "~>"
75
+ - - ~>
67
76
  - !ruby/object:Gem::Version
68
- version: 0.2.1
77
+ version: 0.2.2
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: vim_printer
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - "~>"
83
+ - - ~>
74
84
  - !ruby/object:Gem::Version
75
- version: 0.2.1
85
+ version: 0.2.2
76
86
  type: :runtime
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - "~>"
91
+ - - ~>
81
92
  - !ruby/object:Gem::Version
82
- version: 0.2.1
93
+ version: 0.2.2
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: eeepub
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - "~>"
99
+ - - ~>
88
100
  - !ruby/object:Gem::Version
89
101
  version: 0.8.1
90
102
  type: :runtime
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
- - - "~>"
107
+ - - ~>
95
108
  - !ruby/object:Gem::Version
96
109
  version: 0.8.1
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: awesome_print
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
- - - "~>"
115
+ - - ~>
102
116
  - !ruby/object:Gem::Version
103
117
  version: 1.2.0
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
- - - "~>"
123
+ - - ~>
109
124
  - !ruby/object:Gem::Version
110
125
  version: 1.2.0
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: bundler
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
- - - "~>"
131
+ - - ~>
116
132
  - !ruby/object:Gem::Version
117
- version: 1.6.2
133
+ version: 1.7.0
118
134
  type: :development
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
- - - "~>"
139
+ - - ~>
123
140
  - !ruby/object:Gem::Version
124
- version: 1.6.2
141
+ version: 1.7.0
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: gem-ctags
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
- - - "~>"
147
+ - - ~>
130
148
  - !ruby/object:Gem::Version
131
149
  version: 1.0.6
132
150
  type: :development
133
151
  prerelease: false
134
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
135
154
  requirements:
136
- - - "~>"
155
+ - - ~>
137
156
  - !ruby/object:Gem::Version
138
157
  version: 1.0.6
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: guard
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
- - - "~>"
163
+ - - ~>
144
164
  - !ruby/object:Gem::Version
145
165
  version: 2.6.1
146
166
  type: :development
147
167
  prerelease: false
148
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
149
170
  requirements:
150
- - - "~>"
171
+ - - ~>
151
172
  - !ruby/object:Gem::Version
152
173
  version: 2.6.1
153
174
  - !ruby/object:Gem::Dependency
154
175
  name: guard-minitest
155
176
  requirement: !ruby/object:Gem::Requirement
177
+ none: false
156
178
  requirements:
157
- - - "~>"
179
+ - - ~>
158
180
  - !ruby/object:Gem::Version
159
181
  version: 2.3.0
160
182
  type: :development
161
183
  prerelease: false
162
184
  version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
163
186
  requirements:
164
- - - "~>"
187
+ - - ~>
165
188
  - !ruby/object:Gem::Version
166
189
  version: 2.3.0
167
190
  - !ruby/object:Gem::Dependency
168
191
  name: minitest
169
192
  requirement: !ruby/object:Gem::Requirement
193
+ none: false
170
194
  requirements:
171
- - - "~>"
195
+ - - ~>
172
196
  - !ruby/object:Gem::Version
173
- version: 5.3.5
197
+ version: 5.4.0
174
198
  type: :development
175
199
  prerelease: false
176
200
  version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
177
202
  requirements:
178
- - - "~>"
203
+ - - ~>
179
204
  - !ruby/object:Gem::Version
180
- version: 5.3.5
205
+ version: 5.4.0
181
206
  - !ruby/object:Gem::Dependency
182
207
  name: minitest-spec-context
183
208
  requirement: !ruby/object:Gem::Requirement
209
+ none: false
184
210
  requirements:
185
- - - "~>"
211
+ - - ~>
186
212
  - !ruby/object:Gem::Version
187
213
  version: 0.0.3
188
214
  type: :development
189
215
  prerelease: false
190
216
  version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
191
218
  requirements:
192
- - - "~>"
219
+ - - ~>
193
220
  - !ruby/object:Gem::Version
194
221
  version: 0.0.3
195
222
  - !ruby/object:Gem::Dependency
196
223
  name: pry
197
224
  requirement: !ruby/object:Gem::Requirement
225
+ none: false
198
226
  requirements:
199
- - - "~>"
227
+ - - ~>
200
228
  - !ruby/object:Gem::Version
201
229
  version: 0.10.0
202
230
  type: :development
203
231
  prerelease: false
204
232
  version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
205
234
  requirements:
206
- - - "~>"
235
+ - - ~>
207
236
  - !ruby/object:Gem::Version
208
237
  version: 0.10.0
209
- - !ruby/object:Gem::Dependency
210
- name: pry-byebug
211
- requirement: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - "~>"
214
- - !ruby/object:Gem::Version
215
- version: 1.3.3
216
- type: :development
217
- prerelease: false
218
- version_requirements: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - "~>"
221
- - !ruby/object:Gem::Version
222
- version: 1.3.3
223
238
  - !ruby/object:Gem::Dependency
224
239
  name: rake
225
240
  requirement: !ruby/object:Gem::Requirement
241
+ none: false
226
242
  requirements:
227
- - - "~>"
243
+ - - ~>
228
244
  - !ruby/object:Gem::Version
229
245
  version: 10.3.2
230
246
  type: :development
231
247
  prerelease: false
232
248
  version_requirements: !ruby/object:Gem::Requirement
249
+ none: false
233
250
  requirements:
234
- - - "~>"
251
+ - - ~>
235
252
  - !ruby/object:Gem::Version
236
253
  version: 10.3.2
237
254
  - !ruby/object:Gem::Dependency
238
255
  name: rubocop
239
256
  requirement: !ruby/object:Gem::Requirement
257
+ none: false
240
258
  requirements:
241
- - - "~>"
259
+ - - ~>
242
260
  - !ruby/object:Gem::Version
243
261
  version: 0.24.1
244
262
  type: :development
245
263
  prerelease: false
246
264
  version_requirements: !ruby/object:Gem::Requirement
265
+ none: false
247
266
  requirements:
248
- - - "~>"
267
+ - - ~>
249
268
  - !ruby/object:Gem::Version
250
269
  version: 0.24.1
251
270
  - !ruby/object:Gem::Dependency
252
271
  name: yard
253
272
  requirement: !ruby/object:Gem::Requirement
273
+ none: false
254
274
  requirements:
255
- - - "~>"
275
+ - - ~>
256
276
  - !ruby/object:Gem::Version
257
277
  version: 0.8.7
258
278
  type: :development
259
279
  prerelease: false
260
280
  version_requirements: !ruby/object:Gem::Requirement
281
+ none: false
261
282
  requirements:
262
- - - "~>"
283
+ - - ~>
263
284
  - !ruby/object:Gem::Version
264
285
  version: 0.8.7
265
- description: "Export any project from git repository or local directory to a single
286
+ description: ! "Export any project from git repository or local directory to a single
266
287
  epub file.\n Combine useful features of the following ruby
267
288
  gems\n (vim_printer, eeepub and others)\n to
268
289
  produce a single epub file that can be view by any device where epub is supported.\n
@@ -274,46 +295,46 @@ executables:
274
295
  extensions: []
275
296
  extra_rdoc_files: []
276
297
  files:
277
- - ".gitignore"
278
- - ".rubocop.yml"
279
- - CHANGELOG.md
280
- - Gemfile
281
- - LICENSE
282
- - README.md
283
- - Rakefile
284
298
  - bin/source2epub
285
- - config/initializers/source2epub.rb
286
- - lib/source2epub.rb
287
299
  - lib/source2epub/cli.rb
288
300
  - lib/source2epub/configuration.rb
289
301
  - lib/source2epub/exporter.rb
290
- - lib/source2epub/logger.rb
291
302
  - lib/source2epub/source2epub.rb
292
303
  - lib/source2epub/version.rb
304
+ - lib/source2epub.rb
305
+ - config/initializers/source2epub.rb
306
+ - Gemfile
307
+ - Rakefile
293
308
  - source2epub.gemspec
309
+ - README.md
310
+ - CHANGELOG.md
311
+ - LICENSE
312
+ - .rubocop.yml
313
+ - .gitignore
294
314
  homepage: https://github.com/agilecreativity/source2epub
295
315
  licenses:
296
316
  - MIT
297
- metadata: {}
298
317
  post_install_message:
299
318
  rdoc_options: []
300
319
  require_paths:
301
320
  - lib
302
321
  required_ruby_version: !ruby/object:Gem::Requirement
322
+ none: false
303
323
  requirements:
304
- - - ">="
324
+ - - ! '>='
305
325
  - !ruby/object:Gem::Version
306
- version: 2.1.0
326
+ version: 1.9.3
307
327
  required_rubygems_version: !ruby/object:Gem::Requirement
328
+ none: false
308
329
  requirements:
309
- - - ">="
330
+ - - ! '>='
310
331
  - !ruby/object:Gem::Version
311
332
  version: '0'
312
333
  requirements: []
313
334
  rubyforge_project:
314
- rubygems_version: 2.2.2
335
+ rubygems_version: 1.8.23.2
315
336
  signing_key:
316
- specification_version: 4
337
+ specification_version: 3
317
338
  summary: Export any project from git repository or local directory to a single epub
318
339
  file
319
340
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 19d5b12cf8b5ad412833dea86bfa538106755c2b
4
- data.tar.gz: bacbd2e2844ed886a3c8f58125fcdac77f1fe70c
5
- SHA512:
6
- metadata.gz: 9deec68b5c3e2d2d012ca8d14228b642256b0258b1f163db61f9dc7a43e25b09e2978038cd33d9f44c446a9ae4a12cbdfb05a39bf9923c899919f0f598d8fe67
7
- data.tar.gz: 93bcf378e58cf94442936c91f06f47e2631da95b12d62ba4203262e38ad2f99921bcce446e7dc37d66bcf53d34bb746b823401d2b1e1b2dd9982ad49b8334b26
@@ -1,10 +0,0 @@
1
- require "logger"
2
- module Source2Epub
3
- class << self
4
- attr_writer :logger
5
- # @return [Logger] the logger for the project
6
- def logger
7
- @logger ||= Logger.new STDOUT
8
- end
9
- end
10
- end