circuitdata 0.3.5 → 0.5.0

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.
@@ -0,0 +1,55 @@
1
+ {
2
+ // "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "required": ["open_trade_transfer_package"],
6
+ "properties": {
7
+ "open_trade_transfer_package": {
8
+ "type": "object",
9
+ "properties": {
10
+ "version": {
11
+ "type": "string",
12
+ "pattern": "^1.0$"
13
+ },
14
+ "information": {
15
+ "$ref": "https://raw.githubusercontent.com/elmatica/Open-Trade-Transfer-Package/master/v1/ottp_schema_definitions.json#/definitions/information"
16
+ // "$ref": "circuitdata/schema_files/v1/ottp_schema_definitions.json#/definitions/information"
17
+ },
18
+ "products": {
19
+ "type": "object",
20
+ "properties": {
21
+ "generic": {
22
+ "type": "object",
23
+ "properties": {},
24
+ "id": "generic",
25
+ "description": "this should validate any element under generic to be valid"
26
+ }
27
+ },
28
+ "patternProperties": {
29
+ "^(?!generic$).*": {
30
+ "type": "object",
31
+ "required": ["printed_circuits_fabrication_data"],
32
+ "properties": {
33
+ "printed_circuits_fabrication_data": {
34
+ "type": "object",
35
+ "required": ["version"],
36
+ "properties": {
37
+ "stackup": {
38
+ "type": "object",
39
+ "properties": {
40
+ "specified": {
41
+ "type": "object",
42
+ "properties": {}
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "definitions": {
3
+ "information": {
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "properties": {
7
+ "company": {
8
+ "type": "string",
9
+ "description": "The company who owns the information in the file"
10
+ },
11
+ "person": {
12
+ "type": "string",
13
+ "description": "The person responsible for the information in the file"
14
+ },
15
+ "editor_software": {
16
+ "type": "string",
17
+ "description": "The software that has generated the file"
18
+ },
19
+ "created": {
20
+ "type": "string",
21
+ "format": "date-time",
22
+ "description": "The timestamp of the creation of the file, in RFC 3339 date-time format"
23
+ },
24
+ "updated": {
25
+ "type": "string",
26
+ "format": "date-time",
27
+ "description": "The timestamp of the last update of the file, in RFC 3339 date-time format"
28
+ },
29
+ "project": {
30
+ "type": "string",
31
+ "description": "The name of the project included in the file"
32
+ },
33
+ "version": {
34
+ "type": "number",
35
+ "description": "The name of the project included in the file"
36
+ },
37
+ "description": {
38
+ "type": "string"
39
+ }
40
+ }
41
+ },
42
+ "product": {
43
+ "type": "object",
44
+ "properties": {
45
+ }
46
+ },
47
+ "profile": {
48
+ "type": "object",
49
+ "additionalProperties": false,
50
+ "properties": {
51
+ "defaults": {
52
+ "type": "object",
53
+ "properties": {
54
+ }
55
+ },
56
+ "enforced": {
57
+ "type": "object",
58
+ "properties": {
59
+ }
60
+ },
61
+ "restricted": {
62
+ "type": "object",
63
+ "properties": {
64
+ }
65
+ }
66
+ }
67
+ },
68
+ "capability": {
69
+ "type": "object",
70
+ "properties": {
71
+ "summary": {
72
+ "type": "object",
73
+ "properties": {
74
+ }
75
+ },
76
+ "materials": {
77
+ "type": "object",
78
+ "properties": {
79
+ }
80
+ }
81
+ }
82
+ },
83
+ "custom": {
84
+ "type": "object",
85
+ "properties": {
86
+ "colors": {
87
+ "type": "object",
88
+ "properties": {
89
+ },
90
+ "aliases": "",
91
+ "name": "any_name",
92
+ "description": "Colors can be defined by hex, rgb, cmyk or name. Name of the color present here can be references in the other elements"
93
+ },
94
+ "materials": {
95
+ "type": "object",
96
+ "properties": {
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+ }
@@ -1,3 +1,3 @@
1
1
  module Circuitdata
2
- VERSION = '0.3.5'
2
+ VERSION = '0.5.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: circuitdata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Lydersen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-06 00:00:00.000000000 Z
11
+ date: 2017-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-schema
@@ -34,9 +34,16 @@ extra_rdoc_files: []
34
34
  files:
35
35
  - MIT-LICENSE
36
36
  - README.md
37
+ - Rakefile
37
38
  - lib/circuitdata.rb
39
+ - lib/circuitdata/bk_comparer.rb
40
+ - lib/circuitdata/compatibility_checker.rb
41
+ - lib/circuitdata/file_comparer.rb
42
+ - lib/circuitdata/schema_files/v1/ottp_circuitdata_schema.json
43
+ - lib/circuitdata/schema_files/v1/ottp_circuitdata_schema_definitions.json
44
+ - lib/circuitdata/schema_files/v1/ottp_circuitdata_skeleton_schema.json
45
+ - lib/circuitdata/schema_files/v1/ottp_schema_definitions.json
38
46
  - lib/circuitdata/version.rb
39
- - lib/tasks/circuitdata_tasks.rake
40
47
  homepage: http://circuitdata.org
41
48
  licenses:
42
49
  - MIT
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :circuitdata do
3
- # # Task goes here
4
- # end