rodolfo 2.2.1 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rodolfo/cli.rb +2 -2
- data/lib/rodolfo/meta.rb +1 -1
- data/lib/rodolfo/renderer.rb +2 -9
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dedaf905c6fcc515e1775d0f21cf61948c8e8091
|
4
|
+
data.tar.gz: 45f053f8f4376e04059f733df6313c05403525ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65255eb5effcd5684a308be692be87a2aba26203537c30bcb8700beec26e61bcfced9fdf98942a971948b7a702793195b9864be566a7792a13ead3da2e8e00fe
|
7
|
+
data.tar.gz: 83dfb931be352e8025ae9cc0e7a2a457371b866d2a748ff8d07a83b029ef8c48e130bf34c79a94820abac61362b850921d231e9ef8061eb51dc0c7e000cde482
|
data/lib/rodolfo/cli.rb
CHANGED
@@ -47,7 +47,7 @@ module Rodolfo
|
|
47
47
|
true
|
48
48
|
end
|
49
49
|
|
50
|
-
map %w
|
50
|
+
map %w[--version -v] => :__print_version
|
51
51
|
|
52
52
|
desc '--version, -v', 'print the version'
|
53
53
|
def __print_version
|
@@ -76,7 +76,7 @@ module Rodolfo
|
|
76
76
|
file_name ? File.write(file_name, content) : STDOUT.write(content)
|
77
77
|
exit 0
|
78
78
|
rescue RenderError, SchemaValidationError => error
|
79
|
-
STDOUT.write error.errors
|
79
|
+
STDOUT.write error.errors.to_json
|
80
80
|
exit 2
|
81
81
|
end
|
82
82
|
|
data/lib/rodolfo/meta.rb
CHANGED
data/lib/rodolfo/renderer.rb
CHANGED
@@ -37,17 +37,10 @@ module Rodolfo
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def pdf_meta
|
40
|
-
schema_meta = @schema.to_h
|
41
|
-
|
42
40
|
{ CreationDate: Time.now.iso8601,
|
43
|
-
JsonSchema:
|
44
|
-
description: schema_meta['description'],
|
45
|
-
id: schema_meta['id'],
|
46
|
-
schema: schema_meta['$schema']
|
47
|
-
},
|
41
|
+
JsonSchema: @schema.to_h,
|
48
42
|
Payload: validated_data,
|
49
|
-
Renderer: "Rodolfo v#{VERSION}"
|
50
|
-
}
|
43
|
+
Renderer: "Rodolfo v#{VERSION}" }
|
51
44
|
end
|
52
45
|
|
53
46
|
# Render the template
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rodolfo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Initios
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-schema
|
@@ -16,14 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.8'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.8.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
29
|
+
version: '2.8'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.8.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: pdf-reader
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,20 +56,20 @@ dependencies:
|
|
50
56
|
requirements:
|
51
57
|
- - "~>"
|
52
58
|
- !ruby/object:Gem::Version
|
53
|
-
version: 2.
|
59
|
+
version: '2.2'
|
54
60
|
- - ">="
|
55
61
|
- !ruby/object:Gem::Version
|
56
|
-
version: 2.
|
62
|
+
version: 2.2.0
|
57
63
|
type: :runtime
|
58
64
|
prerelease: false
|
59
65
|
version_requirements: !ruby/object:Gem::Requirement
|
60
66
|
requirements:
|
61
67
|
- - "~>"
|
62
68
|
- !ruby/object:Gem::Version
|
63
|
-
version: 2.
|
69
|
+
version: '2.2'
|
64
70
|
- - ">="
|
65
71
|
- !ruby/object:Gem::Version
|
66
|
-
version: 2.
|
72
|
+
version: 2.2.0
|
67
73
|
- !ruby/object:Gem::Dependency
|
68
74
|
name: prawn-table
|
69
75
|
requirement: !ruby/object:Gem::Requirement
|
@@ -261,7 +267,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
261
267
|
requirements:
|
262
268
|
- - ">="
|
263
269
|
- !ruby/object:Gem::Version
|
264
|
-
version: '2.
|
270
|
+
version: '2.1'
|
265
271
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
266
272
|
requirements:
|
267
273
|
- - ">="
|