ruboty 1.4.1 → 1.5.0

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: 3ec906544d0fccf979b8cfeb43c0141b339a88d0ce8073be1b2511aa7b0b29a6
4
- data.tar.gz: 656d0f61d9eb67e9874cd0d8caf0caf53b4b7a50b0f5345792dba8b63dc684d0
3
+ metadata.gz: 7ee2862090c75bfe8bd8ead796f9e20afab74869494240d6f5b9ebc44b69d478
4
+ data.tar.gz: 4db93449967f4c6731009252546a49a4207f7a0a3e454d633ec1aa02072dd84d
5
5
  SHA512:
6
- metadata.gz: 2090b2571ae8f86c384fb2ff8944b9e9be798d61832d2192b10d76ad76d41b848394b81510c42ce95a13f6feddbf791ad6ded5b3a63a8aad15ae022fd8b0f989
7
- data.tar.gz: 2275719c2909aa70b4c8ae01386a61a0750d29570515834de19533e3c3a4e10413eb6fb4c1ffc5b73f4bf88a483092c77e00411c6b45ccb4c0404a348a024782
6
+ metadata.gz: b507cfd9781c1a33c2fea8823016faad863c89e2522c41d5925a543e5088bf0e96ecfebac65ae59709c950a20f47993da26223ef102bf3161434e683306d0ad9
7
+ data.tar.gz: f979a3af692e2012c3f03da2092ba7009e8fdf0a0913c428ab999db247849dd5be353ecae99d512e985ce54d6060b11f8daa7bd99028ac5f3a9a6b472ebd96ef
@@ -0,0 +1,23 @@
1
+ changelog:
2
+ categories:
3
+ - title: Added
4
+ labels:
5
+ - add
6
+ - title: Changed
7
+ labels:
8
+ - change
9
+ - title: Deprecated
10
+ labels:
11
+ - deprecate
12
+ - title: Fixed
13
+ labels:
14
+ - fix
15
+ - title: Removed
16
+ labels:
17
+ - remove
18
+ - title: Security
19
+ labels:
20
+ - security
21
+ - title: Others
22
+ labels:
23
+ - "*"
@@ -0,0 +1,37 @@
1
+ # This file is machine-generated by `gh actions-lock`.
2
+ # Do not edit by hand; run `gh actions-lock` to update.
3
+ # Docs: https://gh.io/actions-lockfile
4
+ version: 'v0.0.3'
5
+ workflows:
6
+ '.github/workflows/bump-request.yml':
7
+ - 'actions/checkout@v7.0.1'
8
+ - 'r7kamura/bump-request@v0.7.1'
9
+ - 'ruby/setup-ruby@v1.336.0'
10
+ '.github/workflows/release.yml': []
11
+ '.github/workflows/test.yml':
12
+ - 'actions/checkout@v7.0.1'
13
+ - 'ruby/setup-ruby@v1.336.0'
14
+ dependencies:
15
+ 'actions/checkout@v7.0.1':
16
+ ref: 'v7.0.1'
17
+ commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
18
+ owner_id: 44036562
19
+ repo_id: 197814629
20
+ 'actions/setup-node@v7.1.0':
21
+ ref: 'v7.1.0'
22
+ commit: 'sha1-949feb2413d6458794dcd2491c4babbbce0c15c1'
23
+ owner_id: 44036562
24
+ repo_id: 189476904
25
+ 'r7kamura/bump-request@v0.7.1':
26
+ ref: 'v0.7.1'
27
+ commit: 'sha1-b27937188d404bc0c2fd442403e6de1d20f9b349'
28
+ owner_id: 111689
29
+ repo_id: 533135195
30
+ uses:
31
+ - 'actions/checkout@v7.0.1'
32
+ - 'actions/setup-node@v7.1.0'
33
+ 'ruby/setup-ruby@v1.336.0':
34
+ ref: 'v1.336.0'
35
+ commit: 'sha1-de492cf36cbab201753d720ce4f4e336cd688c94'
36
+ owner_id: 210414
37
+ repo_id: 231208785
@@ -0,0 +1,26 @@
1
+ name: bump-request
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ version:
7
+ description: Version to change to.
8
+ required: true
9
+ type: string
10
+
11
+ jobs:
12
+ run:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v7.0.1
16
+ - name: Set up Ruby
17
+ uses: ruby/setup-ruby@v1.336.0
18
+ with:
19
+ ruby-version: 3.3
20
+ bundler-cache: true
21
+ - uses: r7kamura/bump-request@v0.7.1
22
+ with:
23
+ command: |
24
+ sed -i -r 's/([0-9]+\.[0-9]+\.[0-9]+)/${{ inputs.version }}/' lib/ruboty/version.rb
25
+ bundle install
26
+ version: ${{ inputs.version }}
@@ -0,0 +1,11 @@
1
+ name: release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ release:
10
+ uses: r7kamura/workflows/.github/workflows/gem-release.yml@main
11
+ if: github.repository_owner == 'r7kamura'
@@ -0,0 +1,25 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ name: Ruby ${{ matrix.ruby }}
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ ruby: ['3.3', '3.4', '4.0']
17
+ steps:
18
+ - uses: actions/checkout@v7.0.1
19
+ - name: Set up Ruby
20
+ uses: ruby/setup-ruby@v1.336.0
21
+ with:
22
+ ruby-version: ${{ matrix.ruby }}
23
+ bundler-cache: true
24
+ rubygems: latest
25
+ - run: bundle exec rspec
data/README.md CHANGED
@@ -1,13 +1,10 @@
1
1
  # Ruboty
2
2
 
3
- [![Gem](https://img.shields.io/gem/v/ruboty.svg)](https://rubygems.org/gems/ruboty)
4
- [![Build Status](https://travis-ci.org/r7kamura/ruboty.svg)](https://travis-ci.org/r7kamura/ruboty)
5
-
6
3
  Ruby + Bot = Ruboty.
7
4
 
8
5
  ## Dependencies
9
6
 
10
- - Ruby 2.2.2
7
+ - Ruby 3.3 or later
11
8
 
12
9
  ## Adapter
13
10
 
@@ -76,3 +73,5 @@ RUBOTY_NAME - Name to respond to mention (default: ruboty)
76
73
  See [r7kamura/ruboty-template](https://github.com/r7kamura/ruboty-template) for example.
77
74
 
78
75
  [![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/r7kamura/ruboty-template)
76
+
77
+ ruboty was originally designed to be deployed on Heroku. Heroku no longer offers free plans, so this may no longer work there.
@@ -1,3 +1,3 @@
1
1
  module Ruboty
2
- VERSION = "1.4.1"
2
+ VERSION = '1.5.0'
3
3
  end
data/ruboty.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
17
  spec.require_paths = ["lib"]
18
18
 
19
- spec.required_ruby_version = ">= 2.6"
19
+ spec.required_ruby_version = ">= 3.3"
20
20
 
21
21
  spec.add_dependency "activesupport"
22
22
  spec.add_dependency "bundler"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
@@ -142,9 +142,12 @@ executables:
142
142
  extensions: []
143
143
  extra_rdoc_files: []
144
144
  files:
145
+ - ".github/release.yml"
146
+ - ".github/workflows/actions.lock"
147
+ - ".github/workflows/bump-request.yml"
148
+ - ".github/workflows/release.yml"
149
+ - ".github/workflows/test.yml"
145
150
  - ".gitignore"
146
- - ".travis.yml"
147
- - CHANGELOG.md
148
151
  - Gemfile
149
152
  - LICENSE.txt
150
153
  - README.md
@@ -201,14 +204,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
201
204
  requirements:
202
205
  - - ">="
203
206
  - !ruby/object:Gem::Version
204
- version: '2.6'
207
+ version: '3.3'
205
208
  required_rubygems_version: !ruby/object:Gem::Requirement
206
209
  requirements:
207
210
  - - ">="
208
211
  - !ruby/object:Gem::Version
209
212
  version: '0'
210
213
  requirements: []
211
- rubygems_version: 3.6.9
214
+ rubygems_version: 4.0.20
212
215
  specification_version: 4
213
216
  summary: Ruby + Bot = Ruboty
214
217
  test_files:
data/.travis.yml DELETED
@@ -1,8 +0,0 @@
1
- rvm:
2
- - 2.3.1
3
- branches:
4
- only:
5
- - master
6
- env:
7
- global:
8
- secure: IFNYget7BZa+hDw+q0QZDtwkwwngTz/F96pB9gvE+U5y7UUAk6cI3dPEj0LYxRQZyLLi8R+aQ+MXY5Vw2q3vSQCUc/IGt6N/7O5L+X0ef8BzEiud4sLAGP3kXVgyAg1UtLjtLZcFWlQGvgj590r7X+1CgYHeLsnmXhXBVeBBYag=
data/CHANGELOG.md DELETED
@@ -1,194 +0,0 @@
1
- ## 1.4.1
2
-
3
- - Use reline gem instead of readline (thx @unasuke)
4
- - Change required Ruby version from 2.2 to 2.6
5
-
6
- ## 1.4.0
7
-
8
- - The version released by mistake.
9
-
10
- ## 1.3.1
11
-
12
- - Support unicode spaces like U+00a0 (thx @sugi)
13
-
14
- ## 1.3.0
15
-
16
- - Add --daemonize option
17
- - Add --pid option
18
- - Require Ruby 2.2.2 or later for ActiveSupport
19
-
20
- ## 1.2.4
21
-
22
- - Improve help command output (thx @k0kubun)
23
-
24
- ## 1.2.3
25
-
26
- - User default Logger class (thx @eagletmt)
27
-
28
- ## 1.2.2
29
-
30
- - Support ^D on shell adapter (thx @suu-g)
31
-
32
- ## 1.2.1
33
-
34
- - Refer Bundler from top-level
35
-
36
- ## 1.2.0
37
-
38
- - Add DISABLE_DEFAULT_HANDLERS env
39
- - Get away from help message indentation
40
- - Support filter query on help handler (e.g. `@ruboty help ping`)
41
-
42
- ## 1.1.9
43
-
44
- - Support slop both version 3 and 4
45
-
46
- ## 1.1.8
47
-
48
- - Fix shell adapter
49
-
50
- ## 1.1.7
51
-
52
- - Enable sync option of stdout to prevent buffering
53
-
54
- ## 1.1.6
55
-
56
- - Add LOG_LEVEL env
57
-
58
- ## 1.1.5
59
-
60
- - Use slop version 4 or higher
61
- - Fix --load option (thx @amacou)
62
-
63
- ## 1.1.4
64
-
65
- - Support slop version 4
66
-
67
- ## 1.1.3
68
-
69
- - Fix slop version (thx @parroty)
70
-
71
- ## 1.1.2
72
-
73
- - Fix message matching pattern so that "rubotyping" is not responded
74
-
75
- ## 1.1.1
76
-
77
- - Use action's returned-value to check if :missing action is invoked or not
78
-
79
- ## 1.1.0
80
-
81
- - Add :missing option for handler to respond with messages that didn't match any handlers
82
-
83
- ## 1.0.4
84
-
85
- - Support RUBOTY_NAME and obsolete ROBOT_NAME
86
-
87
- ## 1.0.3
88
-
89
- - Fix help handler
90
-
91
- ## 1.0.2
92
-
93
- - Add RUBOTY_ENV to change bundled gems with environment
94
-
95
- ## 1.0.1
96
-
97
- - Ignore if no Gemfile found in current directory or given path
98
-
99
- ## 1.0.0
100
-
101
- - Rename: Ellen -> Ruboty
102
-
103
- ## 0.2.8
104
-
105
- - Use Ruboty::Message#from_name in whoami action
106
-
107
- ## 0.2.7
108
-
109
- - Add Ruboty::Message#from_name for rich chat service
110
-
111
- ## 0.2.6
112
-
113
- - Add `who am i?` handler
114
- - Sort commands in help message
115
-
116
- ## 0.2.5
117
-
118
- - Hide action defined with `:hidden` option in Help message
119
-
120
- ## 0.2.4
121
-
122
- - Reveal message prefix pattern as a class method
123
-
124
- ## 0.2.3
125
-
126
- - Help message is formatted if adapter supported
127
-
128
- ## 0.2.2
129
-
130
- - Now `Ruboty::Robot#say(message)` can use `message[:original]`
131
-
132
- ## 0.2.1
133
-
134
- - Store shell history in ~/.ruboty_history
135
-
136
- ## 0.2.0
137
-
138
- - Change adapter & message interface
139
-
140
- ## 0.1.3
141
-
142
- - Change Ruboty::Message interface
143
-
144
- ## 0.1.2
145
-
146
- - Make Handler validatable
147
-
148
- ## 0.1.1
149
-
150
- - Improve Brain interface
151
-
152
- ## 0.1.0
153
-
154
- - Deprecate --adapter option
155
-
156
- ## 0.0.9
157
-
158
- - Adapt mention name to `@<name>: <text>` format
159
-
160
- ## 0.0.8
161
-
162
- - Mount Brain
163
- - Change handler interface
164
-
165
- ## 0.0.7
166
-
167
- - Add PING handler
168
-
169
- ## 0.0.6
170
-
171
- - `ruboty help` to show actions list
172
-
173
- ## 0.0.5
174
-
175
- - Now Action can access to MatchData object via Message
176
- - ENV["ROBOT_NAME"] or "ruboty" is default name
177
- - Robot only responds to mention unless :all option specified
178
-
179
- ## 0.0.4
180
-
181
- - Add --dotenv option to load .env before running
182
-
183
- ## 0.0.3
184
-
185
- - Add env DSL to define adapter
186
-
187
- ## 0.0.2
188
-
189
- - Add Handler DSL Syntax
190
- - Add --load option to load a ruby file before running
191
-
192
- ## 0.0.1
193
-
194
- - 1st release