fastlane-plugin-maestro 0.0.1 → 0.0.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: 37f335eafb373f14938384183d72cb7163b04af56c657b6ba278476fb2f34a68
4
- data.tar.gz: 6215b246874984611ee549ea6f5b5cf0dd77a36b81aae67f0f9d7f48aaac3e8a
3
+ metadata.gz: 061b045598d739bc45bc8933947f7344679b237ef1a0349aa015ebec8e837763
4
+ data.tar.gz: eede20f77a8fabd4100127b154906fba759de7b5baa2a8f1ed16d085a6dbedd7
5
5
  SHA512:
6
- metadata.gz: f0ca71d04d9781a0534088d3ece247467d3730e93ba6dffbf975a0f05860936053a22c5901a2e29172c1ebba6b39fd5109a82ec82434f56ceae64b9e63aa33ce
7
- data.tar.gz: 5b1c7b72c864462d8240be53e306386ef2767aa4712a3786644ab0b589bb339a62a0b48f71369abfa2a97efbd23ad282a6303cb9b0235f2b862371f6fd99a4fe
6
+ metadata.gz: 6f79fa1dd6e66918ab0d565809a4b5b7acd126594553ae5b4bbc1749213212c9ab09b429fc30ec77aa39d969cd9a64e63806b9a1f6a18f2ca2c2dad3c0037ffc
7
+ data.tar.gz: a03b081c04989ddbba1568bc6e71a71b2085e0d82f70cc5fb0735268cfb0ce8597b293ff2f6e2aa02158f3facb0f557f5ee6f1a34bace4f71aca5c8cc2bd5b63
@@ -27,7 +27,8 @@ module Fastlane
27
27
 
28
28
  def self.check_ios_dependencies!
29
29
  UI.message("Making sure you installed the dependencies to run Maestro…")
30
- return if `find #{ENV["HOMEBREW_REPOSITORY"]} -iname "idb_companion"`.include?('idb_companion')
30
+
31
+ return if Maestro::Runner.command?("idb_companion")
31
32
 
32
33
  UI.error("You have to install idb companion to use `maestro` with iOS simulators")
33
34
  UI.error("")
@@ -37,7 +38,7 @@ module Fastlane
37
38
 
38
39
  UI.error("If you don't have homebrew, visit https://github.com/facebook/idb")
39
40
 
40
- UI.user_error!("Pleas install idb companion and start your lane again.")
41
+ UI.user_error!("Please install idb companion and start your lane again.")
41
42
  end
42
43
 
43
44
  def self.description
@@ -29,8 +29,10 @@ module Fastlane
29
29
  command.push("#{options[:tests]}")
30
30
  command_string = command.join(" ")
31
31
  UI.message("Running command: #{command_string}")
32
- # TODO: set exception based on parameter `failRun`
33
- system(command_string, out: $stdout, err: :out, exception: true)
32
+ Dir.chdir(ENV["PWD"]) do
33
+ # TODO: set exception based on parameter `failRun`
34
+ system(command_string, out: $stdout, err: :out, exception: true)
35
+ end
34
36
  end
35
37
 
36
38
  def self.install
@@ -39,7 +41,14 @@ module Fastlane
39
41
 
40
42
  def self.download_samples
41
43
  maestro_path = ENV["HOME"] + "/.maestro/bin/maestro"
42
- system("#{maestro_path} download-samples", out: $stdout, err: :out, exception: true)
44
+ Dir.chdir(ENV["PWD"]) do
45
+ system("#{maestro_path} download-samples", out: $stdout, err: :out, exception: true)
46
+ end
47
+ end
48
+
49
+ def self.command?(name)
50
+ `which #{name}`
51
+ $?.success?
43
52
  end
44
53
  end
45
54
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Maestro
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
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.1
4
+ version: 0.0.2
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-02-27 00:00:00.000000000 Z
11
+ date: 2023-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry