waylon 0.2.2 → 0.2.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6e508ed000d1dce991935f7e6ada801dd5679946f5944a7a0b031cbecdaef38
4
- data.tar.gz: 2102525187599fe90e4747e807aff22c1807f7d9634b363b3b9b9ab845a14a41
3
+ metadata.gz: cb325165305f7aa6a4fd6aa4884d83271ab6e80b6723a23dd9ab8807639da527
4
+ data.tar.gz: 0f2a970931faa5b246fd914fd6a489b1155db761d4f6a65e84f4db4f9c8ac211
5
5
  SHA512:
6
- metadata.gz: 7fff683217bf8dfa977798501d34f6768e5916baab883d6ffe7d3455b37d37e00e843081f00d6c02dfbfbf3140d443a67c4e595948754707c86db102921c3355
7
- data.tar.gz: 70a7815bf45e69d29cee61b8593e150ac782a3daa7fd81126253fd67b93845cd9552b0ade32e46d7c5bc86292dc58d9cb02648730e840550311c849c2efda7be
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.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.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.1"
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[1]` (or `tokens.last`).
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, with `tokens[0]` being the entire message
158
+ # It provides an Array of captures content
158
159
 
159
160
  # To send a message back, use:
160
161
  #
data/waylon.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Waylon
4
4
  # Update this to match the desired Waylon::Core::VERSION to release
5
- VERSION = "0.2.2"
5
+ VERSION = "0.2.4"
6
6
  end
7
7
 
8
8
  Gem::Specification.new do |spec|
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.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-30 00:00:00.000000000 Z
11
+ date: 2022-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake