wisp-schema 1.8.1 → 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-wisp.json +7 -1
- data/lib/version.rb +2 -2
- data/lib/wisp-schema.rb +2 -6
- data/stable/actions/ai_confirmation.json +1 -1
- data/stable/actions/observe.json +6 -0
- data/wisp.json +7 -1
- 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-wisp.json
CHANGED
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"ai_confirmation": {
|
|
101
101
|
"type": "object",
|
|
102
102
|
"action_type": "assertion",
|
|
103
|
-
"title": "AI
|
|
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
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/stable/actions/observe.json
CHANGED
data/wisp.json
CHANGED
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"ai_confirmation": {
|
|
101
101
|
"type": "object",
|
|
102
102
|
"action_type": "assertion",
|
|
103
|
-
"title": "AI
|
|
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.
|
|
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: []
|