fastlane-plugin-snapshot_test 0.2.7 → 0.2.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6647d93deb6cfc73de0ecfe55dce302428f1106a824f4fe0b024acc77eda446f
4
- data.tar.gz: 59a329c4f54acdf8bb52621148dd0feb5cd5a1088a9342bd71eb70bd66fd78fe
3
+ metadata.gz: 2c05b3cc9f0d681b8e5ac9d13982dca4e3f0f4227a44be5a6b21d532c32412cb
4
+ data.tar.gz: 988a8014c34e4624161b781c3c2fe9e054d5378404519a8378223a9ab762c316
5
5
  SHA512:
6
- metadata.gz: 61962a883cb34ffdfb6c34813999b534891198f47557e6d1d763e0ddee28a7de16ac69a93400ddb17aaa176472eac8508bbcb88adc7d804a02000a658d1396b8
7
- data.tar.gz: 2f8605df7b70a74e029a07e3110c5adc36bc064c89ec7d48614167d7b32ad5b08bca7dc2f8e3dae20449caf2597ce354928cc46de194f20be4ec7403b8de78f2
6
+ metadata.gz: de68b1a4123792f429600089dc197d4df924922fd2f4a8fdfd17b664192394de7701bdb25bd7880d14d316291627b6454d224cdc0109c38489dd3d62c60d8f90
7
+ data.tar.gz: b17bb178acd595ed155b253d4d10e24785aa84fd0dcbb438fd978268ae2df5ceaecaf7ddbd27594d79f4d0443dee5f5f4139544761dd3842803359555c9b7aad
@@ -177,4 +177,4 @@ module Fastlane
177
177
 
178
178
  end
179
179
  end
180
- end
180
+ end
@@ -50,14 +50,14 @@ module Fastlane
50
50
  commit_hash = Helper.get_current_commit_hash
51
51
 
52
52
  message = <<~EOS
53
- ## Snapshot Test Result
54
- Commit Hash: #{commit_hash}
53
+ ## Snapshot Test Result
54
+ Commit Hash: #{commit_hash}
55
55
 
56
- #{summary_table(result[:new_items], result[:deleted_items], result[:changed_items], result[:passed_items])}
56
+ #{summary_table(result[:new_items], result[:deleted_items], result[:changed_items], result[:passed_items])}
57
57
 
58
- #{changed_items_table(result[:changed_items], bucket, commit_hash, params[:working_dir], params[:image_length])}
58
+ #{changed_items_table(result[:changed_items], bucket, commit_hash, params[:working_dir], params[:image_length])}
59
59
 
60
- #{new_items_table(result[:new_items], bucket, commit_hash, params[:working_dir], params[:image_length])}
60
+ #{new_items_table(result[:new_items], bucket, commit_hash, params[:working_dir], params[:image_length])}
61
61
 
62
62
  #{deleted_items_list(result[:deleted_items])}
63
63
  EOS
@@ -81,13 +81,13 @@ module Fastlane
81
81
 
82
82
  def self.summary_table(new_items, deleted_items, changed_items, passed_items)
83
83
  <<~EOS
84
- ### Summary
85
- | | Count |
86
- | --- | --- |
87
- | New Screenshots | #{new_items.size} |
88
- | Deleted Screenshots | #{deleted_items.size} |
89
- | Changed Screenshots | #{changed_items.size} |
90
- | Passed Screenshots | #{passed_items.size} |
84
+ ### Summary
85
+ | | Count |
86
+ | --- | --- |
87
+ | New Screenshots | #{new_items.size} |
88
+ | Deleted Screenshots | #{deleted_items.size} |
89
+ | Changed Screenshots | #{changed_items.size} |
90
+ | Passed Screenshots | #{passed_items.size} |
91
91
  EOS
92
92
  end
93
93
 
@@ -10,7 +10,7 @@ module Fastlane
10
10
  JSON.parse(res.body)
11
11
  .select { |comment| comment["body"] != nil && comment["body"].start_with?(comment_prefix) }
12
12
  .each { |comment|
13
- body = "<details><summary>#{summary}</summary>\n#{comment["body"]}\n\n</details>\n"
13
+ body = "<details><summary>#{summary}</summary>\n\n#{comment["body"]}\n\n</details>\n"
14
14
  patch_comment(github_owner, github_repository, comment["id"], body, github_api_token)
15
15
  }
16
16
  end
@@ -84,4 +84,4 @@ module Fastlane
84
84
  res
85
85
  end
86
86
  end
87
- end
87
+ end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module SnapshotTest
3
- VERSION = "0.2.7"
3
+ VERSION = "0.2.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-snapshot_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moyuru Aizawa