danger-textlint 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ccf323fb77d25bc1bade56d96fc8dc3456fee206c12ba5267fb56409bf134844
4
- data.tar.gz: 331557efb9c25959b393c29206bfc6b57e8d72425dc7a67b391b774e409e5c2f
3
+ metadata.gz: 9c78f465651253ec82a384886832cb3cfe1fc9ea298cb4b60c3ab9774af1bb57
4
+ data.tar.gz: bd5fdeded9422419c4478cc2de447edd3ce8f03a1110d0f1e7021fd57af8d9fe
5
5
  SHA512:
6
- metadata.gz: 10c90d66a45ef436816d8df8d2f8fa38ee42a14d6065309d08ec8a7514b06bcb19b964204b5d14418d4b7572c6b748f1c52b12edcf872b91aa7b41800291f419
7
- data.tar.gz: 4d2265bf02c94c8a19e47a12b48fcc28813c8d50a5d145a59041dc59e59525d39cdce2c9eb6afc00e73a531c0b7c1b796491a44f359b405f3ae4c3787525e9c4
6
+ metadata.gz: d9b6fb5716b98459288cc9b61bbf90619f073f86dd68bc4d75e5deba4afb9a3981c8c5f1894bd48312d404d529a97644b9c70e1f356d2057463d827c8384b4e0
7
+ data.tar.gz: 4f762d3b363bc1dee2556fb3dc819a494e6a990baaa5bfb0eff80cee441316114b6ebc96a116ef1b6b8dc9deed50ce4e171a711f8d3290acff0d1b857d7902c8
@@ -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,39 @@
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
+ label: 'dependencies'
17
+ - title: 'Documentation'
18
+ label: 'document'
19
+ change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
20
+ change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
21
+ version-resolver:
22
+ major:
23
+ labels:
24
+ - 'BREAKING CHANGES'
25
+ minor:
26
+ labels:
27
+ - 'feature'
28
+ - 'enhancement'
29
+ patch:
30
+ labels:
31
+ - 'bug'
32
+ - 'security'
33
+ default: patch
34
+ template: |
35
+ [Compare $PREVIOUS_TAG with v$RESOLVED_VERSION](https://github.com/Kesin11/danger-textlint/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION)
36
+
37
+ ## Changes
38
+
39
+ $CHANGES
@@ -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,16 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- danger-textlint (2.0.1)
4
+ danger-textlint (2.0.2)
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)
12
+ ast (2.4.2)
13
+ bump (0.10.0)
14
14
  claide (1.0.3)
15
15
  claide-plugins (0.9.2)
16
16
  cork
@@ -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.3.1)
24
24
  claide (~> 1.0)
25
25
  claide-plugins (>= 0.9.2)
26
26
  colored2 (~> 3.1)
@@ -32,25 +32,42 @@ 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)
38
+ diff-lcs (1.4.4)
39
+ faraday (1.7.1)
40
+ faraday-em_http (~> 1.0)
41
+ faraday-em_synchrony (~> 1.0)
42
+ faraday-excon (~> 1.1)
43
+ faraday-httpclient (~> 1.0.1)
44
+ faraday-net_http (~> 1.0)
45
+ faraday-net_http_persistent (~> 1.1)
46
+ faraday-patron (~> 1.0)
47
+ faraday-rack (~> 1.0)
40
48
  multipart-post (>= 1.2, < 3)
49
+ ruby2_keywords (>= 0.0.4)
50
+ faraday-em_http (1.0.0)
51
+ faraday-em_synchrony (1.0.0)
52
+ faraday-excon (1.1.0)
41
53
  faraday-http-cache (2.2.0)
42
54
  faraday (>= 0.8)
43
- ffi (1.13.1)
44
- formatador (0.2.5)
45
- git (1.7.0)
55
+ faraday-httpclient (1.0.1)
56
+ faraday-net_http (1.0.1)
57
+ faraday-net_http_persistent (1.2.0)
58
+ faraday-patron (1.0.0)
59
+ faraday-rack (1.0.0)
60
+ ffi (1.15.3)
61
+ formatador (0.3.0)
62
+ git (1.9.1)
46
63
  rchardet (~> 1.8)
47
- guard (2.16.2)
64
+ guard (2.18.0)
48
65
  formatador (>= 0.2.4)
49
66
  listen (>= 2.7, < 4.0)
50
67
  lumberjack (>= 1.0.12, < 2.0)
51
68
  nenv (~> 0.1)
52
69
  notiffany (~> 0.0)
53
- pry (>= 0.9.12)
70
+ pry (>= 0.13.0)
54
71
  shellany (~> 0.0)
55
72
  thor (>= 0.18.1)
56
73
  guard-compat (1.2.1)
@@ -58,14 +75,14 @@ GEM
58
75
  guard (~> 2.1)
59
76
  guard-compat (~> 1.1)
60
77
  rspec (>= 2.99.0, < 4.0)
61
- kramdown (2.3.0)
78
+ kramdown (2.3.1)
62
79
  rexml
63
80
  kramdown-parser-gfm (1.1.0)
64
81
  kramdown (~> 2.0)
65
- listen (3.2.1)
82
+ listen (3.7.0)
66
83
  rb-fsevent (~> 0.10, >= 0.10.3)
67
84
  rb-inotify (~> 0.9, >= 0.9.10)
68
- lumberjack (1.2.5)
85
+ lumberjack (1.2.8)
69
86
  method_source (1.0.0)
70
87
  multipart-post (2.1.1)
71
88
  nap (1.1.0)
@@ -74,70 +91,71 @@ GEM
74
91
  notiffany (0.1.3)
75
92
  nenv (~> 0.1)
76
93
  shellany (~> 0.0)
77
- octokit (4.18.0)
94
+ octokit (4.21.0)
78
95
  faraday (>= 0.9)
79
96
  sawyer (~> 0.8.0, >= 0.5.3)
80
97
  open4 (1.3.4)
81
- parallel (1.19.2)
82
- parser (2.7.1.4)
98
+ parallel (1.20.1)
99
+ parser (3.0.2.0)
83
100
  ast (~> 2.4.1)
84
- pry (0.13.1)
101
+ pry (0.14.1)
85
102
  coderay (~> 1.1)
86
103
  method_source (~> 1.0)
87
104
  public_suffix (4.0.6)
88
105
  rainbow (3.0.0)
89
- rake (13.0.1)
90
- rb-fsevent (0.10.4)
106
+ rake (13.0.6)
107
+ rb-fsevent (0.11.0)
91
108
  rb-inotify (0.10.1)
92
109
  ffi (~> 1.0)
93
110
  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)
111
+ regexp_parser (2.1.1)
112
+ rexml (3.2.5)
113
+ rspec (3.10.0)
114
+ rspec-core (~> 3.10.0)
115
+ rspec-expectations (~> 3.10.0)
116
+ rspec-mocks (~> 3.10.0)
117
+ rspec-core (3.10.0)
118
+ rspec-support (~> 3.10.0)
119
+ rspec-expectations (3.10.0)
103
120
  diff-lcs (>= 1.2.0, < 2.0)
104
- rspec-support (~> 3.9.0)
105
- rspec-mocks (3.9.1)
121
+ rspec-support (~> 3.10.0)
122
+ rspec-mocks (3.10.0)
106
123
  diff-lcs (>= 1.2.0, < 2.0)
107
- rspec-support (~> 3.9.0)
108
- rspec-support (3.9.3)
109
- rubocop (0.90.0)
124
+ rspec-support (~> 3.10.0)
125
+ rspec-support (3.10.0)
126
+ rubocop (1.20.0)
110
127
  parallel (~> 1.10)
111
- parser (>= 2.7.1.1)
128
+ parser (>= 3.0.0.0)
112
129
  rainbow (>= 2.2.2, < 4.0)
113
- regexp_parser (>= 1.7)
130
+ regexp_parser (>= 1.8, < 3.0)
114
131
  rexml
115
- rubocop-ast (>= 0.3.0, < 1.0)
132
+ rubocop-ast (>= 1.9.1, < 2.0)
116
133
  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)
134
+ unicode-display_width (>= 1.4.0, < 3.0)
135
+ rubocop-ast (1.11.0)
136
+ parser (>= 3.0.1.1)
137
+ ruby-progressbar (1.11.0)
138
+ ruby2_keywords (0.0.5)
121
139
  sawyer (0.8.2)
122
140
  addressable (>= 2.3.5)
123
141
  faraday (> 0.8, < 2.0)
124
142
  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)
143
+ terminal-table (3.0.1)
144
+ unicode-display_width (>= 1.1.1, < 3)
145
+ thor (1.1.0)
146
+ unicode-display_width (1.7.0)
147
+ yard (0.9.26)
130
148
 
131
149
  PLATFORMS
132
150
  ruby
133
151
 
134
152
  DEPENDENCIES
135
- bump (~> 0.9.0)
153
+ bump (~> 0.10.0)
136
154
  bundler (~> 2.0)
137
155
  danger-textlint!
138
156
  guard (~> 2.14)
139
157
  guard-rspec (~> 4.7)
140
- listen (= 3.2.1)
158
+ listen (= 3.7.0)
141
159
  pry
142
160
  rake (~> 13.0)
143
161
  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.0'
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.2".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.2
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: 2021-09-05 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.0
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.0
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.2.22
215
217
  signing_key:
216
218
  specification_version: 4
217
219
  summary: Danger plugin for textlint.