wisp-schema 1.7.0 → 1.9.0

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
  SHA256:
3
- metadata.gz: f951c7c703e9cb92701bd9be75a87a7c217090d06ce7a7faafe4ab6a2cd48b94
4
- data.tar.gz: 0c8d3b49d67ece5f2620ef278578c395133bff5480d45fda760e9ac2e51e97ca
3
+ metadata.gz: 84e87909280db1932f40c832eb9d38b651e98fa7efa506a485babd9f2a8c9b51
4
+ data.tar.gz: d1e42da131d90643e86a419cf50702f3158731c86ef8d9c8a7db0b44fb3d89a2
5
5
  SHA512:
6
- metadata.gz: 62ce800a08f8849c68129f2f5d43bfc8e134aad7c3a839a30ce6a0ca0e685608a8118e94b41041415349c633933b8451b3bc908f0f1469272c39d08eba5f6b62
7
- data.tar.gz: c85b5f0f7ec39f1dda8dc3bc0a4a41f30b91c9aad95e2e9118af464eec989dee40ff225aec3b357a6adf989a02ccc6ff6a148c27da846cbd4afa4c0e0ef3d2cf
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wisp
4
- VERSION = '1.7.0'
5
- STABLE_VERSION = '1.7.0'
6
- CANARY_VERSION = '2.0.0'
4
+ VERSION = "1.9.0"
5
+ STABLE_VERSION = "1.9.0"
6
+ CANARY_VERSION = "2.0.0"
7
7
  end
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(raw_version, action)
62
+ def action_schemer(_raw_version, action)
63
63
  raise NotSupportedAction unless ACTIONS.include?(action)
64
64
 
65
- if is_canary?(raw_version)
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,
@@ -14,6 +14,12 @@
14
14
  "title": "Object",
15
15
  "$ref": "ui_element_reference.json"
16
16
  },
17
+ "seconds": {
18
+ "title": "seconds",
19
+ "type": "integer",
20
+ "minimum": 60,
21
+ "maximum": 3600
22
+ },
17
23
  "visibility": {
18
24
  "title": "Is the element visible?",
19
25
  "type": "boolean",
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.7.0
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: []