happypdf_json_schema 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -2,17 +2,8 @@
2
2
  require 'bundler/gem_tasks'
3
3
  require 'rspec'
4
4
  require 'rspec/core/rake_task'
5
- require 'rdoc/task'
6
5
 
7
6
  desc 'Run specs'
8
7
  RSpec::Core::RakeTask.new
9
8
  task :default => :spec
10
9
 
11
- desc 'Generate documentation.'
12
- Rake::RDocTask.new(:rdoc) do |rdoc|
13
- rdoc.rdoc_dir = 'rdoc'
14
- rdoc.title = 'happyPDF JSON Schema'
15
- rdoc.options << '--line-numbers' << '--inline-source'
16
- rdoc.rdoc_files.include('README')
17
- rdoc.rdoc_files.include('lib/**/*.rb')
18
- end
@@ -1,5 +1,5 @@
1
1
  module HappyPdf
2
2
  class Schema
3
- VERSION='0.1.3'
3
+ VERSION='0.1.4'
4
4
  end
5
5
  end
@@ -0,0 +1,27 @@
1
+ {
2
+ "type": "object",
3
+ "title": "Font",
4
+ "name": "font",
5
+ "description": "A font, needed to render the block-text. All fonts used in blocks must be present on the server.",
6
+ "properties": {
7
+ "id": {
8
+ "description": "The object identifier.",
9
+ "identity": true,
10
+ "readonly": true,
11
+ "type": "integer"
12
+ },
13
+ "filename": {
14
+ "description": "Font file name. Is created from the font nice name.",
15
+ "readonly": true,
16
+ "type": "integer"
17
+ },
18
+ "account_id": {
19
+ "description": "Account this objects belongs to.",
20
+ "type": "integer"
21
+ },
22
+ "user_id": {
23
+ "description": "User who created the object",
24
+ "type": "integer"
25
+ }
26
+ }
27
+ }
@@ -29,7 +29,7 @@
29
29
  "properties": {"$ref":"./block.json#properties"}
30
30
  },
31
31
  "public_id": {
32
- "description": "Unique ID to be used in public URL e.g to get the screenshot image of a page.",
32
+ "description": "Unique ID to be used in public URL e.g to get the screenshot image of a page.",
33
33
  "readonly": true,
34
34
  "type": "string"
35
35
  }
data/schema/v1.0/pdf.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "type": "integer"
21
21
  },
22
22
  "public_id": {
23
- "description": "Unique ID to be used in public URL e.g to get the screenshot image of a page.",
23
+ "description": "Unique ID to be used in public URL e.g for public private download links.",
24
24
  "readonly": true,
25
25
  "type": "string"
26
26
  },
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: happypdf_json_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -96,6 +96,7 @@ files:
96
96
  - lib/happypdf/version.rb
97
97
  - lib/happypdf_json_schema.rb
98
98
  - schema/v1.0/block.json
99
+ - schema/v1.0/font.json
99
100
  - schema/v1.0/image_block.json
100
101
  - schema/v1.0/page.json
101
102
  - schema/v1.0/pdf.json
@@ -118,9 +119,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
119
  - - ! '>='
119
120
  - !ruby/object:Gem::Version
120
121
  version: '0'
121
- segments:
122
- - 0
123
- hash: -1543727035472563446
124
122
  required_rubygems_version: !ruby/object:Gem::Requirement
125
123
  none: false
126
124
  requirements:
@@ -129,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
127
  version: '0'
130
128
  requirements: []
131
129
  rubyforge_project:
132
- rubygems_version: 1.8.25
130
+ rubygems_version: 1.8.24
133
131
  signing_key:
134
132
  specification_version: 3
135
133
  summary: happyPDF API - JSON Schema