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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7945da2a2b7232307fd2f4d78fd9c1831231a7fcca7505e8ea4117c64ba36b09
4
- data.tar.gz: 1bbab3588bc435e9124b997d4fc6ecc82967cd2daa2d9c1db7bfda69074c5485
3
+ metadata.gz: c019348c6586dcccab4aabbff014fa92dec4df2f565d26e74a96f9367bfe7811
4
+ data.tar.gz: 6050777f756457b86ee678234ce240c6c2384b56bb6274f3ba16e114b38f17b2
5
5
  SHA512:
6
- metadata.gz: 6c6f869836be76cac8e486638e8c3798064d9687e05eddf680ce12fd98760a9eee4bb885799b58b84dd9632ffee009c514578d562ddef5fab0f8d99d8e6b9329
7
- data.tar.gz: 2cf9383c45d98d24427fdad8755d9d13217aab57b266b75140769eeb55fc1a4e06beef694bb6beb3ff62a6e0c1698ac7e3cc2978619be6152c671cfa62d70b98
6
+ metadata.gz: 224c878701f4aacb85f89c6cc91bb8212b8bd1abe415afa20cb4a044b4f41d55f0a8d556a363ed05b5177b9ed1244f0fbad7d8c8b42ed7fcdc45a07d53cf12fe
7
+ data.tar.gz: 25e5e1b98d1c1aac2a275ea038a75317e0383c72c009259c89e0f45c573f8c0a95f83004c9982bdffea5de2b1f2abeaddfb0dab402c426988b517e07c5eeee1f
@@ -1,8 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- danger-swiftformat (0.3.5)
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.4)
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.11.0)
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.58.2)
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)
@@ -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'
@@ -1,4 +1,4 @@
1
- require "colorize"
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.uncolorize
9
+ stdout.strip.no_color
10
10
  end
11
11
  end
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module Swiftformat
2
- VERSION = "0.3.5".freeze
2
+ VERSION = "0.3.6".freeze
3
3
  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.5
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-03 00:00:00.000000000 Z
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