danger-swiftlint 0.1.0 → 0.1.1
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 +4 -4
- data/Changelog.md +4 -0
- data/Gemfile.lock +2 -2
- data/lib/danger_plugin.rb +2 -2
- data/lib/version.rb +1 -1
- data/spec/danger_plugin_spec.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87e9b7b9fa76a4c5eefb696e8c740412649a911b
|
4
|
+
data.tar.gz: 07912282f4773d83c09174486559228ed23fa3e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f165ce986edb988dbae14b66df46e50753cc02e27c212046820995b4744d0f18c360bcaa31c88706985ce07c681af81f0665f712732f5c9c120cf2b5e46f8c3
|
7
|
+
data.tar.gz: 2c7168c8c3aa3ac5e088ec93c1d4b526cf00d5259ff2d278f8d7768bc820aecfbf3e23babb1c785412e4fe7e979db3709c61fbf9374c022c71f77c7c13007ca6
|
data/Changelog.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
danger-swiftlint (0.0
|
4
|
+
danger-swiftlint (0.1.0)
|
5
5
|
danger
|
6
6
|
|
7
7
|
GEM
|
@@ -14,7 +14,7 @@ GEM
|
|
14
14
|
colored (1.2)
|
15
15
|
cork (0.1.0)
|
16
16
|
colored (~> 1.2)
|
17
|
-
danger (0.8.
|
17
|
+
danger (0.8.4)
|
18
18
|
claide (~> 1.0)
|
19
19
|
colored (~> 1.2)
|
20
20
|
cork (~> 0.1)
|
data/lib/danger_plugin.rb
CHANGED
@@ -75,8 +75,8 @@ module Danger
|
|
75
75
|
def parse_results (results, heading)
|
76
76
|
message = "#### #{heading}\n\n"
|
77
77
|
|
78
|
-
message <<
|
79
|
-
message <<
|
78
|
+
message << "File | Line | Reason |\n"
|
79
|
+
message << "| --- | ----- | ----- |\n"
|
80
80
|
|
81
81
|
results.each do |r|
|
82
82
|
filename = r['file'].split('/').last
|
data/lib/version.rb
CHANGED
data/spec/danger_plugin_spec.rb
CHANGED
@@ -50,10 +50,11 @@ module Danger
|
|
50
50
|
end
|
51
51
|
|
52
52
|
it 'handles no files' do
|
53
|
-
allow(@swiftlint).to receive(:modified_files).and_return('spec/fixtures/SwiftFile.swift')
|
53
|
+
allow(@swiftlint).to receive(:modified_files).and_return(['spec/fixtures/SwiftFile.swift'])
|
54
|
+
allow(@swiftlint).to receive(:added_files).and_return([])
|
54
55
|
allow(@swiftlint).to receive(:`).with('swiftlint lint --quiet --reporter json --path spec/fixtures/SwiftFile.swift').and_return(@swiftlint_response)
|
55
56
|
|
56
|
-
@swiftlint.lint_files
|
57
|
+
@swiftlint.lint_files
|
57
58
|
|
58
59
|
expect(@swiftlint.status_report[:markdowns].first).to_not be_empty
|
59
60
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger-swiftlint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ash Furrow
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-07-
|
13
|
+
date: 2016-07-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: danger
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
170
|
rubyforge_project:
|
171
|
-
rubygems_version: 2.
|
171
|
+
rubygems_version: 2.4.8
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: A Danger plugin for linting Swift with SwiftLint.
|