pindo 5.0.8 → 5.0.9

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: bbd9ab9e245a2445159ada59a12a793d1540e92b7560ef32cb4296a2fc146b6d
4
- data.tar.gz: c10f9d424c8a111512689cf6e076984d71de81c71248ea113edef3ebb22261e3
3
+ metadata.gz: '08d012f8edb60e226490c213a446837bc36c852d531d5ac5de0a57b3ff5e525c'
4
+ data.tar.gz: 4d32c862affc436c18d9ff6cacdf00e332a868ca9fc07208d0c2ba29b1516ff1
5
5
  SHA512:
6
- metadata.gz: bd9326c3c907e9ea350b4a5efab1bb51303708aea1210e601951c5ad8ab8a17f453603e385723f584853c9abb52977c78582ebaa01238504ec8a246763dcd19b
7
- data.tar.gz: ae18025d46aaac286965ed1323e9070dd092a6dd6223e498be81f1c8141c8c0284e2d8465cb3e8258abd486cb61b95c9de9b1abeca12925bcedf96a6a132f3bb
6
+ metadata.gz: 8afdcda6e2f03492f285e44d140259b9c609470a5911eb8008c23788658bf076ee2eec5210afedf2b2e03faf717f3820132ccb883cc7d0b32b94ae9e0971f31c
7
+ data.tar.gz: 51a451ef991d341d6f4621cdd391ec9b4fd7267c1fa0bba045f35375252fccf8a6feb29474fa8fb49776762a5138026a8251ff3e6885e95bf67c839976ef013e
@@ -11,6 +11,7 @@ module Pindo
11
11
  class Autobuild < Ios
12
12
 
13
13
  include Appselect
14
+ include Pindo::Githelper
14
15
  # 命令的简要说明 - 打包iOS工程并发布到蒲公英
15
16
  self.summary = '打包iOS工程并发布到蒲公英'
16
17
 
@@ -150,7 +151,14 @@ module Pindo
150
151
  if !app_info_obj.nil? && !app_info_obj["appName"].nil? && !app_info_obj["appName"].empty?
151
152
  scheme_name = app_info_obj["appName"]
152
153
  end
153
-
154
+ if scheme_name.nil? || scheme_name.empty? && is_git_directory?(local_repo_dir:pindo_project_dir)
155
+ current_git_root_path = git_root_directory(local_repo_dir: pindo_project_dir)
156
+ git_repo_name = File.basename(current_git_root_path)
157
+ if !git_repo_name.nil? && !git_repo_name.empty?
158
+ scheme_name = git_repo_name
159
+ end
160
+ end
161
+
154
162
  Pindo::Command::Ios::Debug::modify_cert_with_project(project_dir:pindo_project_dir, config_file:config_json_file, scheme_name:scheme_name)
155
163
 
156
164
  if File.exist?(File.join(pindo_project_dir, "Podfile"))
@@ -6,7 +6,7 @@ module Pindo
6
6
  class Debug < Ios
7
7
 
8
8
  include Appselect
9
-
9
+ include Pindo::Githelper
10
10
  include XcodeCertHelper
11
11
  self.summary = '更新iOS证书并使用新证书设置Xcode工程'
12
12
  self.description = <<-DESC
data/lib/pindo/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Pindo
2
2
 
3
- VERSION = "5.0.8"
3
+ VERSION = "5.0.9"
4
4
 
5
5
  class VersionCheck
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pindo
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.8
4
+ version: 5.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - wade