wisp-schema 0.12.2 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/wisp-schema.rb +1 -1
  3. data/wisp.json +31 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c84ad3738ae583a6982f39d4991e4310ea8fa5119c6c3660d95efe7fbca35971
4
- data.tar.gz: 1f5096d6efcd8018b8e4b33935baf934066b528ee69b1e4a71632973db3b3f5c
3
+ metadata.gz: 5c7679c3c81d096cb542759b2f3992a17093c34d3705c50a60e4fe989d09d05a
4
+ data.tar.gz: 4a42431266818528457973e6686509e3cbdcca6e1bad76f1a1bec16fcc9a1586
5
5
  SHA512:
6
- metadata.gz: 6163946a1c195279279dd312b25588c18e2dc57c96131a1ff892e7487289e0fd82c67f4a419d46f2c1d7e9e510407a6f6213c493f0ec6458bef230f30116168d
7
- data.tar.gz: 0ef028fe3605521a32129038dc00003f43260d22c7f10d7034b55c4db42668b2b9655968c3fd26066789251d18d2a3fd439001ad1feeb5f9b09b6eb2d4960b24
6
+ metadata.gz: '0953033322befcace40117fcd6477a4f5dadec5fd8b30b2d85ab50957ed8d9f87da02b359d30cb3a5095e3224dda4102450bf98f053f6831479a39788c697677'
7
+ data.tar.gz: facefd947d4612375952e731e0bfbec7765947e47320c19efb22c9b778c879353418558554a2d7aa5852573a28e0f0431ed5cf138a1ec20bde72b3f95219ed69
data/lib/wisp-schema.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wisp
4
- VERSION = '0.12.2'
4
+ VERSION = '0.13.0'
5
5
 
6
6
  SCHEMA_PATH = File.expand_path('../wisp.json', __dir__)
7
7
  NOUNS_PATH = File.expand_path('../nouns.json', __dir__)
data/wisp.json CHANGED
@@ -179,6 +179,7 @@
179
179
  "title": "Wisp Verb",
180
180
  "oneOf": [
181
181
  {"$ref": "#/definitions/click"},
182
+ {"$ref": "#/definitions/double_click"},
182
183
  {"$ref": "#/definitions/fill"},
183
184
  {"$ref": "#/definitions/type"},
184
185
  {"$ref": "#/definitions/send_key"},
@@ -192,6 +193,7 @@
192
193
  {"$ref": "#/definitions/navigate_incognito_tab"},
193
194
  {"$ref": "#/definitions/close_tab"},
194
195
  {"$ref": "#/definitions/scroll"},
196
+ {"$ref": "#/definitions/sleep"},
195
197
  {"$ref": "#/definitions/drag_and_drop"},
196
198
  {"$ref": "#/definitions/click_and_hold"},
197
199
  {"$ref": "#/definitions/plain_language"},
@@ -213,6 +215,22 @@
213
215
  "action": {
214
216
  "enum": ["click"]
215
217
  },
218
+ "target": {
219
+ "title": "Target",
220
+ "$ref": "#/definitions/noun"
221
+ },
222
+ "button": {"title": "button", "type": "string", "enum": ["left", "middle", "right"]}
223
+ },
224
+ "required": ["action", "target"]
225
+ },
226
+ "double_click": {
227
+ "type": "object",
228
+ "title": "Double Click",
229
+ "description": "Double-clicks on the UI element",
230
+ "properties": {
231
+ "action": {
232
+ "enum": ["double_click"]
233
+ },
216
234
  "target": {
217
235
  "title": "Target",
218
236
  "$ref": "#/definitions/noun"
@@ -399,6 +417,18 @@
399
417
  },
400
418
  "required": ["action", "direction", "target"]
401
419
  },
420
+ "sleep": {
421
+ "type": "object",
422
+ "title": "Sleep",
423
+ "Description": "Waits for a number of seconds",
424
+ "properties": {
425
+ "action": {
426
+ "enum": ["sleep"]
427
+ },
428
+ "seconds": {"title": "seconds", "type": "integer"}
429
+ },
430
+ "required": ["action", "seconds"]
431
+ },
402
432
  "drag_and_drop": {
403
433
  "type": "object",
404
434
  "title": "Drag and drop",
@@ -421,7 +451,7 @@
421
451
  "click_and_hold": {
422
452
  "type": "object",
423
453
  "title": "Click and Hold",
424
- "description": "Clicks and holds mouse button over object",
454
+ "description": "Clicks and holds the left mouse button over object for a number of seconds",
425
455
  "properties": {
426
456
  "action": {
427
457
  "enum": ["click_and_hold"]
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: 0.12.2
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Grodowski