ruboty-ruby 0.0.1 → 0.1.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 +5 -5
- data/.github/release.yml +23 -0
- data/.github/workflows/actions.lock +37 -0
- data/.github/workflows/bump-request.yml +26 -0
- data/.github/workflows/ci.yml +26 -0
- data/.github/workflows/release.yml +11 -0
- data/1.9 +0 -0
- data/10.0 +0 -0
- data/README.md +2 -1
- data/lib/ruboty/handlers/ruby.rb +1 -1
- data/lib/ruboty/ruby/version.rb +1 -1
- data/ruboty-ruby.gemspec +8 -2
- metadata +20 -30
- data/.travis.yml +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: a02f6e3b5b59cc03e7aa897725bb2869ba58c300ad97a8bc1d8b9a1eb91cdf5f
|
|
4
|
+
data.tar.gz: 45359783adb41fa53c3e57b299f2c1149b9246735cb2ae2aee8e28d70dcdf8ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8982acc29863fd573cb5749ede2c09a29d164a5603f94a7c356fcf5f91bbb3a12d6987bc5a830cf5a15b91aed8d927d14178c9c0b4691926a5ae0b6752a28716
|
|
7
|
+
data.tar.gz: b7e190b58aa3486e56efd293139e24f52f164d8a68b516f6f1f9b7cd0948ed48864c21f7602a2b5b70f9cda374395e66ccec2821aef87a091aa1c1088f821f57
|
data/.github/release.yml
ADDED
|
@@ -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/ci.yml':
|
|
11
|
+
- 'actions/checkout@v7.0.1'
|
|
12
|
+
- 'ruby/setup-ruby@v1.336.0'
|
|
13
|
+
'.github/workflows/release.yml': []
|
|
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/ruby/version.rb
|
|
25
|
+
bundle install
|
|
26
|
+
version: ${{ inputs.version }}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: CI
|
|
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:
|
|
17
|
+
- '3.3'
|
|
18
|
+
- '3.4'
|
|
19
|
+
- '4.0'
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v7.0.1
|
|
22
|
+
- uses: ruby/setup-ruby@v1.336.0
|
|
23
|
+
with:
|
|
24
|
+
ruby-version: ${{ matrix.ruby }}
|
|
25
|
+
bundler-cache: true
|
|
26
|
+
- run: bundle exec ruby -e 'require "ruboty"; require "ruboty/ruby"'
|
data/1.9
ADDED
|
File without changes
|
data/10.0
ADDED
|
File without changes
|
data/README.md
CHANGED
data/lib/ruboty/handlers/ruby.rb
CHANGED
|
@@ -11,7 +11,7 @@ module Ruboty
|
|
|
11
11
|
|
|
12
12
|
def evaluate(message)
|
|
13
13
|
message.reply(eval(message[:code]))
|
|
14
|
-
rescue => exception
|
|
14
|
+
rescue Exception => exception
|
|
15
15
|
body = "#{exception.class}: #{exception}"
|
|
16
16
|
message.reply(body)
|
|
17
17
|
Ruboty.logger.debug([body, exception.backtrace].join("\n"))
|
data/lib/ruboty/ruby/version.rb
CHANGED
data/ruboty-ruby.gemspec
CHANGED
|
@@ -9,9 +9,15 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.email = ["r7kamura@gmail.com"]
|
|
10
10
|
spec.summary = "Ruboty plug-in to instantly evaluate Ruby code in given message."
|
|
11
11
|
spec.homepage = "https://github.com/r7kamura/ruboty-ruby"
|
|
12
|
+
|
|
13
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
14
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
|
15
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/releases"
|
|
16
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
|
12
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
13
18
|
spec.require_paths = ["lib"]
|
|
19
|
+
|
|
20
|
+
spec.required_ruby_version = ">= 3.3"
|
|
14
21
|
spec.add_runtime_dependency "ruboty"
|
|
15
|
-
spec.add_development_dependency "
|
|
16
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
|
22
|
+
spec.add_development_dependency "rake"
|
|
17
23
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruboty-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryo Nakamura
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: ruboty
|
|
@@ -24,44 +23,35 @@ dependencies:
|
|
|
24
23
|
- - ">="
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
25
|
version: '0'
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: bundler
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '1.9'
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '1.9'
|
|
41
26
|
- !ruby/object:Gem::Dependency
|
|
42
27
|
name: rake
|
|
43
28
|
requirement: !ruby/object:Gem::Requirement
|
|
44
29
|
requirements:
|
|
45
|
-
- - "
|
|
30
|
+
- - ">="
|
|
46
31
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
32
|
+
version: '0'
|
|
48
33
|
type: :development
|
|
49
34
|
prerelease: false
|
|
50
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
36
|
requirements:
|
|
52
|
-
- - "
|
|
37
|
+
- - ">="
|
|
53
38
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
55
|
-
description:
|
|
39
|
+
version: '0'
|
|
56
40
|
email:
|
|
57
41
|
- r7kamura@gmail.com
|
|
58
42
|
executables: []
|
|
59
43
|
extensions: []
|
|
60
44
|
extra_rdoc_files: []
|
|
61
45
|
files:
|
|
46
|
+
- ".github/release.yml"
|
|
47
|
+
- ".github/workflows/actions.lock"
|
|
48
|
+
- ".github/workflows/bump-request.yml"
|
|
49
|
+
- ".github/workflows/ci.yml"
|
|
50
|
+
- ".github/workflows/release.yml"
|
|
62
51
|
- ".gitignore"
|
|
63
52
|
- ".rspec"
|
|
64
|
-
-
|
|
53
|
+
- '1.9'
|
|
54
|
+
- '10.0'
|
|
65
55
|
- Gemfile
|
|
66
56
|
- README.md
|
|
67
57
|
- Rakefile
|
|
@@ -71,8 +61,11 @@ files:
|
|
|
71
61
|
- ruboty-ruby.gemspec
|
|
72
62
|
homepage: https://github.com/r7kamura/ruboty-ruby
|
|
73
63
|
licenses: []
|
|
74
|
-
metadata:
|
|
75
|
-
|
|
64
|
+
metadata:
|
|
65
|
+
homepage_uri: https://github.com/r7kamura/ruboty-ruby
|
|
66
|
+
source_code_uri: https://github.com/r7kamura/ruboty-ruby
|
|
67
|
+
changelog_uri: https://github.com/r7kamura/ruboty-ruby/releases
|
|
68
|
+
rubygems_mfa_required: 'true'
|
|
76
69
|
rdoc_options: []
|
|
77
70
|
require_paths:
|
|
78
71
|
- lib
|
|
@@ -80,17 +73,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
80
73
|
requirements:
|
|
81
74
|
- - ">="
|
|
82
75
|
- !ruby/object:Gem::Version
|
|
83
|
-
version: '
|
|
76
|
+
version: '3.3'
|
|
84
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
78
|
requirements:
|
|
86
79
|
- - ">="
|
|
87
80
|
- !ruby/object:Gem::Version
|
|
88
81
|
version: '0'
|
|
89
82
|
requirements: []
|
|
90
|
-
|
|
91
|
-
rubygems_version: 2.4.5
|
|
92
|
-
signing_key:
|
|
83
|
+
rubygems_version: 4.0.20
|
|
93
84
|
specification_version: 4
|
|
94
85
|
summary: Ruboty plug-in to instantly evaluate Ruby code in given message.
|
|
95
86
|
test_files: []
|
|
96
|
-
has_rdoc:
|
data/.travis.yml
DELETED