fastlane-plugin-lizard 1.1.0 → 1.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4a06e2f1e729984331cd8989cace0ebfc550bc00e7ae88fdcca0c328270db37
|
4
|
+
data.tar.gz: 3cfefdcc4c1938f4c96f7dd0a07f3bbd8e89dc52ea4b4e3a96dca22d5ccf709b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf1aa7bb8de212ac961c5e4800b2d1ee7daa23f13484538023284ef111f4dd0f7adb2b402f8a871079f79e1e1b7ba13f8f6553b69725378c3769176dd66fe2f9
|
7
|
+
data.tar.gz: 112dfa9b00331a16154a0dd63353446a3c934f75f110d947a396664bff8527f00e98000e93d14739a7e270b04799d30e4c05eb44a4dbad14bef108608c00f048
|
@@ -10,16 +10,18 @@ module Fastlane
|
|
10
10
|
UI.user_error!("The custom executable at '#{params[:executable]}' does not exist.")
|
11
11
|
end
|
12
12
|
|
13
|
-
|
13
|
+
lizard_command = params[:executable].nil? ? "lizard" : "python #{params[:executable]}"
|
14
|
+
|
15
|
+
lizard_cli_version = Gem::Version.new(`#{lizard_command} --version 2>&1`.strip.scan(/(?:\d+\.?){3}/).first)
|
14
16
|
required_version = Gem::Version.new(Fastlane::Lizard::CLI_VERSION)
|
15
17
|
if lizard_cli_version < required_version
|
16
|
-
UI.user_error!("Your lizard version is outdated, please upgrade to at least version #{
|
18
|
+
UI.user_error!("Your lizard version #{lizard_cli_version} is outdated, please upgrade to at least version #{required_version} and start your lane again!")
|
17
19
|
end
|
18
20
|
|
19
|
-
command = forming_command(params)
|
21
|
+
command = forming_command(lizard_command, params)
|
20
22
|
|
21
23
|
if params[:show_warnings]
|
22
|
-
Fastlane::Actions.sh_control_output("
|
24
|
+
Fastlane::Actions.sh_control_output("#{lizard_command} #{params[:source_folder]} | sed -n -e '/^$/,$p'", print_command: true, print_command_output: true)
|
23
25
|
end
|
24
26
|
|
25
27
|
begin
|
@@ -30,10 +32,9 @@ module Fastlane
|
|
30
32
|
end
|
31
33
|
end
|
32
34
|
|
33
|
-
def self.forming_command(params)
|
35
|
+
def self.forming_command(lizard_command, params)
|
34
36
|
command = []
|
35
|
-
command <<
|
36
|
-
command << "python #{params[:executable]}" if params[:executable]
|
37
|
+
command << lizard_command
|
37
38
|
command << params[:language].split(",").map { |l| "-l #{l.strip}" }.join(" ") if params[:language]
|
38
39
|
command << "--#{params[:export_type]}" if params[:export_type]
|
39
40
|
command << "-C #{params[:ccn]}" if params[:ccn] # stands for cyclomatic complexity number
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-lizard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Moses Liao
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,76 +52,6 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rake
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rspec
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rspec_junit_formatter
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rubocop
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: simplecov
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :runtime
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
55
|
description:
|
126
56
|
email: moses.liao.sd@gmail.com
|
127
57
|
executables: []
|