fastlane-plugin-periphery 0.2.0 → 0.2.2

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: 665e3fc1b42bb943b520bb066db349712a5eee8b3403d0a8dcf1141bd056e71f
4
- data.tar.gz: a403a630b0ffbafce38bc3e7cc77164b80b00ceaf47bc1b3f7406fa484a25b72
3
+ metadata.gz: f44f0ee737a447224c5f848ad420b193d83736dd85047b012402687108bcbb2d
4
+ data.tar.gz: 7f3ef30a98b1856c3e938d836195d2620bfba3e11df6d5b026213faac914a0ad
5
5
  SHA512:
6
- metadata.gz: 20da33d09402a2c4e8e0d3ca7bae5c1f451bf6bd9807037652309e54a90d65e136e9134fd256367b295a5dc7264d110a0c0898af29200a7ee315aa263a623409
7
- data.tar.gz: c33ab9eabf3e0c1dc45857c9855b02c6ceec50d7559f643980537de0d863273855b4ed5ae946c81ac3d4f9fc0b651f30bb77140d7ab0512ddfc9efa1d9dac958
6
+ metadata.gz: 76f625ab6be1c07c1fdaa30f57054ba56d4841c65409e8ac42c389edbe37c4b1316b6607044ab9dc5aed3a91fb96bb0b37316171b230db004f45bb5387389e4d
7
+ data.tar.gz: 514007cc0289e47e0529c54ba7fb2ab54858387ed8539e1a7822f15c756e2e79fff79e068ae7e6d56f80199d0c15b38abd507f806ef7010baedf26ac4590571a
@@ -24,6 +24,19 @@ module Fastlane
24
24
  end
25
25
  end
26
26
 
27
+ # fastlane dumps the 'Lane Context' when an action fails
28
+ # Because the results array can contain thousands of items,
29
+ # we don't want to dump them all in the console.
30
+ # Instead, use a custom array which limits the output
31
+ #
32
+ # https://github.com/liamnichols/fastlane-plugin-periphery/issues/2
33
+ class Results < Array
34
+ def to_s
35
+ return super.to_s if length < 2
36
+ "[#{first.inspect}, ...] (#{length} items)"
37
+ end
38
+ end
39
+
27
40
  class Runner
28
41
  attr_reader :executable, :config, :skip_build, :index_store_path, :results
29
42
 
@@ -67,7 +80,7 @@ module Fastlane
67
80
  })
68
81
 
69
82
  # Decode the JSON output and assign to the property/lane_context
70
- @results = JSON.parse(output).map { |raw| Result.new(raw) }
83
+ @results = Results.new(JSON.parse(output).map { |raw| Result.new(raw) })
71
84
  Actions.lane_context[SharedValues::PERIPHERY_RESULTS] = results
72
85
  end
73
86
 
@@ -77,6 +90,7 @@ module Fastlane
77
90
  executable,
78
91
  'scan',
79
92
  '--disable-update-check',
93
+ '--quiet',
80
94
  '--format',
81
95
  'json'
82
96
  ]
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Periphery
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-periphery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liam Nichols
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-27 00:00:00.000000000 Z
11
+ date: 2024-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -147,7 +147,7 @@ files:
147
147
  - lib/fastlane/plugin/periphery.rb
148
148
  - lib/fastlane/plugin/periphery/actions/periphery_action.rb
149
149
  - lib/fastlane/plugin/periphery/version.rb
150
- homepage:
150
+ homepage: https://github.com/liamnichols/fastlane-plugin-periphery
151
151
  licenses:
152
152
  - MIT
153
153
  metadata: {}
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  requirements: []
169
- rubygems_version: 3.2.22
169
+ rubygems_version: 3.3.26
170
170
  signing_key:
171
171
  specification_version: 4
172
172
  summary: Identifies unused code in Swift projects using Periphery