vim_printer 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ### Changelog
2
2
 
3
+ #### 0.2.4
4
+
5
+ - Use `require` instead of `require_relative` when possible
6
+
3
7
  #### 0.2.3
4
8
 
5
9
  - Show the proper link name in the `index.html`
data/README.md CHANGED
@@ -223,17 +223,19 @@ Print files to (x)html using Vim
223
223
 
224
224
  You can customize how the output is produced by using the following configuration.
225
225
 
226
- Edit the file `config/initializers/vim_printer.rb` to adjust the options used by
226
+ Edit the file `lib/vim_printer/config/vim_printer.rb` to adjust the options used by
227
227
  `:TOhtml` in Vim. (see `:help :TOhtml` from inside Vim for more detail)
228
228
 
229
229
  The default settings for the `:TOhtml` are as follow
230
230
 
231
231
  ```ruby
232
232
  [
233
- "-c 'let g:html_expand_tabs = 1'",
234
- "-c 'let g:html_use_css = 1'",
235
- "-c 'let g:html_no_progress = 1'",
236
- "-c 'let g:html_number_lines = 1'"
233
+ "-c 'let g:html_expand_tabs = 1'",
234
+ "-c 'let g:html_use_css = 1'",
235
+ "-c 'let g:html_no_progress = 1'",
236
+ "-c 'let g:html_number_lines = 0'",
237
+ "-c 'let g:html_use_xhtml = 1'",
238
+ "-c 'let g:html_ignore_folding = 1'"
237
239
  ]
238
240
  ```
239
241
 
data/bin/vim_printer CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
  require_relative "../lib/vim_printer"
3
- require_relative "../config/initializers/vim_printer"
4
3
  VimPrinter.update_config
5
4
  if ARGV.empty?
6
5
  VimPrinter::CLI.start(%w[usage])
@@ -1,9 +1,3 @@
1
- require "agile_utils"
2
- require "code_lister"
3
- require "index_html"
4
- require "fileutils"
5
- require_relative "../vim_printer"
6
- require_relative "configuration"
7
1
  module VimPrinter
8
2
  include AgileUtils
9
3
  class CLI < Thor
@@ -1,4 +1,3 @@
1
- require_relative "../../lib/vim_printer/configuration"
2
1
  module VimPrinter
3
2
  class << self
4
3
  def update_config
@@ -1,3 +1,3 @@
1
1
  module VimPrinter
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
data/lib/vim_printer.rb CHANGED
@@ -1,6 +1,15 @@
1
1
  require "thor"
2
+ require "fileutils"
2
3
  require "agile_utils"
3
4
  require "code_lister"
4
- require_relative "vim_printer/core_ext/file"
5
- require_relative "vim_printer/version"
6
- require_relative "vim_printer/cli"
5
+ require "agile_utils"
6
+ require "code_lister"
7
+ require "index_html"
8
+
9
+ require "vim_printer/core_ext/file"
10
+ require "vim_printer/version"
11
+ require "vim_printer/cli"
12
+ require "vim_printer/configuration"
13
+ require "vim_printer/config/vim_printer"
14
+
15
+ include VimPrinter
data/vim_printer.gemspec CHANGED
@@ -13,14 +13,14 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://github.com/agilecreativity/vim_printer"
14
14
  spec.required_ruby_version = ">= 1.9.3"
15
15
  spec.license = "MIT"
16
- spec.files = Dir.glob("{bin,lib,config}/**/*") + %w[Gemfile
17
- Rakefile
18
- vim_printer.gemspec
19
- README.md
20
- CHANGELOG.md
21
- LICENSE
22
- .rubocop.yml
23
- .gitignore]
16
+ spec.files = Dir.glob("{bin,lib}/**/*") + %w[Gemfile
17
+ Rakefile
18
+ vim_printer.gemspec
19
+ README.md
20
+ CHANGELOG.md
21
+ LICENSE
22
+ .rubocop.yml
23
+ .gitignore]
24
24
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
25
25
  spec.test_files = Dir.glob("{test}/**/*")
26
26
  spec.require_paths = ["lib"]
metadata CHANGED
@@ -1,237 +1,254 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vim_printer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
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-09-25 00:00:00.000000000 Z
12
+ date: 2014-10-03 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: code_lister
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - "~>"
35
+ - - ~>
32
36
  - !ruby/object:Gem::Version
33
37
  version: 0.2.2
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: 0.2.2
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: index_html
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - "~>"
51
+ - - ~>
46
52
  - !ruby/object:Gem::Version
47
53
  version: 0.2.3
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
61
  version: 0.2.3
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: agile_utils
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - "~>"
67
+ - - ~>
60
68
  - !ruby/object:Gem::Version
61
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
77
  version: 0.2.2
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: bundler
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - "~>"
83
+ - - ~>
74
84
  - !ruby/object:Gem::Version
75
85
  version: 1.7.3
76
86
  type: :development
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
93
  version: 1.7.3
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: rake
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - "~>"
99
+ - - ~>
88
100
  - !ruby/object:Gem::Version
89
101
  version: 10.3.2
90
102
  type: :development
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: 10.3.2
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: minitest-spec-context
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
- - - "~>"
131
+ - - ~>
116
132
  - !ruby/object:Gem::Version
117
133
  version: 0.0.3
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
141
  version: 0.0.3
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: guard-minitest
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
- - - "~>"
147
+ - - ~>
130
148
  - !ruby/object:Gem::Version
131
149
  version: 2.3.1
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: 2.3.1
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: minitest
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
- - - "~>"
163
+ - - ~>
144
164
  - !ruby/object:Gem::Version
145
165
  version: 5.4.0
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: 5.4.0
153
174
  - !ruby/object:Gem::Dependency
154
175
  name: guard
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.6.1
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.6.1
167
190
  - !ruby/object:Gem::Dependency
168
191
  name: pry
169
192
  requirement: !ruby/object:Gem::Requirement
193
+ none: false
170
194
  requirements:
171
- - - "~>"
195
+ - - ~>
172
196
  - !ruby/object:Gem::Version
173
197
  version: 0.10.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
205
  version: 0.10.0
181
- - !ruby/object:Gem::Dependency
182
- name: pry-byebug
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - "~>"
186
- - !ruby/object:Gem::Version
187
- version: 2.0.0
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - "~>"
193
- - !ruby/object:Gem::Version
194
- version: 2.0.0
195
206
  - !ruby/object:Gem::Dependency
196
207
  name: rubocop
197
208
  requirement: !ruby/object:Gem::Requirement
209
+ none: false
198
210
  requirements:
199
- - - "~>"
211
+ - - ~>
200
212
  - !ruby/object:Gem::Version
201
213
  version: 0.26.1
202
214
  type: :development
203
215
  prerelease: false
204
216
  version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
205
218
  requirements:
206
- - - "~>"
219
+ - - ~>
207
220
  - !ruby/object:Gem::Version
208
221
  version: 0.26.1
209
222
  - !ruby/object:Gem::Dependency
210
223
  name: gem-ctags
211
224
  requirement: !ruby/object:Gem::Requirement
225
+ none: false
212
226
  requirements:
213
- - - "~>"
227
+ - - ~>
214
228
  - !ruby/object:Gem::Version
215
229
  version: 1.0.6
216
230
  type: :development
217
231
  prerelease: false
218
232
  version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
219
234
  requirements:
220
- - - "~>"
235
+ - - ~>
221
236
  - !ruby/object:Gem::Version
222
237
  version: 1.0.6
223
238
  - !ruby/object:Gem::Dependency
224
239
  name: yard
225
240
  requirement: !ruby/object:Gem::Requirement
241
+ none: false
226
242
  requirements:
227
- - - "~>"
243
+ - - ~>
228
244
  - !ruby/object:Gem::Version
229
245
  version: 0.8.7
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: 0.8.7
237
254
  description: Batch convert multiple files to htmls using the power of Vim editor
@@ -242,20 +259,21 @@ executables:
242
259
  extensions: []
243
260
  extra_rdoc_files: []
244
261
  files:
245
- - ".gitignore"
246
- - ".rubocop.yml"
247
- - CHANGELOG.md
248
- - Gemfile
249
- - LICENSE
250
- - README.md
251
- - Rakefile
252
262
  - bin/vim_printer
253
- - config/initializers/vim_printer.rb
254
- - lib/vim_printer.rb
255
263
  - lib/vim_printer/cli.rb
264
+ - lib/vim_printer/config/vim_printer.rb
256
265
  - lib/vim_printer/configuration.rb
257
266
  - lib/vim_printer/core_ext/file.rb
258
267
  - lib/vim_printer/version.rb
268
+ - lib/vim_printer.rb
269
+ - Gemfile
270
+ - Rakefile
271
+ - vim_printer.gemspec
272
+ - README.md
273
+ - CHANGELOG.md
274
+ - LICENSE
275
+ - .rubocop.yml
276
+ - .gitignore
259
277
  - test/fixtures/inputs/demo1.xxx.rb
260
278
  - test/fixtures/inputs/demo1.yyy.rb
261
279
  - test/fixtures/inputs/demo2.xxx.rb
@@ -277,30 +295,30 @@ files:
277
295
  - test/lib/vim_printer/test_cli.rb
278
296
  - test/test_helper.rb
279
297
  - test/vim_printer_test.tar.gz
280
- - vim_printer.gemspec
281
298
  homepage: https://github.com/agilecreativity/vim_printer
282
299
  licenses:
283
300
  - MIT
284
- metadata: {}
285
301
  post_install_message:
286
302
  rdoc_options: []
287
303
  require_paths:
288
304
  - lib
289
305
  required_ruby_version: !ruby/object:Gem::Requirement
306
+ none: false
290
307
  requirements:
291
- - - ">="
308
+ - - ! '>='
292
309
  - !ruby/object:Gem::Version
293
310
  version: 1.9.3
294
311
  required_rubygems_version: !ruby/object:Gem::Requirement
312
+ none: false
295
313
  requirements:
296
- - - ">="
314
+ - - ! '>='
297
315
  - !ruby/object:Gem::Version
298
316
  version: '0'
299
317
  requirements: []
300
318
  rubyforge_project:
301
- rubygems_version: 2.2.2
319
+ rubygems_version: 1.8.23.2
302
320
  signing_key:
303
- specification_version: 4
321
+ specification_version: 3
304
322
  summary: Batch convert multiple files to htmls using the power of Vim. Work will any
305
323
  languages that can be open with Vim e.g. any non-binary files.
306
324
  test_files:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: f074a7228dc09f22c74167c328d64c00ff9683bc
4
- data.tar.gz: 836dffc5ee8827d2dc5b287f323f3de464e2ce39
5
- SHA512:
6
- metadata.gz: a508a6c3beccc8c192457ad9a39846920001849acffed632337ea7004ae4ef65267081c339035d87df466293014fcde8c7a113e3aa90738214ac6b393248c48f
7
- data.tar.gz: 3f66b0acf127d6c46520e96658f317d6129fc339e746be89a2571255ca113184f4a0f95916bda4efe773458c7588fe35dfd2784f8dfcddf79069cc835902a88c