danger-swiftformat 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -7
- data/danger-swiftformat.gemspec +0 -1
- data/lib/swiftformat/cmd.rb +2 -2
- data/lib/swiftformat/gem_version.rb +1 -1
- data/lib/swiftformat/swiftformat.rb +2 -0
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c019348c6586dcccab4aabbff014fa92dec4df2f565d26e74a96f9367bfe7811
|
4
|
+
data.tar.gz: 6050777f756457b86ee678234ce240c6c2384b56bb6274f3ba16e114b38f17b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 224c878701f4aacb85f89c6cc91bb8212b8bd1abe415afa20cb4a044b4f41d55f0a8d556a363ed05b5177b9ed1244f0fbad7d8c8b42ed7fcdc45a07d53cf12fe
|
7
|
+
data.tar.gz: 25e5e1b98d1c1aac2a275ea038a75317e0383c72c009259c89e0f45c573f8c0a95f83004c9982bdffea5de2b1f2abeaddfb0dab402c426988b517e07c5eeee1f
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
danger-swiftformat (0.3.
|
5
|
-
colorize (~> 0.8.1)
|
4
|
+
danger-swiftformat (0.3.6)
|
6
5
|
danger-plugin-api (~> 1.0)
|
7
6
|
|
8
7
|
GEM
|
@@ -18,17 +17,16 @@ GEM
|
|
18
17
|
open4 (~> 1.3)
|
19
18
|
coderay (1.1.2)
|
20
19
|
colored2 (3.1.2)
|
21
|
-
colorize (0.8.1)
|
22
20
|
cork (0.3.0)
|
23
21
|
colored2 (~> 3.1)
|
24
|
-
danger (5.6.
|
22
|
+
danger (5.6.6)
|
25
23
|
claide (~> 1.0)
|
26
24
|
claide-plugins (>= 0.9.2)
|
27
25
|
colored2 (~> 3.1)
|
28
26
|
cork (~> 0.1)
|
29
27
|
faraday (~> 0.9)
|
30
28
|
faraday-http-cache (~> 1.0)
|
31
|
-
git (~> 1)
|
29
|
+
git (~> 1.5)
|
32
30
|
kramdown (~> 1.5)
|
33
31
|
no_proxy_fix
|
34
32
|
octokit (~> 4.7)
|
@@ -72,7 +70,7 @@ GEM
|
|
72
70
|
notiffany (0.1.1)
|
73
71
|
nenv (~> 0.1)
|
74
72
|
shellany (~> 0.0)
|
75
|
-
octokit (4.
|
73
|
+
octokit (4.12.0)
|
76
74
|
sawyer (~> 0.8.0, >= 0.5.3)
|
77
75
|
open4 (1.3.4)
|
78
76
|
parallel (1.12.1)
|
@@ -101,7 +99,7 @@ GEM
|
|
101
99
|
diff-lcs (>= 1.2.0, < 2.0)
|
102
100
|
rspec-support (~> 3.8.0)
|
103
101
|
rspec-support (3.8.0)
|
104
|
-
rubocop (0.
|
102
|
+
rubocop (0.59.0)
|
105
103
|
jaro_winkler (~> 1.5.1)
|
106
104
|
parallel (~> 1.10)
|
107
105
|
parser (>= 2.5, != 2.5.1.1)
|
data/danger-swiftformat.gemspec
CHANGED
@@ -19,7 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
21
|
spec.add_runtime_dependency 'danger-plugin-api', '~> 1.0'
|
22
|
-
spec.add_runtime_dependency 'colorize', '~> 0.8.1'
|
23
22
|
|
24
23
|
# General ruby development
|
25
24
|
spec.add_development_dependency 'bundler', '~> 1.16'
|
data/lib/swiftformat/cmd.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require "
|
1
|
+
require "colored2"
|
2
2
|
require "shellwords"
|
3
3
|
|
4
4
|
module Danger
|
@@ -6,7 +6,7 @@ module Danger
|
|
6
6
|
def self.run(cmd)
|
7
7
|
stdout, _stderr, _status = Open3.capture3(cmd.shelljoin)
|
8
8
|
|
9
|
-
stdout.strip.
|
9
|
+
stdout.strip.no_color
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
@@ -16,6 +16,7 @@ module Danger
|
|
16
16
|
cmd << %w(--dryrun --verbose)
|
17
17
|
output = Cmd.run(cmd.flatten)
|
18
18
|
raise "error running swiftformat: empty output" if output.empty?
|
19
|
+
|
19
20
|
process(output)
|
20
21
|
end
|
21
22
|
|
@@ -36,6 +37,7 @@ module Danger
|
|
36
37
|
errors = []
|
37
38
|
output.scan(ERRORS_REGEX) do |match|
|
38
39
|
next if match.count < 2
|
40
|
+
|
39
41
|
errors << {
|
40
42
|
file: match[1],
|
41
43
|
rules: match[0].split(",").map(&:strip)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger-swiftformat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vincent Garrigues
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: danger-plugin-api
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: colorize
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.8.1
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.8.1
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: bundler
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|