danger-textlint 2.0.0 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.devcontainer/Dockerfile +18 -0
- data/.devcontainer/devcontainer.json +35 -0
- data/.github/dependabot.yml +12 -0
- data/.github/release-drafter.yml +40 -0
- data/.github/workflows/ci.yml +2 -2
- data/.github/workflows/publish.yml +63 -0
- data/.rubocop.yml +5 -8
- data/Gemfile.lock +98 -63
- data/README.md +30 -0
- data/danger-textlint.gemspec +5 -2
- data/lib/textlint/gem_version.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- metadata +26 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36f413b0ebe22f2cb11522023d1f83504f8dee2c99bf8159a0987f79ad45f7ca
|
4
|
+
data.tar.gz: 7969cee6e378900d7a32b57eaa4b30976ab7840d4a64b0dd98d137c93809b5f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4a6e8d491a88e2f9b93582c33360e8798595dc957f7b8e5c39c89bcb70229e33cf61479ab09efdb5c71d21a8af149b1c127db5bce924007f602f57a7081fc5b
|
7
|
+
data.tar.gz: 1392c9b498cf2d4e4aa3c66b3b11a7e15ce08cb58817bf9328f53c6bc97672900a72856e8322632336d8e471e21d34a87316315135719d2c2167ba2a7bfced77
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.134.1/containers/ruby/.devcontainer/base.Dockerfile
|
2
|
+
ARG VARIANT="2"
|
3
|
+
FROM mcr.microsoft.com/vscode/devcontainers/ruby:0-${VARIANT}
|
4
|
+
|
5
|
+
# [Optional] Install a version of Node.js using nvm for front end dev
|
6
|
+
ARG INSTALL_NODE="true"
|
7
|
+
ARG NODE_VERSION="lts/*"
|
8
|
+
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
|
9
|
+
|
10
|
+
# [Optional] Uncomment this section to install additional OS packages.
|
11
|
+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
12
|
+
&& apt-get -y install --no-install-recommends git vim
|
13
|
+
|
14
|
+
# [Optional] Uncomment this line to install additional gems.
|
15
|
+
# RUN gem install <your-gem-names-here>
|
16
|
+
|
17
|
+
# [Optional] Uncomment this line to install global node packages.
|
18
|
+
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
|
@@ -0,0 +1,35 @@
|
|
1
|
+
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
|
2
|
+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.134.1/containers/ruby
|
3
|
+
{
|
4
|
+
"name": "Ruby",
|
5
|
+
"build": {
|
6
|
+
"dockerfile": "Dockerfile",
|
7
|
+
"args": {
|
8
|
+
// Update 'VARIANT' to pick a Ruby version: 2, 2.7, 2.6, 2.5
|
9
|
+
"VARIANT": "2.7",
|
10
|
+
// Options
|
11
|
+
"INSTALL_NODE": "true",
|
12
|
+
"NODE_VERSION": "lts/*"
|
13
|
+
}
|
14
|
+
},
|
15
|
+
|
16
|
+
// Set *default* container specific settings.json values on container create.
|
17
|
+
"settings": {
|
18
|
+
"terminal.integrated.shell.linux": "/bin/bash"
|
19
|
+
},
|
20
|
+
|
21
|
+
// Add the IDs of extensions you want installed when the container is created.
|
22
|
+
"extensions": [
|
23
|
+
"rebornix.Ruby"
|
24
|
+
],
|
25
|
+
|
26
|
+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
27
|
+
// "forwardPorts": [],
|
28
|
+
|
29
|
+
// Use 'postCreateCommand' to run commands after the container is created.
|
30
|
+
// "postCreateCommand": "ruby --version",
|
31
|
+
|
32
|
+
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
|
33
|
+
"remoteUser": "vscode"
|
34
|
+
|
35
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
3
|
+
# Please see the documentation for all configuration options:
|
4
|
+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
5
|
+
|
6
|
+
version: 2
|
7
|
+
updates:
|
8
|
+
- package-ecosystem: "bundler" # See documentation for possible values
|
9
|
+
directory: "/" # Location of package manifests
|
10
|
+
schedule:
|
11
|
+
interval: "monthly"
|
12
|
+
timezone: "Asia/Tokyo"
|
@@ -0,0 +1,40 @@
|
|
1
|
+
name-template: 'v$RESOLVED_VERSION'
|
2
|
+
tag-template: 'v$RESOLVED_VERSION'
|
3
|
+
categories:
|
4
|
+
- title: 'BREAKING CHANGES'
|
5
|
+
labels:
|
6
|
+
- 'BREAKING CHANGES'
|
7
|
+
- title: 'Features'
|
8
|
+
labels:
|
9
|
+
- 'feature'
|
10
|
+
- 'enhancement'
|
11
|
+
- title: 'Fixes'
|
12
|
+
labels:
|
13
|
+
- 'bug'
|
14
|
+
- 'security'
|
15
|
+
- title: 'Dependencies'
|
16
|
+
collapse-after: 3
|
17
|
+
label: 'dependencies'
|
18
|
+
- title: 'Documentation'
|
19
|
+
label: 'document'
|
20
|
+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
|
21
|
+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
|
22
|
+
version-resolver:
|
23
|
+
major:
|
24
|
+
labels:
|
25
|
+
- 'BREAKING CHANGES'
|
26
|
+
minor:
|
27
|
+
labels:
|
28
|
+
- 'feature'
|
29
|
+
- 'enhancement'
|
30
|
+
patch:
|
31
|
+
labels:
|
32
|
+
- 'bug'
|
33
|
+
- 'security'
|
34
|
+
default: patch
|
35
|
+
template: |
|
36
|
+
## [v$RESOLVED_VERSION](https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION)
|
37
|
+
|
38
|
+
## Changes
|
39
|
+
|
40
|
+
$CHANGES
|
data/.github/workflows/ci.yml
CHANGED
@@ -7,12 +7,12 @@ jobs:
|
|
7
7
|
runs-on: ubuntu-latest
|
8
8
|
strategy:
|
9
9
|
matrix:
|
10
|
-
image: [ 'ruby:2.
|
10
|
+
image: [ 'ruby:2.7', 'ruby:3.0', 'ruby:3.1' ]
|
11
11
|
container:
|
12
12
|
image: ${{ matrix.image }}
|
13
13
|
|
14
14
|
steps:
|
15
|
-
- uses: actions/checkout@
|
15
|
+
- uses: actions/checkout@v2
|
16
16
|
|
17
17
|
- name: Setup bundler
|
18
18
|
run: gem install bundler
|
@@ -0,0 +1,63 @@
|
|
1
|
+
name: Publish gems
|
2
|
+
|
3
|
+
on:
|
4
|
+
workflow_dispatch:
|
5
|
+
|
6
|
+
jobs:
|
7
|
+
draft_release:
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
outputs:
|
10
|
+
tag_name: ${{ steps.release-drafter.outputs.tag_name }}
|
11
|
+
steps:
|
12
|
+
# Get next version
|
13
|
+
- uses: release-drafter/release-drafter@v5
|
14
|
+
id: release-drafter
|
15
|
+
env:
|
16
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
17
|
+
|
18
|
+
publish_release:
|
19
|
+
runs-on: ubuntu-latest
|
20
|
+
environment: prod
|
21
|
+
needs: draft_release
|
22
|
+
steps:
|
23
|
+
# Create version string from tag (v1.0.0 -> 1.0.0)
|
24
|
+
- name: Create version string
|
25
|
+
run: |
|
26
|
+
export TAG_NAME=${{ needs.draft_release.outputs.tag_name }}
|
27
|
+
echo "VERSION=${TAG_NAME:1}" >> $GITHUB_ENV
|
28
|
+
|
29
|
+
# Publish rubygems
|
30
|
+
- uses: actions/checkout@v2
|
31
|
+
- run: |
|
32
|
+
git config --global user.name "github-actions"
|
33
|
+
git config --global user.email "github-actions@github.com"
|
34
|
+
- name: Setup rubygems credentials
|
35
|
+
run: |
|
36
|
+
mkdir -p ~/.gem
|
37
|
+
cat << EOF > ~/.gem/credentials
|
38
|
+
---
|
39
|
+
:rubygems_api_key: ${RUBYGEMS_API_KEY}
|
40
|
+
EOF
|
41
|
+
|
42
|
+
chmod 0600 ~/.gem/credentials
|
43
|
+
env:
|
44
|
+
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
|
45
|
+
- uses: ruby/setup-ruby@v1
|
46
|
+
with:
|
47
|
+
ruby-version: 3
|
48
|
+
bundler-cache: true
|
49
|
+
- name: Release rubygems
|
50
|
+
run: |
|
51
|
+
bundle config unset --local deployment
|
52
|
+
bundle exec bump set $VERSION
|
53
|
+
bundle install
|
54
|
+
bundle exec rake release
|
55
|
+
env:
|
56
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
57
|
+
|
58
|
+
# Publish github releases
|
59
|
+
- uses: release-drafter/release-drafter@v5
|
60
|
+
with:
|
61
|
+
publish: true
|
62
|
+
env:
|
63
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
data/.rubocop.yml
CHANGED
@@ -3,7 +3,8 @@
|
|
3
3
|
# If you don't like these settings, just delete this file :)
|
4
4
|
|
5
5
|
AllCops:
|
6
|
-
TargetRubyVersion: 2.
|
6
|
+
TargetRubyVersion: 2.7
|
7
|
+
NewCops: disable
|
7
8
|
|
8
9
|
Style/StringLiterals:
|
9
10
|
EnforcedStyle: double_quotes
|
@@ -13,20 +14,16 @@ Style/StringLiterals:
|
|
13
14
|
Style/ClassCheck:
|
14
15
|
EnforcedStyle: kind_of?
|
15
16
|
|
16
|
-
# It's better to be more explicit about the type
|
17
|
-
Style/BracesAroundHashParameters:
|
18
|
-
Enabled: false
|
19
|
-
|
20
17
|
# specs sometimes have useless assignments, which is fine
|
21
18
|
Lint/UselessAssignment:
|
22
19
|
Exclude:
|
23
20
|
- '**/spec/**/*'
|
24
21
|
|
25
22
|
# We could potentially enable the 2 below:
|
26
|
-
Layout/
|
23
|
+
Layout/FirstHashElementIndentation:
|
27
24
|
Enabled: false
|
28
25
|
|
29
|
-
Layout/
|
26
|
+
Layout/HashAlignment:
|
30
27
|
Enabled: false
|
31
28
|
|
32
29
|
# HoundCI doesn't like this rule
|
@@ -130,7 +127,7 @@ Style/MixinGrouping:
|
|
130
127
|
Naming/FileName:
|
131
128
|
Enabled: false
|
132
129
|
|
133
|
-
Layout/
|
130
|
+
Layout/HeredocIndentation:
|
134
131
|
Enabled: false
|
135
132
|
|
136
133
|
Style/SpecialGlobalVars:
|
data/Gemfile.lock
CHANGED
@@ -1,54 +1,77 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
danger-textlint (2.0.
|
4
|
+
danger-textlint (2.0.3)
|
5
5
|
danger-plugin-api (~> 1.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
addressable (2.
|
10
|
+
addressable (2.8.0)
|
11
11
|
public_suffix (>= 2.0.2, < 5.0)
|
12
|
-
ast (2.4.
|
13
|
-
|
12
|
+
ast (2.4.2)
|
13
|
+
bump (0.10.0)
|
14
|
+
claide (1.1.0)
|
14
15
|
claide-plugins (0.9.2)
|
15
16
|
cork
|
16
17
|
nap
|
17
18
|
open4 (~> 1.3)
|
18
|
-
coderay (1.1.
|
19
|
+
coderay (1.1.3)
|
19
20
|
colored2 (3.1.2)
|
20
21
|
cork (0.3.0)
|
21
22
|
colored2 (~> 3.1)
|
22
|
-
danger (
|
23
|
+
danger (8.5.0)
|
23
24
|
claide (~> 1.0)
|
24
25
|
claide-plugins (>= 0.9.2)
|
25
26
|
colored2 (~> 3.1)
|
26
27
|
cork (~> 0.1)
|
27
|
-
faraday (
|
28
|
+
faraday (>= 0.9.0, < 2.0)
|
28
29
|
faraday-http-cache (~> 2.0)
|
29
|
-
git (~> 1.
|
30
|
-
kramdown (~> 2.
|
30
|
+
git (~> 1.7)
|
31
|
+
kramdown (~> 2.3)
|
31
32
|
kramdown-parser-gfm (~> 1.0)
|
32
33
|
no_proxy_fix
|
33
34
|
octokit (~> 4.7)
|
34
|
-
terminal-table (
|
35
|
+
terminal-table (>= 1, < 4)
|
35
36
|
danger-plugin-api (1.0.0)
|
36
37
|
danger (> 2.0)
|
37
|
-
diff-lcs (1.
|
38
|
-
faraday (
|
38
|
+
diff-lcs (1.5.0)
|
39
|
+
faraday (1.10.0)
|
40
|
+
faraday-em_http (~> 1.0)
|
41
|
+
faraday-em_synchrony (~> 1.0)
|
42
|
+
faraday-excon (~> 1.1)
|
43
|
+
faraday-httpclient (~> 1.0)
|
44
|
+
faraday-multipart (~> 1.0)
|
45
|
+
faraday-net_http (~> 1.0)
|
46
|
+
faraday-net_http_persistent (~> 1.0)
|
47
|
+
faraday-patron (~> 1.0)
|
48
|
+
faraday-rack (~> 1.0)
|
49
|
+
faraday-retry (~> 1.0)
|
50
|
+
ruby2_keywords (>= 0.0.4)
|
51
|
+
faraday-em_http (1.0.0)
|
52
|
+
faraday-em_synchrony (1.0.0)
|
53
|
+
faraday-excon (1.1.0)
|
54
|
+
faraday-http-cache (2.2.0)
|
55
|
+
faraday (>= 0.8)
|
56
|
+
faraday-httpclient (1.0.1)
|
57
|
+
faraday-multipart (1.0.3)
|
39
58
|
multipart-post (>= 1.2, < 3)
|
40
|
-
faraday-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
59
|
+
faraday-net_http (1.0.1)
|
60
|
+
faraday-net_http_persistent (1.2.0)
|
61
|
+
faraday-patron (1.0.0)
|
62
|
+
faraday-rack (1.0.0)
|
63
|
+
faraday-retry (1.0.3)
|
64
|
+
ffi (1.15.5)
|
65
|
+
formatador (0.3.0)
|
66
|
+
git (1.10.2)
|
67
|
+
rchardet (~> 1.8)
|
68
|
+
guard (2.18.0)
|
46
69
|
formatador (>= 0.2.4)
|
47
70
|
listen (>= 2.7, < 4.0)
|
48
71
|
lumberjack (>= 1.0.12, < 2.0)
|
49
72
|
nenv (~> 0.1)
|
50
73
|
notiffany (~> 0.0)
|
51
|
-
pry (>= 0.
|
74
|
+
pry (>= 0.13.0)
|
52
75
|
shellany (~> 0.0)
|
53
76
|
thor (>= 0.18.1)
|
54
77
|
guard-compat (1.2.1)
|
@@ -56,82 +79,94 @@ GEM
|
|
56
79
|
guard (~> 2.1)
|
57
80
|
guard-compat (~> 1.1)
|
58
81
|
rspec (>= 2.99.0, < 4.0)
|
59
|
-
|
60
|
-
|
82
|
+
kramdown (2.3.2)
|
83
|
+
rexml
|
61
84
|
kramdown-parser-gfm (1.1.0)
|
62
85
|
kramdown (~> 2.0)
|
63
|
-
listen (3.
|
64
|
-
rb-fsevent (>= 0.
|
65
|
-
rb-inotify (>= 0.9.
|
66
|
-
lumberjack (1.
|
67
|
-
method_source (0.
|
86
|
+
listen (3.7.1)
|
87
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
88
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
89
|
+
lumberjack (1.2.8)
|
90
|
+
method_source (1.0.0)
|
68
91
|
multipart-post (2.1.1)
|
69
92
|
nap (1.1.0)
|
70
93
|
nenv (0.3.0)
|
71
94
|
no_proxy_fix (0.1.2)
|
72
|
-
notiffany (0.1.
|
95
|
+
notiffany (0.1.3)
|
73
96
|
nenv (~> 0.1)
|
74
97
|
shellany (~> 0.0)
|
75
|
-
octokit (4.
|
98
|
+
octokit (4.22.0)
|
99
|
+
faraday (>= 0.9)
|
76
100
|
sawyer (~> 0.8.0, >= 0.5.3)
|
77
101
|
open4 (1.3.4)
|
78
|
-
parallel (1.
|
79
|
-
parser (
|
80
|
-
ast (~> 2.4.
|
81
|
-
pry (0.
|
82
|
-
coderay (~> 1.1
|
83
|
-
method_source (~>
|
84
|
-
public_suffix (4.0.
|
85
|
-
rainbow (3.
|
86
|
-
rake (
|
87
|
-
rb-fsevent (0.
|
88
|
-
rb-inotify (0.10.
|
102
|
+
parallel (1.22.1)
|
103
|
+
parser (3.1.1.0)
|
104
|
+
ast (~> 2.4.1)
|
105
|
+
pry (0.14.1)
|
106
|
+
coderay (~> 1.1)
|
107
|
+
method_source (~> 1.0)
|
108
|
+
public_suffix (4.0.6)
|
109
|
+
rainbow (3.1.1)
|
110
|
+
rake (13.0.6)
|
111
|
+
rb-fsevent (0.11.0)
|
112
|
+
rb-inotify (0.10.1)
|
89
113
|
ffi (~> 1.0)
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
rspec-
|
96
|
-
|
114
|
+
rchardet (1.8.0)
|
115
|
+
regexp_parser (2.2.1)
|
116
|
+
rexml (3.2.5)
|
117
|
+
rspec (3.11.0)
|
118
|
+
rspec-core (~> 3.11.0)
|
119
|
+
rspec-expectations (~> 3.11.0)
|
120
|
+
rspec-mocks (~> 3.11.0)
|
121
|
+
rspec-core (3.11.0)
|
122
|
+
rspec-support (~> 3.11.0)
|
123
|
+
rspec-expectations (3.11.0)
|
97
124
|
diff-lcs (>= 1.2.0, < 2.0)
|
98
|
-
rspec-support (~> 3.
|
99
|
-
rspec-mocks (3.
|
125
|
+
rspec-support (~> 3.11.0)
|
126
|
+
rspec-mocks (3.11.0)
|
100
127
|
diff-lcs (>= 1.2.0, < 2.0)
|
101
|
-
rspec-support (~> 3.
|
102
|
-
rspec-support (3.
|
103
|
-
rubocop (
|
104
|
-
jaro_winkler (~> 1.5.1)
|
128
|
+
rspec-support (~> 3.11.0)
|
129
|
+
rspec-support (3.11.0)
|
130
|
+
rubocop (1.26.1)
|
105
131
|
parallel (~> 1.10)
|
106
|
-
parser (>=
|
132
|
+
parser (>= 3.1.0.0)
|
107
133
|
rainbow (>= 2.2.2, < 4.0)
|
134
|
+
regexp_parser (>= 1.8, < 3.0)
|
135
|
+
rexml
|
136
|
+
rubocop-ast (>= 1.16.0, < 2.0)
|
108
137
|
ruby-progressbar (~> 1.7)
|
109
|
-
unicode-display_width (>= 1.4.0, <
|
110
|
-
|
138
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
139
|
+
rubocop-ast (1.16.0)
|
140
|
+
parser (>= 3.1.1.0)
|
141
|
+
ruby-progressbar (1.11.0)
|
142
|
+
ruby2_keywords (0.0.5)
|
111
143
|
sawyer (0.8.2)
|
112
144
|
addressable (>= 2.3.5)
|
113
145
|
faraday (> 0.8, < 2.0)
|
114
146
|
shellany (0.0.1)
|
115
|
-
terminal-table (
|
116
|
-
unicode-display_width (
|
117
|
-
thor (
|
118
|
-
unicode-display_width (1.
|
119
|
-
|
147
|
+
terminal-table (3.0.2)
|
148
|
+
unicode-display_width (>= 1.1.1, < 3)
|
149
|
+
thor (1.1.0)
|
150
|
+
unicode-display_width (2.1.0)
|
151
|
+
webrick (1.7.0)
|
152
|
+
yard (0.9.27)
|
153
|
+
webrick (~> 1.7.0)
|
120
154
|
|
121
155
|
PLATFORMS
|
122
156
|
ruby
|
123
157
|
|
124
158
|
DEPENDENCIES
|
159
|
+
bump (~> 0.10.0)
|
125
160
|
bundler (~> 2.0)
|
126
161
|
danger-textlint!
|
127
162
|
guard (~> 2.14)
|
128
163
|
guard-rspec (~> 4.7)
|
129
|
-
listen (= 3.
|
164
|
+
listen (= 3.7.1)
|
130
165
|
pry
|
131
|
-
rake (~>
|
166
|
+
rake (~> 13.0)
|
132
167
|
rspec (~> 3.4)
|
133
168
|
rubocop
|
134
169
|
yard
|
135
170
|
|
136
171
|
BUNDLED WITH
|
137
|
-
2.
|
172
|
+
2.1.4
|
data/README.md
CHANGED
@@ -41,6 +41,36 @@ choice: nil or "warn"
|
|
41
41
|
|
42
42
|
`lint` - Execute textlint and send comment
|
43
43
|
|
44
|
+
## Usage(Github Actions)
|
45
|
+
Puts this code into your .github/workflows/
|
46
|
+
|
47
|
+
```yaml
|
48
|
+
name: "textlint"
|
49
|
+
on:
|
50
|
+
pull_request:
|
51
|
+
|
52
|
+
jobs:
|
53
|
+
textlint:
|
54
|
+
runs-on: ubuntu-latest
|
55
|
+
steps:
|
56
|
+
- uses: actions/checkout@v2
|
57
|
+
|
58
|
+
- name: Setup node version
|
59
|
+
uses: actions/setup-node@v2
|
60
|
+
with:
|
61
|
+
node-version: '14'
|
62
|
+
cache: 'npm'
|
63
|
+
- run: npm ci
|
64
|
+
|
65
|
+
- uses: ruby/setup-ruby@v1
|
66
|
+
with:
|
67
|
+
ruby-version: 3
|
68
|
+
bundler-cache: true
|
69
|
+
- run: bundle exec danger
|
70
|
+
env:
|
71
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
72
|
+
```
|
73
|
+
|
44
74
|
## Development
|
45
75
|
|
46
76
|
1. Clone this repo
|
data/danger-textlint.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
|
23
23
|
# General ruby development
|
24
24
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
25
|
-
spec.add_development_dependency 'rake', '~>
|
25
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
26
26
|
|
27
27
|
# Testing support
|
28
28
|
spec.add_development_dependency 'rspec', '~> 3.4'
|
@@ -36,7 +36,10 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_development_dependency 'guard-rspec', '~> 4.7'
|
37
37
|
|
38
38
|
# If you want to work on older builds of ruby
|
39
|
-
spec.add_development_dependency 'listen', '3.
|
39
|
+
spec.add_development_dependency 'listen', '3.7.1'
|
40
|
+
|
41
|
+
# Help gem version up when release new version
|
42
|
+
spec.add_development_dependency 'bump', '~> 0.10.0'
|
40
43
|
|
41
44
|
# This gives you the chance to run a REPL inside your tests
|
42
45
|
# via:
|
data/lib/textlint/gem_version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger-textlint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kesin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger-plugin-api
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '13.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '13.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +128,28 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - '='
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 3.
|
131
|
+
version: 3.7.1
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - '='
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 3.
|
138
|
+
version: 3.7.1
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: bump
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.10.0
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.10.0
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: pry
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,7 +172,12 @@ extensions: []
|
|
158
172
|
extra_rdoc_files: []
|
159
173
|
files:
|
160
174
|
- ".dependabot/config.yml"
|
175
|
+
- ".devcontainer/Dockerfile"
|
176
|
+
- ".devcontainer/devcontainer.json"
|
177
|
+
- ".github/dependabot.yml"
|
178
|
+
- ".github/release-drafter.yml"
|
161
179
|
- ".github/workflows/ci.yml"
|
180
|
+
- ".github/workflows/publish.yml"
|
162
181
|
- ".gitignore"
|
163
182
|
- ".rubocop.yml"
|
164
183
|
- Gemfile
|
@@ -194,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
213
|
- !ruby/object:Gem::Version
|
195
214
|
version: '0'
|
196
215
|
requirements: []
|
197
|
-
rubygems_version: 3.
|
216
|
+
rubygems_version: 3.3.7
|
198
217
|
signing_key:
|
199
218
|
specification_version: 4
|
200
219
|
summary: Danger plugin for textlint.
|