wisp-schema 1.7.0 → 1.9.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.
- checksums.yaml +4 -4
- data/canary-nouns.json +15 -0
- data/canary-wisp.json +21 -0
- data/lib/version.rb +3 -3
- data/lib/wisp-schema.rb +2 -6
- data/nouns.json +15 -0
- data/stable/actions/observe.json +6 -0
- data/wisp.json +21 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84e87909280db1932f40c832eb9d38b651e98fa7efa506a485babd9f2a8c9b51
|
4
|
+
data.tar.gz: d1e42da131d90643e86a419cf50702f3158731c86ef8d9c8a7db0b44fb3d89a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bb54b39d38fc4be9049e2dfd6575c43c657ec19d7dc933ce0e8df84cf4c8f46ebab2db3e0d614c7280886a1f30981668670453885c54fc3f10bab5b5d60dbea
|
7
|
+
data.tar.gz: 7069691966746ab8a82c929df89bbacc893fde848dd396be94c8407f21d3897959fdc5f27b1c038c7a3a5c37156c0e098faeb1da63f9b2e960361be21b0850a6
|
data/canary-nouns.json
CHANGED
@@ -33,6 +33,21 @@
|
|
33
33
|
"w": {"type": "integer"},
|
34
34
|
"h": {"type": "integer"}
|
35
35
|
}
|
36
|
+
},
|
37
|
+
"masks": {
|
38
|
+
"type": "array",
|
39
|
+
"title": "Mask collection",
|
40
|
+
"description": "A collection of mask objects that tell the matching algorightms which parts of an image to ignore when attempting a match",
|
41
|
+
"items": {
|
42
|
+
"type": "object",
|
43
|
+
"title": "Mask",
|
44
|
+
"properties": {
|
45
|
+
"x": {"type": "integer"},
|
46
|
+
"y": {"type": "integer"},
|
47
|
+
"w": {"type": "integer"},
|
48
|
+
"h": {"type": "integer"}
|
49
|
+
}
|
50
|
+
}
|
36
51
|
}
|
37
52
|
},
|
38
53
|
"additionalProperties": false,
|
data/canary-wisp.json
CHANGED
@@ -40,6 +40,21 @@
|
|
40
40
|
"w": {"type": "integer"},
|
41
41
|
"h": {"type": "integer"}
|
42
42
|
}
|
43
|
+
},
|
44
|
+
"masks": {
|
45
|
+
"type": "array",
|
46
|
+
"title": "Mask collection",
|
47
|
+
"description": "A collection of mask objects that tell the matching algorightms which parts of an image to ignore when attempting a match",
|
48
|
+
"items": {
|
49
|
+
"type": "object",
|
50
|
+
"title": "Mask",
|
51
|
+
"properties": {
|
52
|
+
"x": {"type": "integer"},
|
53
|
+
"y": {"type": "integer"},
|
54
|
+
"w": {"type": "integer"},
|
55
|
+
"h": {"type": "integer"}
|
56
|
+
}
|
57
|
+
}
|
43
58
|
}
|
44
59
|
},
|
45
60
|
"additionalProperties": false,
|
@@ -436,6 +451,12 @@
|
|
436
451
|
"title": "Object",
|
437
452
|
"$ref": "#/definitions/noun"
|
438
453
|
},
|
454
|
+
"seconds": {
|
455
|
+
"title": "seconds",
|
456
|
+
"type": "integer",
|
457
|
+
"minimum": 60,
|
458
|
+
"maximum": 3600
|
459
|
+
},
|
439
460
|
"visibility": {
|
440
461
|
"title": "Is the element visible?",
|
441
462
|
"type": "boolean",
|
data/lib/version.rb
CHANGED
data/lib/wisp-schema.rb
CHANGED
@@ -59,14 +59,10 @@ module Wisp
|
|
59
59
|
end
|
60
60
|
module_function :nouns_schemer
|
61
61
|
|
62
|
-
def action_schemer(
|
62
|
+
def action_schemer(_raw_version, action)
|
63
63
|
raise NotSupportedAction unless ACTIONS.include?(action)
|
64
64
|
|
65
|
-
|
66
|
-
JSONSchemer.schema(Pathname.new(File.expand_path("../canary/actions/#{action}.json", __dir__)))
|
67
|
-
else
|
68
|
-
JSONSchemer.schema(Pathname.new(File.expand_path("../stable/actions/#{action}.json", __dir__)))
|
69
|
-
end
|
65
|
+
JSONSchemer.schema(Pathname.new(File.expand_path("../stable/actions/#{action}.json", __dir__)))
|
70
66
|
end
|
71
67
|
module_function :action_schemer
|
72
68
|
end
|
data/nouns.json
CHANGED
@@ -33,6 +33,21 @@
|
|
33
33
|
"w": {"type": "integer"},
|
34
34
|
"h": {"type": "integer"}
|
35
35
|
}
|
36
|
+
},
|
37
|
+
"masks": {
|
38
|
+
"type": "array",
|
39
|
+
"title": "Mask collection",
|
40
|
+
"description": "A collection of mask objects that tell the matching algorightms which parts of an image to ignore when attempting a match",
|
41
|
+
"items": {
|
42
|
+
"type": "object",
|
43
|
+
"title": "Mask",
|
44
|
+
"properties": {
|
45
|
+
"x": {"type": "integer"},
|
46
|
+
"y": {"type": "integer"},
|
47
|
+
"w": {"type": "integer"},
|
48
|
+
"h": {"type": "integer"}
|
49
|
+
}
|
50
|
+
}
|
36
51
|
}
|
37
52
|
},
|
38
53
|
"additionalProperties": false,
|
data/stable/actions/observe.json
CHANGED
data/wisp.json
CHANGED
@@ -40,6 +40,21 @@
|
|
40
40
|
"w": {"type": "integer"},
|
41
41
|
"h": {"type": "integer"}
|
42
42
|
}
|
43
|
+
},
|
44
|
+
"masks": {
|
45
|
+
"type": "array",
|
46
|
+
"title": "Mask collection",
|
47
|
+
"description": "A collection of mask objects that tell the matching algorightms which parts of an image to ignore when attempting a match",
|
48
|
+
"items": {
|
49
|
+
"type": "object",
|
50
|
+
"title": "Mask",
|
51
|
+
"properties": {
|
52
|
+
"x": {"type": "integer"},
|
53
|
+
"y": {"type": "integer"},
|
54
|
+
"w": {"type": "integer"},
|
55
|
+
"h": {"type": "integer"}
|
56
|
+
}
|
57
|
+
}
|
43
58
|
}
|
44
59
|
},
|
45
60
|
"additionalProperties": false,
|
@@ -436,6 +451,12 @@
|
|
436
451
|
"title": "Object",
|
437
452
|
"$ref": "#/definitions/noun"
|
438
453
|
},
|
454
|
+
"seconds": {
|
455
|
+
"title": "seconds",
|
456
|
+
"type": "integer",
|
457
|
+
"minimum": 60,
|
458
|
+
"maximum": 3600
|
459
|
+
},
|
439
460
|
"visibility": {
|
440
461
|
"title": "Is the element visible?",
|
441
462
|
"type": "boolean",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wisp-schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Grodowski
|
@@ -40,6 +40,20 @@ dependencies:
|
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '1.6'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: rspec
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '3.12'
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - "~>"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '3.12'
|
43
57
|
description: This gem contains Wisp's JSON schema definition
|
44
58
|
email:
|
45
59
|
executables: []
|