waylon 0.2.2 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +7 -2
- data/exe/waylon +2 -1
- data/waylon.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb325165305f7aa6a4fd6aa4884d83271ab6e80b6723a23dd9ab8807639da527
|
4
|
+
data.tar.gz: 0f2a970931faa5b246fd914fd6a489b1155db761d4f6a65e84f4db4f9c8ac211
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b8a3c3f75ba31787d6d331128c8186968d9986add25396f956a946842793d541d4a3ca5e1c10f5c29fae102c4262c7086f131256cd2438e8b2229815e781e13
|
7
|
+
data.tar.gz: f00d14c4f34bab4ed359240664ad2eefcf6a5ba90563c519f4d86026e50c1b16d3ce7228ef18662aac5d8a744e702b0999574aa170c83fd70169f030a5c234f5
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
waylon (0.2.
|
4
|
+
waylon (0.2.4)
|
5
5
|
rake (~> 13.0)
|
6
6
|
waylon-core
|
7
7
|
|
@@ -150,7 +150,7 @@ GEM
|
|
150
150
|
thor (1.2.1)
|
151
151
|
tilt (2.0.11)
|
152
152
|
unicode-display_width (2.2.0)
|
153
|
-
waylon-core (0.2.
|
153
|
+
waylon-core (0.2.4)
|
154
154
|
addressable (~> 2.8)
|
155
155
|
faraday (~> 1.8)
|
156
156
|
i18n (~> 1.8)
|
data/README.md
CHANGED
@@ -58,13 +58,18 @@ First, find any line containing `TODO` and fill in actual values. Remove `spec.m
|
|
58
58
|
|
59
59
|
Toward the end of the file (but before the final `end`), add a line like this:
|
60
60
|
|
61
|
-
spec.add_dependency "waylon-core", "~> 0.
|
61
|
+
spec.add_dependency "waylon-core", "~> 0.2"
|
62
|
+
|
63
|
+
You'll also need to add a few development dependencies:
|
64
|
+
|
65
|
+
spec.add_development_dependency "pry"
|
66
|
+
spec.add_development_dependency "yard"
|
62
67
|
|
63
68
|
Now you should be able to start development. Take a look at `lib/waylon/skills/echo.rb`. Delete the `route()` at the beginning of the file and replace it with this:
|
64
69
|
|
65
70
|
route(/^say\s+(.+)/, :do_the_thing)
|
66
71
|
|
67
|
-
This simple route will look for text beginning with "say" and capture any words after it. This captured content will be available in `tokens[
|
72
|
+
This simple route will look for text beginning with "say" and capture any words after it. This captured content will be available in `tokens[0]` (or `tokens.last`).
|
68
73
|
|
69
74
|
Now, we can use this to respond. Edit the `do_the_thing` method so it looks like this:
|
70
75
|
|
data/exe/waylon
CHANGED
@@ -114,6 +114,7 @@ def skill_rakefile_template
|
|
114
114
|
task default: %i[spec rubocop yard]
|
115
115
|
|
116
116
|
task :demo do
|
117
|
+
require "pry"
|
117
118
|
require_relative "lib/waylon/skills/#{@project_name}"
|
118
119
|
Waylon::Logger.logger = ::Logger.new("/dev/null")
|
119
120
|
Waylon::Cache.storage = Moneta.new(:Cookie)
|
@@ -154,7 +155,7 @@ def skill_skeleton_template
|
|
154
155
|
#
|
155
156
|
# tokens
|
156
157
|
#
|
157
|
-
# It provides an Array
|
158
|
+
# It provides an Array of captures content
|
158
159
|
|
159
160
|
# To send a message back, use:
|
160
161
|
#
|
data/waylon.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: waylon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Gnagy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|