danger-textlint 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/textlint/gem_version.rb +1 -1
- data/lib/textlint/plugin.rb +9 -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: e2382053d93e9c0e1eed4097159796a353a3bd9276fa9a44e4d2d407712e6045
|
4
|
+
data.tar.gz: 8d9bbb9847bdb36c5adda08c680deb2eaf48c9a64886a834bb1fed0ee33b207a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19e222aa434bd619b2362c147607ffd6cbd84ca4485358596eba26df6e7331e1f232a8109b800b8931cefa8a7ed79987e6c5e04cf85827fb52fa21bfa0db9698
|
7
|
+
data.tar.gz: 4a34ed18e8280a83de8b755b1ace97cf5ee9fff674f9e2cd8f059ac88dea0341482b5f98755efec0bcd5bc59a69768704b4fbf11eb12905b3560c3662d232e20
|
data/Gemfile.lock
CHANGED
data/lib/textlint/gem_version.rb
CHANGED
data/lib/textlint/plugin.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require "mkmf"
|
1
|
+
# require "mkmf"
|
2
2
|
require "json"
|
3
3
|
|
4
4
|
module Danger
|
@@ -40,7 +40,14 @@ module Danger
|
|
40
40
|
|
41
41
|
def textlint_path
|
42
42
|
local = "./node_modules/.bin/textlint"
|
43
|
-
|
43
|
+
|
44
|
+
# NOTE: Danger using method_missing hack for parse 'warn', 'fail' in Dangerfile.
|
45
|
+
# Same issue will occur 'message' when require 'mkmf'. Because 'mkmf' provide 'message' method.
|
46
|
+
# Then, disable find executable textlint until danger fix this issue.
|
47
|
+
|
48
|
+
# File.exist?(local) ? local : find_executable("textlint")
|
49
|
+
raise "textlint not found in ./node_modules/.bin/textlint" unless File.exist?(local)
|
50
|
+
local
|
44
51
|
end
|
45
52
|
|
46
53
|
def textlint_command(bin, target_files)
|
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.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kesin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger-plugin-api
|