fastlane-plugin-copy_screenshots 1.0.0 → 1.0.1

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: 2584b04357f32d1dfb440fe598d14f8990b411a804b573a54426a4713ae8fc9e
4
- data.tar.gz: 22f5cd1e164c0f774d86ff788496c50f30cc68c9f095b1c1a4c09c164bab8f9c
3
+ metadata.gz: 9efc836700acf870a3ddd5ba970bcc45c3d22b3b1c932c22ad77da8ce3e0b7b4
4
+ data.tar.gz: 27a2962ad72aceb95b934db3b05c0f93c0320b98ec4b8afe4b6ee80827f9ba00
5
5
  SHA512:
6
- metadata.gz: 4854bc57d3ba163a4f3910f4b3606ac16114d2b129f0a18fca56b653271196e56fc28dfcc93afa118d3da07e408fb4f750c170c8bfb6258b09da211b55336c1c
7
- data.tar.gz: 3ed8c79c6aeed8723ba4b79ee500a8625d874fae245b8840f90793b7016f2a71e6fcaf841237cd555468892a2f6f9d1f6770e6c51a4d54c841f547110572c777
6
+ metadata.gz: 4e5c162027864aeff6f036f2538047e1e509fff43ea71f85db34f7e2abc698e895771e76cc237b9de155d89b32312cc446ccd6afb9ac07b665389aca01f37b8f
7
+ data.tar.gz: 5f23fca38a5b5ff92d3bd852681781404798a770d547c4e7d0f5ec5b4fe5043dd2cb74fc4d0f714fd1cebd87fc5533d45a829502d5d660c0858eb33db84c2fbd
@@ -9,6 +9,10 @@ module Fastlane
9
9
  target_device_name = params[:target_device_name]
10
10
  screenshots_dir_path = Actions.lane_context[SharedValues::SNAPSHOT_SCREENSHOTS_PATH]
11
11
 
12
+ if screenshots_dir_path.nil?
13
+ raise "Pre Action Required. This action should be executed after `capture_ios_screenshots` action."
14
+ end
15
+
12
16
  # glob iterates files which matched to the given predicate.
13
17
  Dir.glob("#{screenshots_dir_path}/**/#{source_device_name}*.png") do |f|
14
18
  # gsub replaces and returns matched strings.
@@ -26,7 +30,7 @@ module Fastlane
26
30
  #####################################################
27
31
 
28
32
  def self.description
29
- "Copy screenshots with a specified device name."
33
+ "Copy screenshots with a specified device name. This action should be executed after `capture_ios_screenshots` action."
30
34
  end
31
35
 
32
36
  def self.details
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module CopyScreenshots
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-copy_screenshots
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - yosshi4486