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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1432f90d4285ab20f6b56078e242ce3fb836167
4
- data.tar.gz: 1cb0eca8a66215acee927604483803fe4e4747c7
3
+ metadata.gz: dedaf905c6fcc515e1775d0f21cf61948c8e8091
4
+ data.tar.gz: 45f053f8f4376e04059f733df6313c05403525ce
5
5
  SHA512:
6
- metadata.gz: 93a7a8585b5e1098f27f0472354c951d8fccfc97eb40c2e3f767244676ff2950776af7bbb6d1d0143ab5fd9e58bdcbca4cd1a53b5db049ad149ca44bdf2654ea
7
- data.tar.gz: e9c8e240a2fbaf179a3a278a6e1edf508e8f18b04524edf30fc6334be659cc76ff6a2761163eb8d687f935badde21ab6172ba95237f6c3e57998c38ee83bad39
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(--version -v) => :__print_version
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
@@ -1,4 +1,4 @@
1
1
  # Create PDFs from the CLI using Prawn
2
2
  module Rodolfo
3
- VERSION = '2.2.1'.freeze
3
+ VERSION = '2.3.1'.freeze
4
4
  end
@@ -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.2.1
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: 2016-11-28 00:00:00.000000000 Z
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.7'
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.7'
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.1.0
59
+ version: '2.2'
54
60
  - - ">="
55
61
  - !ruby/object:Gem::Version
56
- version: 2.1.0
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.1.0
69
+ version: '2.2'
64
70
  - - ">="
65
71
  - !ruby/object:Gem::Version
66
- version: 2.1.0
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.0'
270
+ version: '2.1'
265
271
  required_rubygems_version: !ruby/object:Gem::Requirement
266
272
  requirements:
267
273
  - - ">="