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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b218f65246896e2294424b16b33dbd4eb7ea0f1c64af7f621dc4d3abe8c8bbdb
4
- data.tar.gz: 47ee4f54f2e1f3ea334f8e99c3cc5bd57aba3e78928dca60c338e5f1bcfa7356
3
+ metadata.gz: a129b405aeec3f5908db5c3a1d408b0b038b6721390a55cd0e01bf1151d96838
4
+ data.tar.gz: c2c71cb1118d0f4a8cb49b0e22a2bb954bb65485bb6a54c7cdbb26afe6abcc01
5
5
  SHA512:
6
- metadata.gz: 63c1a4170a913ab1aa236ab70254d41a016c62ab44e48ea4ab3966d28310a2f55f89e2149cc981a593b234163d6d5abd22a22f5296a3046a47ea74e6bd60f1ee
7
- data.tar.gz: d1490539d102438500897edd881ef5ad157faf7827f5c9d23c16fef14f135062d59d6ddd47b89df2e2ad51d3de5963f59abfa38d3eb270b3e1b5922c8179ce54
6
+ metadata.gz: ab5271a2022c5b15e6dd15b65b11f241e256f25c599988a330d320ddc9ccfdeed1314f2b62c1da7c80623b5fd57bf051b76671692f35445442bdaff13fee3cc2
7
+ data.tar.gz: 2006e66eef6d1be78fa14ea042ed03cb24265602d37694fd0266873d2322cc8f2219773d134b0a7e5511bdd0bed5ace7a1f7294bd0b9987e0f91d4c2f5218c01
@@ -4,11 +4,9 @@ cache:
4
4
  - bundle
5
5
 
6
6
  rvm:
7
- - 2.1
8
- - 2.2
9
- - 2.3
10
7
  - 2.4
11
8
  - 2.5
9
+ - 2.6
12
10
 
13
11
  script:
14
12
  - bundle exec rake spec
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- danger-textlint (1.2.1)
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.5.11)
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.14.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.9.21)
41
+ ffi (1.10.0)
42
42
  formatador (0.2.5)
43
- git (1.3.0)
44
- guard (2.14.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
- kramdown (1.16.2)
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.12)
63
- method_source (0.9.0)
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.8.0)
72
+ octokit (4.13.0)
72
73
  sawyer (~> 0.8.0, >= 0.5.3)
73
74
  open4 (1.3.4)
74
- parallel (1.12.1)
75
- parser (2.4.0.2)
76
- ast (~> 2.3)
77
- powerpack (0.1.1)
78
- pry (0.11.3)
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.2)
82
+ public_suffix (3.0.3)
82
83
  rainbow (3.0.0)
83
84
  rake (10.5.0)
84
- rb-fsevent (0.10.2)
85
- rb-inotify (0.9.10)
86
- ffi (>= 0.5.0, < 2)
87
- rspec (3.7.0)
88
- rspec-core (~> 3.7.0)
89
- rspec-expectations (~> 3.7.0)
90
- rspec-mocks (~> 3.7.0)
91
- rspec-core (3.7.1)
92
- rspec-support (~> 3.7.0)
93
- rspec-expectations (3.7.0)
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.7.0)
96
- rspec-mocks (3.7.0)
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.7.0)
99
- rspec-support (3.7.1)
100
- rubocop (0.52.1)
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.4.0.2, < 3.0)
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.0, >= 1.0.1)
107
- ruby-progressbar (1.9.0)
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.0)
115
- unicode-display_width (1.3.0)
116
- yard (0.9.12)
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
@@ -1,3 +1,3 @@
1
1
  module Textlint
2
- VERSION = "1.2.1".freeze
2
+ VERSION = "1.2.2".freeze
3
3
  end
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  require "pathname"
2
- ROOT = Pathname.new(File.expand_path("../../", __FILE__))
2
+ ROOT = Pathname.new(File.expand_path("..", __dir__))
3
3
  $:.unshift((ROOT + "lib").to_s)
4
4
  $:.unshift((ROOT + "spec").to_s)
5
5
 
@@ -1,4 +1,4 @@
1
- require File.expand_path("../spec_helper", __FILE__)
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("../fixtures/textlint_result.json", __FILE__)
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.1
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: 2018-06-15 00:00:00.000000000 Z
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