gimli 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gimli/converter.rb +2 -13
- data/lib/gimli/path.rb +2 -1
- data/lib/gimli/version.rb +1 -1
- metadata +192 -135
data/lib/gimli/converter.rb
CHANGED
@@ -33,11 +33,6 @@ module Gimli
|
|
33
33
|
end
|
34
34
|
|
35
35
|
unless merged_contents.empty?
|
36
|
-
if ARGV.flags.file?
|
37
|
-
path = ARGV.flags.file
|
38
|
-
else
|
39
|
-
path = Dir.getwd
|
40
|
-
end
|
41
36
|
html = merged_contents.join
|
42
37
|
output_pdf(html, nil)
|
43
38
|
end
|
@@ -79,25 +74,19 @@ module Gimli
|
|
79
74
|
# Load standard stylesheet
|
80
75
|
style = ::File.expand_path("../../../config/style.css", __FILE__)
|
81
76
|
kit.stylesheets << style
|
82
|
-
|
83
|
-
stylesheet
|
84
|
-
|
85
77
|
kit.stylesheets << stylesheet if ::File.exists?(stylesheet)
|
86
78
|
end
|
87
79
|
|
88
80
|
# Returns the selected stylesheet. Defaults to ./gimli.css
|
89
81
|
# @return [String]
|
90
82
|
def stylesheet
|
91
|
-
stylesheet
|
92
|
-
stylesheet = ARGV.flags.stylesheet if ARGV.flags.stylesheet?
|
93
|
-
stylesheet
|
83
|
+
ARGV.flags.stylesheet? ? ARGV.flags.stylesheet : 'gimli.css'
|
94
84
|
end
|
95
85
|
|
96
86
|
# Returns the directory where to save the output. Defaults to ./
|
97
87
|
# @return [String]
|
98
88
|
def output_dir
|
99
|
-
output_dir = Dir.getwd
|
100
|
-
output_dir = ARGV.flags.outputdir if ARGV.flags.outputdir?
|
89
|
+
output_dir = ARGV.flags.outputdir? ? ARGV.flags.outputdir : Dir.getwd
|
101
90
|
FileUtils.mkdir_p(output_dir) unless ::File.directory?(output_dir)
|
102
91
|
output_dir
|
103
92
|
end
|
data/lib/gimli/path.rb
CHANGED
data/lib/gimli/version.rb
CHANGED
metadata
CHANGED
@@ -1,181 +1,229 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: gimli
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 8
|
10
|
+
version: 0.1.8
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Fredrik Wallgren
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
17
|
+
|
18
|
+
date: 2011-06-26 00:00:00 +02:00
|
13
19
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
16
22
|
name: bundler
|
17
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
25
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
23
33
|
type: :runtime
|
24
|
-
|
25
|
-
|
26
|
-
- !ruby/object:Gem::Dependency
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
27
36
|
name: github-markup
|
28
|
-
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
29
39
|
none: false
|
30
|
-
requirements:
|
31
|
-
- -
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
34
47
|
type: :runtime
|
35
|
-
|
36
|
-
|
37
|
-
- !ruby/object:Gem::Dependency
|
48
|
+
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
38
50
|
name: redcarpet
|
39
|
-
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
53
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
45
61
|
type: :runtime
|
46
|
-
|
47
|
-
|
48
|
-
- !ruby/object:Gem::Dependency
|
62
|
+
version_requirements: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
49
64
|
name: RedCloth
|
50
|
-
|
65
|
+
prerelease: false
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
51
67
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
version: "0"
|
56
75
|
type: :runtime
|
57
|
-
|
58
|
-
|
59
|
-
- !ruby/object:Gem::Dependency
|
76
|
+
version_requirements: *id004
|
77
|
+
- !ruby/object:Gem::Dependency
|
60
78
|
name: org-ruby
|
61
|
-
|
79
|
+
prerelease: false
|
80
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
62
81
|
none: false
|
63
|
-
requirements:
|
64
|
-
- -
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
hash: 3
|
86
|
+
segments:
|
87
|
+
- 0
|
88
|
+
version: "0"
|
67
89
|
type: :runtime
|
68
|
-
|
69
|
-
|
70
|
-
- !ruby/object:Gem::Dependency
|
90
|
+
version_requirements: *id005
|
91
|
+
- !ruby/object:Gem::Dependency
|
71
92
|
name: creole
|
72
|
-
|
93
|
+
prerelease: false
|
94
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
73
95
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
hash: 3
|
100
|
+
segments:
|
101
|
+
- 0
|
102
|
+
version: "0"
|
78
103
|
type: :runtime
|
79
|
-
|
80
|
-
|
81
|
-
- !ruby/object:Gem::Dependency
|
104
|
+
version_requirements: *id006
|
105
|
+
- !ruby/object:Gem::Dependency
|
82
106
|
name: wikicloth
|
83
|
-
|
107
|
+
prerelease: false
|
108
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
84
109
|
none: false
|
85
|
-
requirements:
|
86
|
-
- -
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
hash: 3
|
114
|
+
segments:
|
115
|
+
- 0
|
116
|
+
version: "0"
|
89
117
|
type: :runtime
|
90
|
-
|
91
|
-
|
92
|
-
- !ruby/object:Gem::Dependency
|
118
|
+
version_requirements: *id007
|
119
|
+
- !ruby/object:Gem::Dependency
|
93
120
|
name: albino
|
94
|
-
|
121
|
+
prerelease: false
|
122
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
95
123
|
none: false
|
96
|
-
requirements:
|
97
|
-
- -
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
|
124
|
+
requirements:
|
125
|
+
- - ">="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
hash: 3
|
128
|
+
segments:
|
129
|
+
- 0
|
130
|
+
version: "0"
|
100
131
|
type: :runtime
|
101
|
-
|
102
|
-
|
103
|
-
- !ruby/object:Gem::Dependency
|
132
|
+
version_requirements: *id008
|
133
|
+
- !ruby/object:Gem::Dependency
|
104
134
|
name: nokogiri
|
105
|
-
|
135
|
+
prerelease: false
|
136
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
106
137
|
none: false
|
107
|
-
requirements:
|
108
|
-
- -
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
hash: 3
|
142
|
+
segments:
|
143
|
+
- 0
|
144
|
+
version: "0"
|
111
145
|
type: :runtime
|
112
|
-
|
113
|
-
|
114
|
-
- !ruby/object:Gem::Dependency
|
146
|
+
version_requirements: *id009
|
147
|
+
- !ruby/object:Gem::Dependency
|
115
148
|
name: wkhtmltopdf-binary
|
116
|
-
|
149
|
+
prerelease: false
|
150
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
117
151
|
none: false
|
118
|
-
requirements:
|
119
|
-
- -
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
hash: 3
|
156
|
+
segments:
|
157
|
+
- 0
|
158
|
+
version: "0"
|
122
159
|
type: :runtime
|
123
|
-
|
124
|
-
|
125
|
-
- !ruby/object:Gem::Dependency
|
160
|
+
version_requirements: *id010
|
161
|
+
- !ruby/object:Gem::Dependency
|
126
162
|
name: pdfkit
|
127
|
-
|
163
|
+
prerelease: false
|
164
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
128
165
|
none: false
|
129
|
-
requirements:
|
130
|
-
- -
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
|
166
|
+
requirements:
|
167
|
+
- - ">="
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
hash: 3
|
170
|
+
segments:
|
171
|
+
- 0
|
172
|
+
version: "0"
|
133
173
|
type: :runtime
|
134
|
-
|
135
|
-
|
136
|
-
- !ruby/object:Gem::Dependency
|
174
|
+
version_requirements: *id011
|
175
|
+
- !ruby/object:Gem::Dependency
|
137
176
|
name: optiflag
|
138
|
-
|
177
|
+
prerelease: false
|
178
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
139
179
|
none: false
|
140
|
-
requirements:
|
141
|
-
- -
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
|
180
|
+
requirements:
|
181
|
+
- - ">="
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
hash: 3
|
184
|
+
segments:
|
185
|
+
- 0
|
186
|
+
version: "0"
|
144
187
|
type: :runtime
|
145
|
-
|
146
|
-
|
147
|
-
- !ruby/object:Gem::Dependency
|
188
|
+
version_requirements: *id012
|
189
|
+
- !ruby/object:Gem::Dependency
|
148
190
|
name: rspec
|
149
|
-
|
191
|
+
prerelease: false
|
192
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
150
193
|
none: false
|
151
|
-
requirements:
|
152
|
-
- -
|
153
|
-
- !ruby/object:Gem::Version
|
154
|
-
|
194
|
+
requirements:
|
195
|
+
- - ">="
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
hash: 3
|
198
|
+
segments:
|
199
|
+
- 0
|
200
|
+
version: "0"
|
155
201
|
type: :development
|
156
|
-
|
157
|
-
|
158
|
-
- !ruby/object:Gem::Dependency
|
202
|
+
version_requirements: *id013
|
203
|
+
- !ruby/object:Gem::Dependency
|
159
204
|
name: rr
|
160
|
-
|
205
|
+
prerelease: false
|
206
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
161
207
|
none: false
|
162
|
-
requirements:
|
163
|
-
- -
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
|
208
|
+
requirements:
|
209
|
+
- - ">="
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
hash: 3
|
212
|
+
segments:
|
213
|
+
- 0
|
214
|
+
version: "0"
|
166
215
|
type: :development
|
167
|
-
|
168
|
-
|
169
|
-
description: Utility for converting markup files to pdf files. Useful for reports
|
170
|
-
etc.
|
216
|
+
version_requirements: *id014
|
217
|
+
description: Utility for converting markup files to pdf files. Useful for reports etc.
|
171
218
|
email: fredrik.wallgren@gmail.com
|
172
|
-
executables:
|
219
|
+
executables:
|
173
220
|
- gimli
|
174
221
|
extensions: []
|
175
|
-
|
222
|
+
|
223
|
+
extra_rdoc_files:
|
176
224
|
- README.textile
|
177
225
|
- LICENSE
|
178
|
-
files:
|
226
|
+
files:
|
179
227
|
- bin/gimli
|
180
228
|
- lib/gimli/version.rb
|
181
229
|
- lib/gimli/path.rb
|
@@ -201,27 +249,36 @@ files:
|
|
201
249
|
has_rdoc: true
|
202
250
|
homepage: https://github.com/walle/gimli
|
203
251
|
licenses: []
|
252
|
+
|
204
253
|
post_install_message:
|
205
|
-
rdoc_options:
|
254
|
+
rdoc_options:
|
206
255
|
- --charset=UTF-8
|
207
|
-
require_paths:
|
256
|
+
require_paths:
|
208
257
|
- - lib
|
209
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
258
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
210
259
|
none: false
|
211
|
-
requirements:
|
212
|
-
- -
|
213
|
-
- !ruby/object:Gem::Version
|
214
|
-
|
215
|
-
|
260
|
+
requirements:
|
261
|
+
- - ">="
|
262
|
+
- !ruby/object:Gem::Version
|
263
|
+
hash: 3
|
264
|
+
segments:
|
265
|
+
- 0
|
266
|
+
version: "0"
|
267
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
268
|
none: false
|
217
|
-
requirements:
|
218
|
-
- -
|
219
|
-
- !ruby/object:Gem::Version
|
220
|
-
|
269
|
+
requirements:
|
270
|
+
- - ">="
|
271
|
+
- !ruby/object:Gem::Version
|
272
|
+
hash: 3
|
273
|
+
segments:
|
274
|
+
- 0
|
275
|
+
version: "0"
|
221
276
|
requirements: []
|
277
|
+
|
222
278
|
rubyforge_project: gimli
|
223
279
|
rubygems_version: 1.6.2
|
224
280
|
signing_key:
|
225
281
|
specification_version: 3
|
226
282
|
summary: Utility for converting markup files to pdf files.
|
227
283
|
test_files: []
|
284
|
+
|