danger-swiftformat 0.3.3 → 0.3.4

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
- SHA1:
3
- metadata.gz: c883fb1525099b15cb72efdb7ece5d79d2986f75
4
- data.tar.gz: 33cbd9e67768de23493354a21b7477e8b693302a
2
+ SHA256:
3
+ metadata.gz: 10ad44715ca49e7622129d680ccd2ab6a9b5d2a37dc8d8c58e75e0dba9d8bb36
4
+ data.tar.gz: 8460b6d76d43ea3afa66c46cbc175d6448b940c42a533c58cfd56be6fc51695a
5
5
  SHA512:
6
- metadata.gz: 3c6baa938a850d919fcb12fe3d6bb1c9e8d4bc00e4cb60cba7c9b8991f640b388a845ea5b7114759cc7caae7f2bb481f2d22853ea6745b1a2ee161446a7434f3
7
- data.tar.gz: 77e5f98236a4077353d37f85be62c3fba6235e77d256eebe06005c82888c551052b5ad9bbf20b207b68c608e1a9ffa245f748df77cc98a32f4266af073b30ef2
6
+ metadata.gz: fb1232de8dd1d26985a54f0e3858d434fb440d5d979c538293866db01fe1fc499391d789eefeff390227d8a63d5de391952b1b0885b97d4f5d36f77ea18b9129
7
+ data.tar.gz: 92dafae8fe336639ab399dd5599e87ed53cee8e4aad19c9104ab35da2c94e47930b31f8742d8e4d86a84756a2705d955fef9778d792fb2faf0ce892761fd3d6e
data/Gemfile.lock CHANGED
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- danger-swiftformat (0.3.3)
4
+ danger-swiftformat (0.3.4)
5
+ colorize (~> 0.7.7)
5
6
  danger-plugin-api (~> 1.0)
6
7
 
7
8
  GEM
@@ -17,9 +18,10 @@ GEM
17
18
  open4 (~> 1.3)
18
19
  coderay (1.1.2)
19
20
  colored2 (3.1.2)
21
+ colorize (0.7.7)
20
22
  cork (0.3.0)
21
23
  colored2 (~> 3.1)
22
- danger (5.5.7)
24
+ danger (5.6.4)
23
25
  claide (~> 1.0)
24
26
  claide-plugins (>= 0.9.2)
25
27
  colored2 (~> 3.1)
@@ -34,13 +36,13 @@ GEM
34
36
  danger-plugin-api (1.0.0)
35
37
  danger (> 2.0)
36
38
  diff-lcs (1.3)
37
- faraday (0.14.0)
39
+ faraday (0.15.2)
38
40
  multipart-post (>= 1.2, < 3)
39
41
  faraday-http-cache (1.3.1)
40
42
  faraday (~> 0.8)
41
43
  ffi (1.9.18)
42
44
  formatador (0.2.5)
43
- git (1.3.0)
45
+ git (1.5.0)
44
46
  guard (2.14.1)
45
47
  formatador (>= 0.2.4)
46
48
  listen (>= 2.7, < 4.0)
@@ -55,7 +57,7 @@ GEM
55
57
  guard (~> 2.1)
56
58
  guard-compat (~> 1.1)
57
59
  rspec (>= 2.99.0, < 4.0)
58
- kramdown (1.16.2)
60
+ kramdown (1.17.0)
59
61
  listen (3.1.5)
60
62
  rb-fsevent (~> 0.9, >= 0.9.4)
61
63
  rb-inotify (~> 0.9, >= 0.9.7)
@@ -69,7 +71,7 @@ GEM
69
71
  notiffany (0.1.1)
70
72
  nenv (~> 0.1)
71
73
  shellany (~> 0.0)
72
- octokit (4.8.0)
74
+ octokit (4.10.0)
73
75
  sawyer (~> 0.8.0, >= 0.5.3)
74
76
  open4 (1.3.4)
75
77
  parallel (1.12.1)
@@ -79,7 +81,7 @@ GEM
79
81
  pry (0.11.3)
80
82
  coderay (~> 1.1.0)
81
83
  method_source (~> 0.9.0)
82
- public_suffix (3.0.2)
84
+ public_suffix (3.0.3)
83
85
  rainbow (3.0.0)
84
86
  rake (12.3.0)
85
87
  rb-fsevent (0.10.2)
@@ -133,4 +135,4 @@ DEPENDENCIES
133
135
  yard (~> 0.9)
134
136
 
135
137
  BUNDLED WITH
136
- 1.16.3
138
+ 1.16.4
@@ -20,6 +20,8 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_runtime_dependency 'danger-plugin-api', '~> 1.0'
22
22
 
23
+ spec.add_runtime_dependency 'colorize', '~> 0.7.7'
24
+
23
25
  # General ruby development
24
26
  spec.add_development_dependency 'bundler', '~> 1.16'
25
27
  spec.add_development_dependency 'rake', '~> 12.3'
@@ -1,3 +1,4 @@
1
+ require "colorize"
1
2
  require "shellwords"
2
3
 
3
4
  module Danger
@@ -5,7 +6,7 @@ module Danger
5
6
  def self.run(cmd)
6
7
  stdout, _stderr, _status = Open3.capture3(cmd.shelljoin)
7
8
 
8
- stdout.strip
9
+ stdout.strip.uncolorize
9
10
  end
10
11
  end
11
12
  end
@@ -1,3 +1,3 @@
1
1
  module Swiftformat
2
- VERSION = "0.3.3".freeze
2
+ VERSION = "0.3.4".freeze
3
3
  end
@@ -46,7 +46,7 @@ module Danger
46
46
  message << "| File | Rules |\n"
47
47
  message << "| ---- | ----- |\n"
48
48
  results[:errors].each do |error|
49
- message << "| #{error[:file]} | #{error[:rules].join(', ')} |\n"
49
+ message << "| #{error[:file].gsub(Dir.pwd + '/', '')} | #{error[:rules].join(', ')} |\n"
50
50
  end
51
51
  markdown message
52
52
 
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.3
4
+ version: 0.3.4
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-07-20 00:00:00.000000000 Z
11
+ date: 2018-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger-plugin-api
@@ -24,6 +24,20 @@ 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.7.7
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.7.7
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -199,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
213
  version: '0'
200
214
  requirements: []
201
215
  rubyforge_project:
202
- rubygems_version: 2.6.13
216
+ rubygems_version: 2.7.6
203
217
  signing_key:
204
218
  specification_version: 4
205
219
  summary: A danger plugin for checking Swift formatting using SwiftFormat.