waylon 0.2.2 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/README.md +12 -2
  4. data/exe/waylon +3 -2
  5. data/waylon.gemspec +1 -1
  6. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6e508ed000d1dce991935f7e6ada801dd5679946f5944a7a0b031cbecdaef38
4
- data.tar.gz: 2102525187599fe90e4747e807aff22c1807f7d9634b363b3b9b9ab845a14a41
3
+ metadata.gz: ef04fed54f31681d4ac7c33c37b8b41b80415cc8d5781d2c6e8cac36a646c29d
4
+ data.tar.gz: d22ec16815e987e6a1d592f85ec2d84a4109b8bafd9a877a51b416836ef36aff
5
5
  SHA512:
6
- metadata.gz: 7fff683217bf8dfa977798501d34f6768e5916baab883d6ffe7d3455b37d37e00e843081f00d6c02dfbfbf3140d443a67c4e595948754707c86db102921c3355
7
- data.tar.gz: 70a7815bf45e69d29cee61b8593e150ac782a3daa7fd81126253fd67b93845cd9552b0ade32e46d7c5bc86292dc58d9cb02648730e840550311c849c2efda7be
6
+ metadata.gz: b9fbb6545f476447a9685f12f16f232855ded4611b06789396d90ec2cbda4d98748d03e10f975e4a17a4b6aa11f8962ddd1a99cc91b621b2cc134242ae5b4a29
7
+ data.tar.gz: 527269c90a2ce157cc22e1c8b2a822ece30646f6258861c60a0f38a4a074fe6a7b75f7fc4d64ddd81477b3c0b28ab1fafec3b181109c3130f954d9d1e397fe45
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.6)
5
5
  rake (~> 13.0)
6
6
  waylon-core
7
7
 
@@ -75,7 +75,7 @@ GEM
75
75
  rake (13.0.6)
76
76
  rbnacl (7.1.1)
77
77
  ffi
78
- redis (5.0.1)
78
+ redis (5.0.2)
79
79
  redis-client (~> 0.7)
80
80
  redis-client (0.7.1)
81
81
  connection_pool
@@ -103,7 +103,7 @@ GEM
103
103
  diff-lcs (>= 1.2.0, < 2.0)
104
104
  rspec-support (~> 3.11.0)
105
105
  rspec-support (3.11.0)
106
- rubocop (1.35.1)
106
+ rubocop (1.36.0)
107
107
  json (~> 2.3)
108
108
  parallel (~> 1.10)
109
109
  parser (>= 3.1.2.1)
@@ -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.6)
154
154
  addressable (~> 2.8)
155
155
  faraday (~> 1.8)
156
156
  i18n (~> 1.8)
data/README.md CHANGED
@@ -58,13 +58,23 @@ 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 "rubocop"
67
+ spec.add_development_dependency "yard"
68
+
69
+ Now install all the dependencies:
70
+
71
+ bundle install
62
72
 
63
73
  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
74
 
65
75
  route(/^say\s+(.+)/, :do_the_thing)
66
76
 
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`).
77
+ 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
78
 
69
79
  Now, we can use this to respond. Edit the `do_the_thing` method so it looks like this:
70
80
 
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
  #
@@ -227,7 +228,7 @@ def bot_template_mapping
227
228
  {
228
229
  config_ru_template: "config.ru",
229
230
  dockerfile_template: "Dockerfile",
230
- gemfile_template: "Gemfile",
231
+ bot_gemfile_template: "Gemfile",
231
232
  plugins_rb_template: "plugins.rb",
232
233
  bot_rakefile_template: "Rakefile",
233
234
  rubocop_template: ".rubocop.yml",
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.6"
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.6
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-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake