ruboty-replace 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/README.md +12 -1
- data/lib/ruboty/replace/version.rb +1 -1
- data/ruboty-replace.gemspec +8 -2
- metadata +18 -29
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: a96d56732efa44554515d0dd2da9e676d55e9eafa4fa751196bd49dbd7def229
|
|
4
|
+
data.tar.gz: ebd20fbbec9fc4fe97313f80bd6b8915a1d13ed6c3bb8ba8968816e46f8f981c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3740766814f138232fe794b3244423dcbc0b60e6a42e8a5475007b32538135439d088b4927dec8b4f947a7e71c48d67cfd4be2e09c9789d318b0891276546a5
|
|
7
|
+
data.tar.gz: 3ff8c541ac9d6686dfb48525e4fc231dd8e368c8f456c0422f30cb024694e87ac91eddb73e780b178e2e306dca0bc157ca562dc81f8ece7fdcf4c1e5a488e78a
|
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/replace/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/replace"'
|
data/README.md
CHANGED
|
@@ -3,7 +3,18 @@ Replace given message with registered patterns for other handlers.
|
|
|
3
3
|
|
|
4
4
|
## Usage
|
|
5
5
|
```
|
|
6
|
-
@ruboty replace <regexp> with <
|
|
6
|
+
@ruboty replace <regexp> with <template> - Register pattern
|
|
7
7
|
@ruboty list patterns - List registered patterns
|
|
8
8
|
@ruboty delete pattern <regexp> - Delete pattern
|
|
9
9
|
```
|
|
10
|
+
|
|
11
|
+
### Note
|
|
12
|
+
You need to put `ruboty-replace` gem before other handlers.
|
|
13
|
+
|
|
14
|
+
```rb
|
|
15
|
+
# Gemfile
|
|
16
|
+
gem "ruboty-replace"
|
|
17
|
+
gem "ruboty-cron"
|
|
18
|
+
gem "ruboty-google_image"
|
|
19
|
+
...
|
|
20
|
+
```
|
data/ruboty-replace.gemspec
CHANGED
|
@@ -9,6 +9,11 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.email = ["r7kamura@gmail.com"]
|
|
10
10
|
spec.summary = "Replace given message with registered patterns for other handlers."
|
|
11
11
|
spec.homepage = "https://github.com/r7kamura/ruboty-replace"
|
|
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.license = "MIT"
|
|
13
18
|
|
|
14
19
|
spec.files = `git ls-files -z`.split("\x0")
|
|
@@ -16,7 +21,8 @@ Gem::Specification.new do |spec|
|
|
|
16
21
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
17
22
|
spec.require_paths = ["lib"]
|
|
18
23
|
|
|
24
|
+
spec.required_ruby_version = ">= 3.3"
|
|
25
|
+
|
|
19
26
|
spec.add_dependency "ruboty"
|
|
20
|
-
spec.add_development_dependency "
|
|
21
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
|
27
|
+
spec.add_development_dependency "rake"
|
|
22
28
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruboty-replace
|
|
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,41 +23,31 @@ 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.7'
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '1.7'
|
|
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
|
- Gemfile
|
|
64
53
|
- LICENSE.txt
|
|
@@ -71,8 +60,11 @@ files:
|
|
|
71
60
|
homepage: https://github.com/r7kamura/ruboty-replace
|
|
72
61
|
licenses:
|
|
73
62
|
- MIT
|
|
74
|
-
metadata:
|
|
75
|
-
|
|
63
|
+
metadata:
|
|
64
|
+
homepage_uri: https://github.com/r7kamura/ruboty-replace
|
|
65
|
+
source_code_uri: https://github.com/r7kamura/ruboty-replace
|
|
66
|
+
changelog_uri: https://github.com/r7kamura/ruboty-replace/releases
|
|
67
|
+
rubygems_mfa_required: 'true'
|
|
76
68
|
rdoc_options: []
|
|
77
69
|
require_paths:
|
|
78
70
|
- lib
|
|
@@ -80,17 +72,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
80
72
|
requirements:
|
|
81
73
|
- - ">="
|
|
82
74
|
- !ruby/object:Gem::Version
|
|
83
|
-
version: '
|
|
75
|
+
version: '3.3'
|
|
84
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
77
|
requirements:
|
|
86
78
|
- - ">="
|
|
87
79
|
- !ruby/object:Gem::Version
|
|
88
80
|
version: '0'
|
|
89
81
|
requirements: []
|
|
90
|
-
|
|
91
|
-
rubygems_version: 2.4.5
|
|
92
|
-
signing_key:
|
|
82
|
+
rubygems_version: 4.0.20
|
|
93
83
|
specification_version: 4
|
|
94
84
|
summary: Replace given message with registered patterns for other handlers.
|
|
95
85
|
test_files: []
|
|
96
|
-
has_rdoc:
|