fastlane-plugin-maestro 0.0.2 → 0.0.3

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: 061b045598d739bc45bc8933947f7344679b237ef1a0349aa015ebec8e837763
4
- data.tar.gz: eede20f77a8fabd4100127b154906fba759de7b5baa2a8f1ed16d085a6dbedd7
3
+ metadata.gz: 4ddf938129d4e0385bc14555c532053b5e736a27fc2082da740ea727a1313d3f
4
+ data.tar.gz: a05a596cad7786aa095f7464dfe820300e72a74df3e75b187376cb7e4009bbef
5
5
  SHA512:
6
- metadata.gz: 6f79fa1dd6e66918ab0d565809a4b5b7acd126594553ae5b4bbc1749213212c9ab09b429fc30ec77aa39d969cd9a64e63806b9a1f6a18f2ca2c2dad3c0037ffc
7
- data.tar.gz: a03b081c04989ddbba1568bc6e71a71b2085e0d82f70cc5fb0735268cfb0ce8597b293ff2f6e2aa02158f3facb0f557f5ee6f1a34bace4f71aca5c8cc2bd5b63
6
+ metadata.gz: 272b6143ae66f487269004a2cdf2441bbd7c9a40490210e93cc48840f193a08523c0eaad987bff9714930ec4528e0036489e47933c416a59d05a047e2848880d
7
+ data.tar.gz: 2d4c37eea7e99f172f50f0b49c63d4d487133721c6ab3b8e9d11389751b3c7fc4a6561971ef2c94ae3cbc0055e39124ec13e4c78cf33631e12f2852ff5b97259
data/README.md CHANGED
@@ -38,7 +38,7 @@ Run all flows defined in the folder .maestro/screenshot
38
38
  ```ruby
39
39
  maestro(
40
40
  command: 'test',
41
- directory: '.maestro/screenshot',
41
+ tests: '.maestro/screenshot',
42
42
  report_type: 'junit'
43
43
  )
44
44
  ```
@@ -99,7 +99,12 @@ module Fastlane
99
99
  verify_block: proc do |value|
100
100
  v = File.expand_path(value.to_s)
101
101
  UI.user_error!("No file or directory found with path '#{v}'") unless File.exist?(v)
102
- end)
102
+ end),
103
+ FastlaneCore::ConfigItem.new(key: :env_vars,
104
+ env_name: 'FL_MAESTRO_ENV_VARIABLES',
105
+ description: 'Allows to pass variables that the flow(s) might be using',
106
+ optional: true,
107
+ type: Hash)
103
108
  ]
104
109
  end
105
110
 
@@ -25,6 +25,11 @@ module Fastlane
25
25
  # Make sure that the output folder is available
26
26
  FileUtils.mkdir_p(File.dirname(options[:output]))
27
27
  end
28
+ unless options[:env_vars].empty? || options[:env_vars].nil?
29
+ options[:env_vars].each do |key, value|
30
+ command.push("-e", "#{key}=#{value}")
31
+ end
32
+ end
28
33
 
29
34
  command.push("#{options[:tests]}")
30
35
  command_string = command.join(" ")
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Maestro
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-maestro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Bormeth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-14 00:00:00.000000000 Z
11
+ date: 2023-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry