wisp-schema 0.9.0 → 0.10.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 +16 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 607a9fa18e5b3fc3da6e69c9d9039b39a9168ce8e7c96425684871fee5c25bed
4
- data.tar.gz: 994ef80c786269ed218794135007fbfdfe244dc8048a412a54f5648906ecff5d
3
+ metadata.gz: db42ffa29b5aec1908a0d34867eca93925f5693705f51eabe181b9b5db1f89de
4
+ data.tar.gz: 849d7f6e79768fc5352a4565286049a2adeae282ef813fa05ca4a0f7ee4a3fad
5
5
  SHA512:
6
- metadata.gz: d744f70e4796c6616172966ffe25f700087c4cdc1acd3fc2f63e141eba191d819e4f3bbb7f1986da00d5f2cc757bfb276de1ba09b67fb17b2f35ccb6028645bc
7
- data.tar.gz: a86e207252bf7817568f3bf520072e364db455c6a84ab3925c25d39a78870f7a266fc999f1d603a030ef24bb06ecc0cc8cc0b3b990273da9b3d933b5ebc14812
6
+ metadata.gz: c01d8231ace1834dcde5d4edd32c4f9d413f5944e2277ed63463c14a9ffdee5298ab6f067fdfdda0f5c08761cb289475cdf21c2525b2abfff122f6d34ec0d7db
7
+ data.tar.gz: d94304f1851a4397c473c0c3f4e4521aecb906001a2cbc5e53549117f94927eebfd90199e71a41f00ee3b1ddd085aacba89e73adcc73fd32b2db11723d106ece
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.9.0'
4
+ VERSION = '0.10.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
@@ -195,6 +195,7 @@
195
195
  {"$ref": "#/definitions/drag_and_drop"},
196
196
  {"$ref": "#/definitions/click_and_hold"},
197
197
  {"$ref": "#/definitions/plain_language"},
198
+ {"$ref": "#/definitions/custom_action"},
198
199
  {"$ref": "#/definitions/see"},
199
200
  {"$ref": "#/definitions/disappear"},
200
201
  {"$ref": "#/definitions/loaded"},
@@ -430,6 +431,21 @@
430
431
  },
431
432
  "required": ["action", "target", "seconds"]
432
433
  },
434
+ "custom_action": {
435
+ "type": "object",
436
+ "title": "Custom Action",
437
+ "description": "Reusable custom action",
438
+ "properties": {
439
+ "action": {
440
+ "enum": ["custom_action"]
441
+ },
442
+ "test_id": {
443
+ "title": "Test ID",
444
+ "type": "integer"
445
+ }
446
+ },
447
+ "required": ["action", "test_id"]
448
+ },
433
449
  "plain_language": {
434
450
  "type": "object",
435
451
  "title": "Plain Language",
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.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Grodowski
@@ -40,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  requirements: []
43
- rubygems_version: 3.0.1
43
+ rubygems_version: 3.0.3
44
44
  signing_key:
45
45
  specification_version: 4
46
46
  summary: Wisp's schema