danger-textlint 1.2.1 → 1.2.2
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 +4 -4
- data/.travis.yml +1 -3
- data/Gemfile.lock +40 -38
- data/lib/textlint/gem_version.rb +1 -1
- data/lib/textlint/plugin.rb +2 -0
- data/spec/spec_helper.rb +1 -1
- data/spec/textlint_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a129b405aeec3f5908db5c3a1d408b0b038b6721390a55cd0e01bf1151d96838
|
4
|
+
data.tar.gz: c2c71cb1118d0f4a8cb49b0e22a2bb954bb65485bb6a54c7cdbb26afe6abcc01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab5271a2022c5b15e6dd15b65b11f241e256f25c599988a330d320ddc9ccfdeed1314f2b62c1da7c80623b5fd57bf051b76671692f35445442bdaff13fee3cc2
|
7
|
+
data.tar.gz: 2006e66eef6d1be78fa14ea042ed03cb24265602d37694fd0266873d2322cc8f2219773d134b0a7e5511bdd0bed5ace7a1f7294bd0b9987e0f91d4c2f5218c01
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
danger-textlint (1.2.
|
4
|
+
danger-textlint (1.2.2)
|
5
5
|
danger-plugin-api (~> 1.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -19,14 +19,14 @@ GEM
|
|
19
19
|
colored2 (3.1.2)
|
20
20
|
cork (0.3.0)
|
21
21
|
colored2 (~> 3.1)
|
22
|
-
danger (5.
|
22
|
+
danger (5.14.0)
|
23
23
|
claide (~> 1.0)
|
24
24
|
claide-plugins (>= 0.9.2)
|
25
25
|
colored2 (~> 3.1)
|
26
26
|
cork (~> 0.1)
|
27
27
|
faraday (~> 0.9)
|
28
28
|
faraday-http-cache (~> 1.0)
|
29
|
-
git (~> 1)
|
29
|
+
git (~> 1.5)
|
30
30
|
kramdown (~> 1.5)
|
31
31
|
no_proxy_fix
|
32
32
|
octokit (~> 4.7)
|
@@ -34,14 +34,14 @@ GEM
|
|
34
34
|
danger-plugin-api (1.0.0)
|
35
35
|
danger (> 2.0)
|
36
36
|
diff-lcs (1.3)
|
37
|
-
faraday (0.
|
37
|
+
faraday (0.15.4)
|
38
38
|
multipart-post (>= 1.2, < 3)
|
39
39
|
faraday-http-cache (1.3.1)
|
40
40
|
faraday (~> 0.8)
|
41
|
-
ffi (1.
|
41
|
+
ffi (1.10.0)
|
42
42
|
formatador (0.2.5)
|
43
|
-
git (1.
|
44
|
-
guard (2.
|
43
|
+
git (1.5.0)
|
44
|
+
guard (2.15.0)
|
45
45
|
formatador (>= 0.2.4)
|
46
46
|
listen (>= 2.7, < 4.0)
|
47
47
|
lumberjack (>= 1.0.12, < 2.0)
|
@@ -55,12 +55,13 @@ GEM
|
|
55
55
|
guard (~> 2.1)
|
56
56
|
guard-compat (~> 1.1)
|
57
57
|
rspec (>= 2.99.0, < 4.0)
|
58
|
-
|
58
|
+
jaro_winkler (1.5.2)
|
59
|
+
kramdown (1.17.0)
|
59
60
|
listen (3.0.7)
|
60
61
|
rb-fsevent (>= 0.9.3)
|
61
62
|
rb-inotify (>= 0.9.7)
|
62
|
-
lumberjack (1.0.
|
63
|
-
method_source (0.9.
|
63
|
+
lumberjack (1.0.13)
|
64
|
+
method_source (0.9.2)
|
64
65
|
multipart-post (2.0.0)
|
65
66
|
nap (1.1.0)
|
66
67
|
nenv (0.3.0)
|
@@ -68,52 +69,53 @@ GEM
|
|
68
69
|
notiffany (0.1.1)
|
69
70
|
nenv (~> 0.1)
|
70
71
|
shellany (~> 0.0)
|
71
|
-
octokit (4.
|
72
|
+
octokit (4.13.0)
|
72
73
|
sawyer (~> 0.8.0, >= 0.5.3)
|
73
74
|
open4 (1.3.4)
|
74
|
-
parallel (1.
|
75
|
-
parser (2.
|
76
|
-
ast (~> 2.
|
77
|
-
powerpack (0.1.
|
78
|
-
pry (0.
|
75
|
+
parallel (1.13.0)
|
76
|
+
parser (2.6.0.0)
|
77
|
+
ast (~> 2.4.0)
|
78
|
+
powerpack (0.1.2)
|
79
|
+
pry (0.12.2)
|
79
80
|
coderay (~> 1.1.0)
|
80
81
|
method_source (~> 0.9.0)
|
81
|
-
public_suffix (3.0.
|
82
|
+
public_suffix (3.0.3)
|
82
83
|
rainbow (3.0.0)
|
83
84
|
rake (10.5.0)
|
84
|
-
rb-fsevent (0.10.
|
85
|
-
rb-inotify (0.
|
86
|
-
ffi (
|
87
|
-
rspec (3.
|
88
|
-
rspec-core (~> 3.
|
89
|
-
rspec-expectations (~> 3.
|
90
|
-
rspec-mocks (~> 3.
|
91
|
-
rspec-core (3.
|
92
|
-
rspec-support (~> 3.
|
93
|
-
rspec-expectations (3.
|
85
|
+
rb-fsevent (0.10.3)
|
86
|
+
rb-inotify (0.10.0)
|
87
|
+
ffi (~> 1.0)
|
88
|
+
rspec (3.8.0)
|
89
|
+
rspec-core (~> 3.8.0)
|
90
|
+
rspec-expectations (~> 3.8.0)
|
91
|
+
rspec-mocks (~> 3.8.0)
|
92
|
+
rspec-core (3.8.0)
|
93
|
+
rspec-support (~> 3.8.0)
|
94
|
+
rspec-expectations (3.8.2)
|
94
95
|
diff-lcs (>= 1.2.0, < 2.0)
|
95
|
-
rspec-support (~> 3.
|
96
|
-
rspec-mocks (3.
|
96
|
+
rspec-support (~> 3.8.0)
|
97
|
+
rspec-mocks (3.8.0)
|
97
98
|
diff-lcs (>= 1.2.0, < 2.0)
|
98
|
-
rspec-support (~> 3.
|
99
|
-
rspec-support (3.
|
100
|
-
rubocop (0.
|
99
|
+
rspec-support (~> 3.8.0)
|
100
|
+
rspec-support (3.8.0)
|
101
|
+
rubocop (0.64.0)
|
102
|
+
jaro_winkler (~> 1.5.1)
|
101
103
|
parallel (~> 1.10)
|
102
|
-
parser (>= 2.
|
104
|
+
parser (>= 2.5, != 2.5.1.1)
|
103
105
|
powerpack (~> 0.1)
|
104
106
|
rainbow (>= 2.2.2, < 4.0)
|
105
107
|
ruby-progressbar (~> 1.7)
|
106
|
-
unicode-display_width (~> 1.
|
107
|
-
ruby-progressbar (1.
|
108
|
+
unicode-display_width (~> 1.4.0)
|
109
|
+
ruby-progressbar (1.10.0)
|
108
110
|
sawyer (0.8.1)
|
109
111
|
addressable (>= 2.3.5, < 2.6)
|
110
112
|
faraday (~> 0.8, < 1.0)
|
111
113
|
shellany (0.0.1)
|
112
114
|
terminal-table (1.8.0)
|
113
115
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
114
|
-
thor (0.20.
|
115
|
-
unicode-display_width (1.
|
116
|
-
yard (0.9.
|
116
|
+
thor (0.20.3)
|
117
|
+
unicode-display_width (1.4.1)
|
118
|
+
yard (0.9.18)
|
117
119
|
|
118
120
|
PLATFORMS
|
119
121
|
ruby
|
data/lib/textlint/gem_version.rb
CHANGED
data/lib/textlint/plugin.rb
CHANGED
@@ -41,6 +41,7 @@ module Danger
|
|
41
41
|
# @return [void]
|
42
42
|
def lint
|
43
43
|
return if target_files.empty?
|
44
|
+
|
44
45
|
bin = textlint_path
|
45
46
|
result_json = run_textlint(bin, target_files)
|
46
47
|
errors = parse(result_json)
|
@@ -58,6 +59,7 @@ module Danger
|
|
58
59
|
|
59
60
|
# File.exist?(local) ? local : find_executable("textlint")
|
60
61
|
raise "textlint not found in ./node_modules/.bin/textlint" unless File.exist?(local)
|
62
|
+
|
61
63
|
local
|
62
64
|
end
|
63
65
|
|
data/spec/spec_helper.rb
CHANGED
data/spec/textlint_spec.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require File.expand_path("
|
1
|
+
require File.expand_path("spec_helper", __dir__)
|
2
2
|
|
3
3
|
module Danger
|
4
4
|
describe "with Dangerfile" do
|
@@ -15,7 +15,7 @@ module Danger
|
|
15
15
|
end
|
16
16
|
|
17
17
|
let(:fixture) do
|
18
|
-
fixture_path = File.expand_path("
|
18
|
+
fixture_path = File.expand_path("fixtures/textlint_result.json", __dir__)
|
19
19
|
File.read(fixture_path)
|
20
20
|
end
|
21
21
|
|
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: 1.2.
|
4
|
+
version: 1.2.2
|
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: 2019-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger-plugin-api
|