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: 612d5a07ca39e3f94f0243cdf1c0b2309dbb22c78ee8151f52a3e4b23e7b3e2e
4
- data.tar.gz: 0a5c7b2fb73f44ca9689ed62c638ca9667d5de915044fdb2233d41a46aab38da
3
+ metadata.gz: d4a06e2f1e729984331cd8989cace0ebfc550bc00e7ae88fdcca0c328270db37
4
+ data.tar.gz: 3cfefdcc4c1938f4c96f7dd0a07f3bbd8e89dc52ea4b4e3a96dca22d5ccf709b
5
5
  SHA512:
6
- metadata.gz: 07b62eda3776ff9e9a13022e50941ab970493f1b9bb4b05505539db9f3cb32902f1b77ea28c8c91b4889d5b0519334b71c9a0af34579e01471399fdb203afba3
7
- data.tar.gz: 2f3d85a5b14d41e56869a4bc08b541e86e857d72a8470f04b4bd4714c31843ece6e0333b89fc35feee46c840ec42188b879f43fd976f7d55f10d86b1f21ca3b9
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
- lizard_cli_version = Gem::Version.new(`lizard --version`.scan(/(?:\d+\.?){3}/).first)
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 #{Fastlane::Lizard::CLI_VERSION} and start your lane again!")
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("lizard #{params[:source_folder]} | sed -n -e '/^$/,$p'", print_command: true, print_command_output: true)
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 << 'lizard' unless params[:executable]
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
@@ -1,6 +1,6 @@
1
1
  module Fastlane
2
2
  module Lizard
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  CLI_VERSION = "1.14.10"
5
5
  end
6
6
  end
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.0
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-03-28 00:00:00.000000000 Z
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: []