danger-textlint 2.0.1 → 2.0.4

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: ccf323fb77d25bc1bade56d96fc8dc3456fee206c12ba5267fb56409bf134844
4
- data.tar.gz: 331557efb9c25959b393c29206bfc6b57e8d72425dc7a67b391b774e409e5c2f
3
+ metadata.gz: 866851d94771b6910c4c611fc5ad1d0ec22e9e141993399417170907d9d76242
4
+ data.tar.gz: ffbf247ae0f0a507310783b5bbbf9e06212117e0af77470d39956e90d047868a
5
5
  SHA512:
6
- metadata.gz: 10c90d66a45ef436816d8df8d2f8fa38ee42a14d6065309d08ec8a7514b06bcb19b964204b5d14418d4b7572c6b748f1c52b12edcf872b91aa7b41800291f419
7
- data.tar.gz: 4d2265bf02c94c8a19e47a12b48fcc28813c8d50a5d145a59041dc59e59525d39cdce2c9eb6afc00e73a531c0b7c1b796491a44f359b405f3ae4c3787525e9c4
6
+ metadata.gz: 18807fd0e8ada0361e6c0f4e02710707695c27cd4d2082470d0cd832c9b1e27f835cfe913449f55ed88a20f3e79c6f8d888d1ac37045b20a66628edf8194aaf7
7
+ data.tar.gz: 5931a4e31748a5a51ddf6a32815ab166e64e3768a53802c0ca7320e84937395b1d091c0583d2750f3dca1c51e1806d5ece2a3c14bb7fceb491130008777cef6c
@@ -21,7 +21,7 @@
21
21
  // Add the IDs of extensions you want installed when the container is created.
22
22
  "extensions": [
23
23
  "rebornix.Ruby"
24
- ]
24
+ ],
25
25
 
26
26
  // Use 'forwardPorts' to make a list of ports inside the container available locally.
27
27
  // "forwardPorts": [],
@@ -30,6 +30,6 @@
30
30
  // "postCreateCommand": "ruby --version",
31
31
 
32
32
  // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
33
- // "remoteUser": "vscode"
33
+ "remoteUser": "vscode"
34
34
 
35
35
  }
@@ -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
@@ -7,7 +7,7 @@ jobs:
7
7
  runs-on: ubuntu-latest
8
8
  strategy:
9
9
  matrix:
10
- image: [ 'ruby:2.5', 'ruby:2.6', 'ruby:2.7' ]
10
+ image: [ 'ruby:2.7', 'ruby:3.0', 'ruby:3.1' ]
11
11
  container:
12
12
  image: ${{ matrix.image }}
13
13
 
@@ -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/Gemfile.lock CHANGED
@@ -1,17 +1,17 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- danger-textlint (2.0.1)
4
+ danger-textlint (2.0.4)
5
5
  danger-plugin-api (~> 1.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- addressable (2.7.0)
10
+ addressable (2.8.0)
11
11
  public_suffix (>= 2.0.2, < 5.0)
12
- ast (2.4.1)
13
- bump (0.9.0)
14
- claide (1.0.3)
12
+ ast (2.4.2)
13
+ bump (0.10.0)
14
+ claide (1.1.0)
15
15
  claide-plugins (0.9.2)
16
16
  cork
17
17
  nap
@@ -20,7 +20,7 @@ GEM
20
20
  colored2 (3.1.2)
21
21
  cork (0.3.0)
22
22
  colored2 (~> 3.1)
23
- danger (8.0.5)
23
+ danger (8.6.1)
24
24
  claide (~> 1.0)
25
25
  claide-plugins (>= 0.9.2)
26
26
  colored2 (~> 3.1)
@@ -32,25 +32,46 @@ GEM
32
32
  kramdown-parser-gfm (~> 1.0)
33
33
  no_proxy_fix
34
34
  octokit (~> 4.7)
35
- terminal-table (~> 1)
35
+ terminal-table (>= 1, < 4)
36
36
  danger-plugin-api (1.0.0)
37
37
  danger (> 2.0)
38
- diff-lcs (1.3)
39
- faraday (1.0.1)
40
- multipart-post (>= 1.2, < 3)
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)
41
54
  faraday-http-cache (2.2.0)
42
55
  faraday (>= 0.8)
43
- ffi (1.13.1)
44
- formatador (0.2.5)
45
- git (1.7.0)
56
+ faraday-httpclient (1.0.1)
57
+ faraday-multipart (1.0.3)
58
+ multipart-post (>= 1.2, < 3)
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.11.0)
46
67
  rchardet (~> 1.8)
47
- guard (2.16.2)
68
+ guard (2.18.0)
48
69
  formatador (>= 0.2.4)
49
70
  listen (>= 2.7, < 4.0)
50
71
  lumberjack (>= 1.0.12, < 2.0)
51
72
  nenv (~> 0.1)
52
73
  notiffany (~> 0.0)
53
- pry (>= 0.9.12)
74
+ pry (>= 0.13.0)
54
75
  shellany (~> 0.0)
55
76
  thor (>= 0.18.1)
56
77
  guard-compat (1.2.1)
@@ -58,14 +79,14 @@ GEM
58
79
  guard (~> 2.1)
59
80
  guard-compat (~> 1.1)
60
81
  rspec (>= 2.99.0, < 4.0)
61
- kramdown (2.3.0)
82
+ kramdown (2.4.0)
62
83
  rexml
63
84
  kramdown-parser-gfm (1.1.0)
64
85
  kramdown (~> 2.0)
65
- listen (3.2.1)
86
+ listen (3.7.1)
66
87
  rb-fsevent (~> 0.10, >= 0.10.3)
67
88
  rb-inotify (~> 0.9, >= 0.9.10)
68
- lumberjack (1.2.5)
89
+ lumberjack (1.2.8)
69
90
  method_source (1.0.0)
70
91
  multipart-post (2.1.1)
71
92
  nap (1.1.0)
@@ -74,70 +95,73 @@ GEM
74
95
  notiffany (0.1.3)
75
96
  nenv (~> 0.1)
76
97
  shellany (~> 0.0)
77
- octokit (4.18.0)
98
+ octokit (4.22.0)
78
99
  faraday (>= 0.9)
79
100
  sawyer (~> 0.8.0, >= 0.5.3)
80
101
  open4 (1.3.4)
81
- parallel (1.19.2)
82
- parser (2.7.1.4)
102
+ parallel (1.22.1)
103
+ parser (3.1.1.0)
83
104
  ast (~> 2.4.1)
84
- pry (0.13.1)
105
+ pry (0.14.1)
85
106
  coderay (~> 1.1)
86
107
  method_source (~> 1.0)
87
- public_suffix (4.0.6)
88
- rainbow (3.0.0)
89
- rake (13.0.1)
90
- rb-fsevent (0.10.4)
108
+ public_suffix (4.0.7)
109
+ rainbow (3.1.1)
110
+ rake (13.0.6)
111
+ rb-fsevent (0.11.0)
91
112
  rb-inotify (0.10.1)
92
113
  ffi (~> 1.0)
93
114
  rchardet (1.8.0)
94
- regexp_parser (1.7.1)
95
- rexml (3.2.4)
96
- rspec (3.9.0)
97
- rspec-core (~> 3.9.0)
98
- rspec-expectations (~> 3.9.0)
99
- rspec-mocks (~> 3.9.0)
100
- rspec-core (3.9.2)
101
- rspec-support (~> 3.9.3)
102
- rspec-expectations (3.9.2)
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)
103
124
  diff-lcs (>= 1.2.0, < 2.0)
104
- rspec-support (~> 3.9.0)
105
- rspec-mocks (3.9.1)
125
+ rspec-support (~> 3.11.0)
126
+ rspec-mocks (3.11.0)
106
127
  diff-lcs (>= 1.2.0, < 2.0)
107
- rspec-support (~> 3.9.0)
108
- rspec-support (3.9.3)
109
- rubocop (0.90.0)
128
+ rspec-support (~> 3.11.0)
129
+ rspec-support (3.11.0)
130
+ rubocop (1.26.1)
110
131
  parallel (~> 1.10)
111
- parser (>= 2.7.1.1)
132
+ parser (>= 3.1.0.0)
112
133
  rainbow (>= 2.2.2, < 4.0)
113
- regexp_parser (>= 1.7)
134
+ regexp_parser (>= 1.8, < 3.0)
114
135
  rexml
115
- rubocop-ast (>= 0.3.0, < 1.0)
136
+ rubocop-ast (>= 1.16.0, < 2.0)
116
137
  ruby-progressbar (~> 1.7)
117
- unicode-display_width (>= 1.4.0, < 2.0)
118
- rubocop-ast (0.3.0)
119
- parser (>= 2.7.1.4)
120
- ruby-progressbar (1.10.1)
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)
121
143
  sawyer (0.8.2)
122
144
  addressable (>= 2.3.5)
123
145
  faraday (> 0.8, < 2.0)
124
146
  shellany (0.0.1)
125
- terminal-table (1.8.0)
126
- unicode-display_width (~> 1.1, >= 1.1.1)
127
- thor (1.0.1)
128
- unicode-display_width (1.6.0)
129
- yard (0.9.25)
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)
130
154
 
131
155
  PLATFORMS
132
156
  ruby
133
157
 
134
158
  DEPENDENCIES
135
- bump (~> 0.9.0)
159
+ bump (~> 0.10.0)
136
160
  bundler (~> 2.0)
137
161
  danger-textlint!
138
162
  guard (~> 2.14)
139
163
  guard-rspec (~> 4.7)
140
- listen (= 3.2.1)
164
+ listen (= 3.7.1)
141
165
  pry
142
166
  rake (~> 13.0)
143
167
  rspec (~> 3.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
@@ -36,10 +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.2.1'
39
+ spec.add_development_dependency 'listen', '3.7.1'
40
40
 
41
41
  # Help gem version up when release new version
42
- spec.add_development_dependency 'bump', '~> 0.9.0'
42
+ spec.add_development_dependency 'bump', '~> 0.10.0'
43
43
 
44
44
  # This gives you the chance to run a REPL inside your tests
45
45
  # via:
@@ -1,3 +1,3 @@
1
1
  module Textlint
2
- VERSION = "2.0.1".freeze
2
+ VERSION = "2.0.4".freeze
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require "pathname"
2
2
  ROOT = Pathname.new(File.expand_path("..", __dir__))
3
- $:.unshift((ROOT + "lib").to_s)
4
- $:.unshift((ROOT + "spec").to_s)
3
+ $:.unshift("#{ROOT}lib".to_s)
4
+ $:.unshift("#{ROOT}spec".to_s)
5
5
 
6
6
  require "bundler/setup"
7
7
  require "pry"
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.1
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kesin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-05 00:00:00.000000000 Z
11
+ date: 2022-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger-plugin-api
@@ -128,28 +128,28 @@ dependencies:
128
128
  requirements:
129
129
  - - '='
130
130
  - !ruby/object:Gem::Version
131
- version: 3.2.1
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.2.1
138
+ version: 3.7.1
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: bump
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 0.9.0
145
+ version: 0.10.0
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 0.9.0
152
+ version: 0.10.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: pry
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -175,7 +175,9 @@ files:
175
175
  - ".devcontainer/Dockerfile"
176
176
  - ".devcontainer/devcontainer.json"
177
177
  - ".github/dependabot.yml"
178
+ - ".github/release-drafter.yml"
178
179
  - ".github/workflows/ci.yml"
180
+ - ".github/workflows/publish.yml"
179
181
  - ".gitignore"
180
182
  - ".rubocop.yml"
181
183
  - Gemfile
@@ -211,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
213
  - !ruby/object:Gem::Version
212
214
  version: '0'
213
215
  requirements: []
214
- rubygems_version: 3.1.2
216
+ rubygems_version: 3.3.7
215
217
  signing_key:
216
218
  specification_version: 4
217
219
  summary: Danger plugin for textlint.