fastlane-plugin-periphery 0.2.0 → 0.2.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: 665e3fc1b42bb943b520bb066db349712a5eee8b3403d0a8dcf1141bd056e71f
4
- data.tar.gz: a403a630b0ffbafce38bc3e7cc77164b80b00ceaf47bc1b3f7406fa484a25b72
3
+ metadata.gz: bf7b105c16ddb2ea866aba9dceff585dcb50d834cad2db9314a8226db239aa9d
4
+ data.tar.gz: d3b4305ab70bf7a0708238e40d1c2e21a68798f7e347b83a4046d22c9c68cd21
5
5
  SHA512:
6
- metadata.gz: 20da33d09402a2c4e8e0d3ca7bae5c1f451bf6bd9807037652309e54a90d65e136e9134fd256367b295a5dc7264d110a0c0898af29200a7ee315aa263a623409
7
- data.tar.gz: c33ab9eabf3e0c1dc45857c9855b02c6ceec50d7559f643980537de0d863273855b4ed5ae946c81ac3d4f9fc0b651f30bb77140d7ab0512ddfc9efa1d9dac958
6
+ metadata.gz: a72c8043a2a579951ce7f38a26134109064e615e82c18dd202a75acf0b675b046de9afcb36aa4be7314253560fa75d40918a0c7d5c5e498e8946339adcd520a1
7
+ data.tar.gz: 9a73a859207c08c03b53f758cb118a9ca3f67d07166f3972398d1f43c62a164e6d80eb0c7c597f4fcdb1c0aa073a9468c3902fb75af4304188e384b91cfe2a87
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Periphery
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
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.1
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: 2023-05-03 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: {}