wisp-schema 1.8.1 → 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: '089748bd1acbccbba79379be9ea5e28a9291ebbf1950f78c9b26e0b6e7ca3bb5'
4
- data.tar.gz: 59860657226f8c45c0100baaf02799dc865213e1ed36aa38325347574d7834a3
3
+ metadata.gz: 84e87909280db1932f40c832eb9d38b651e98fa7efa506a485babd9f2a8c9b51
4
+ data.tar.gz: d1e42da131d90643e86a419cf50702f3158731c86ef8d9c8a7db0b44fb3d89a2
5
5
  SHA512:
6
- metadata.gz: 72c5d7d11210b2181b344db7ff7ea1d676a0662e35823cbed781d973666e6a3f5a36ddca03aa28087174ba848f372882551d54ffaa5ebe8bf643af085e058d4b
7
- data.tar.gz: cdc11f6f2b42e73a512b79cff3f684dfcc714d87474400a14c8da654f03e738500511f9e110eef49006f95fead4e8db5bb5231b6898cabbb4104dc1fb439eeb4
6
+ metadata.gz: 1bb54b39d38fc4be9049e2dfd6575c43c657ec19d7dc933ce0e8df84cf4c8f46ebab2db3e0d614c7280886a1f30981668670453885c54fc3f10bab5b5d60dbea
7
+ data.tar.gz: 7069691966746ab8a82c929df89bbacc893fde848dd396be94c8407f21d3897959fdc5f27b1c038c7a3a5c37156c0e098faeb1da63f9b2e960361be21b0850a6
data/canary-wisp.json CHANGED
@@ -100,7 +100,7 @@
100
100
  "ai_confirmation": {
101
101
  "type": "object",
102
102
  "action_type": "assertion",
103
- "title": "AI Assertion",
103
+ "title": "AI Confirmation",
104
104
  "description": "A Yes (pass) or No (fail) question answered by AI",
105
105
  "properties": {
106
106
  "action": {
@@ -451,6 +451,12 @@
451
451
  "title": "Object",
452
452
  "$ref": "#/definitions/noun"
453
453
  },
454
+ "seconds": {
455
+ "title": "seconds",
456
+ "type": "integer",
457
+ "minimum": 60,
458
+ "maximum": 3600
459
+ },
454
460
  "visibility": {
455
461
  "title": "Is the element visible?",
456
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.8.1"
5
- STABLE_VERSION = "1.8.1"
4
+ VERSION = "1.9.0"
5
+ STABLE_VERSION = "1.9.0"
6
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
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "type": "object",
4
4
  "action_type": "assertion",
5
- "title": "AI Assertion",
5
+ "title": "AI Confirmation",
6
6
  "description": "A Yes (pass) or No (fail) question answered by AI",
7
7
  "properties": {
8
8
  "action": {
@@ -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
@@ -100,7 +100,7 @@
100
100
  "ai_confirmation": {
101
101
  "type": "object",
102
102
  "action_type": "assertion",
103
- "title": "AI Assertion",
103
+ "title": "AI Confirmation",
104
104
  "description": "A Yes (pass) or No (fail) question answered by AI",
105
105
  "properties": {
106
106
  "action": {
@@ -451,6 +451,12 @@
451
451
  "title": "Object",
452
452
  "$ref": "#/definitions/noun"
453
453
  },
454
+ "seconds": {
455
+ "title": "seconds",
456
+ "type": "integer",
457
+ "minimum": 60,
458
+ "maximum": 3600
459
+ },
454
460
  "visibility": {
455
461
  "title": "Is the element visible?",
456
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.8.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: []