pindo 4.7.2 → 4.7.4

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: 45f5abed812ba1c0068fad2e583c9b4195ceaf65f7535a3b878b68c1e842c8f6
4
- data.tar.gz: b4ecb804c33881b62ec284c560d69d39cddd9632cc6f274ae1125a1d647f24a2
3
+ metadata.gz: df037923380f2b620207356880503d0999f322ff1567b91f851cab7e16a5c3d5
4
+ data.tar.gz: cfe5b3f9a2968750ed4e78bf0d3127a74bbd20c53a703ae74606394fc0433ab2
5
5
  SHA512:
6
- metadata.gz: 7395a2bb7ebda1d191e6122ad27d51cd546a1954d6fc8c392fd738815d5f9f940d9575f46ef26dbd6e0c9188dcf8154f5d89a57cdf920f1890a067c6993dc294
7
- data.tar.gz: a4fc02fa9c1f567c4e37e9ad9fba752cfb95efaa1ecee8ca1f5e54307804f61ff94df1ba514199ce1ddb3b4f4fcbebe91b050b66fc4b1ce333a39e0600c01046
6
+ metadata.gz: 4f05b640b14b6f4d7de61e8b359b0350a15b5b48dd63f39ef71e6f8287d62f8350eaac767b5935241af9b8df8d9b2482329b33f31cca4b9911c96114b9f27528
7
+ data.tar.gz: d2fe50e1eb3cd860248c05e746d307e9a8ca554225f9134788fa7ab3aed3b4f2470a7610bf3048c5f82ff5e2a4930d046cb6ca4888f1b34fcccaf5fcd8b3c0f6
@@ -150,11 +150,11 @@ module Pindo
150
150
  def set_progress(index_num, total_num, char ='>' )
151
151
  progress_str = sprintf("%.2f", 100.0 * index_num / total_num )
152
152
  total_size = sprintf("%.2f", 1.00 * total_num / 1024 /1024 )
153
- index = 100.0 * index_num / total_num
153
+ index = 40.0 * index_num / total_num
154
154
 
155
155
  # (char * (index/1).floor).ljust(100, ' ')
156
156
 
157
- upload_message = "已上传:#{progress_str}\%【" + (char * (index/1).floor).ljust(100, '_') + "】Total: #{total_size} M"
157
+ upload_message = "已上传:#{progress_str}\%【" + (char * (index/1).floor).ljust(40.0, '_') + "】Total: #{total_size} M"
158
158
  @upload_message = upload_message
159
159
  Funlog.instance.fancyinfo_update(upload_message)
160
160
  # @spinner.reset
@@ -548,9 +548,8 @@ module Pindo
548
548
  end
549
549
 
550
550
  new_iap_items["in_app_purchase_type"] = in_app_purchase_type
551
- new_iap_items["available_in_all_territories"] = true
552
551
  new_iap_items["price"] = purchase_item["price"].to_s.strip
553
- new_iap_items["price_tier"] = iap_consumable_tier_dict[new_iap_items["price"]]
552
+ new_iap_items["price_tier"] = iap_consumable_tier_dict[new_iap_items["price"].to_s]
554
553
 
555
554
  if new_iap_items["price_tier"].nil?
556
555
  raise "购买项价格错误 " + new_iap_items["product_id"] + " 价格 :" + purchase_item["price"]
@@ -569,7 +568,7 @@ module Pindo
569
568
  new_iap_items["localization"]["en-US"]["description"] = purchase_item["description"].to_s.strip
570
569
  if !new_iap_items["localization"]["en-US"]["description"].nil? && new_iap_items["localization"]["en-US"]["description"].length > 45
571
570
  puts temp_product_id
572
- raise Informative, "description 超出限定的45个字符 !!!"
571
+ raise Informative, "purchuse description 超出限定的45个字符 !!!"
573
572
  end
574
573
 
575
574
  new_iap_items["review_note"] = "username: " + iap_tester["email"] + " password: " + iap_tester["password"]
@@ -651,7 +650,6 @@ module Pindo
651
650
  raise Informative, "product_id 超出限定的100个字符 !!!"
652
651
  end
653
652
 
654
- new_subs_item["available_in_all_territories"] = true
655
653
  new_subs_item["family_sharable"] = false
656
654
  new_subs_item["price"] = subs_item["price"].to_s.strip
657
655
  new_subs_item["subscription_duration"] = subscription_duration_dict[subs_item["subscription_duration"]]
@@ -92,9 +92,9 @@ module Pindo
92
92
  temp_version = @config_json["app_info"]["app_version"]
93
93
  end
94
94
 
95
- if @com_name.nil? && @config_json.nil? && @config_json["account_info"] && @config_json["app_info"]["acount_company_name"]
95
+ if (@com_name.nil? || @com_name.empty?) && !@config_json.nil? && !@config_json["account_info"].nil? && !@config_json["account_info"]["acount_company_name"].nil?
96
96
  @com_name = @config_json["account_info"]["acount_company_name"].strip
97
- end
97
+ end
98
98
 
99
99
  app = nil
100
100
  if !temp_bundle_id.nil?
@@ -92,12 +92,12 @@ module Pindo
92
92
 
93
93
  Pindo::Command::Deploy::Pullconfig::run(args_temp)
94
94
 
95
- proj_name = nil
96
- if @args_upload_flag || @args_send_flag
95
+ app_info_obj = nil
96
+ if @args_upload_flag
97
97
  proj_name = @args_proj_name
98
- proj_name = PgyerHelper.share_instace.prepare_upload(working_directory:Dir.pwd, proj_name:proj_name)
98
+ app_info_obj = PgyerHelper.share_instace.prepare_upload(working_directory:Dir.pwd, proj_name:proj_name)
99
99
  end
100
-
100
+
101
101
  args_temp = []
102
102
  if @args_adhoc_flag
103
103
  args_temp << "--adhoc"
@@ -91,8 +91,8 @@ module Pindo
91
91
 
92
92
  progress_str = sprintf("%.2f", 100.0 * index_num / total_num )
93
93
  total_size = sprintf("%.2f", 1.00 * total_num / 1024 /1024 )
94
- index = 100.0 * index_num / total_num
95
- download_message = "已下载:#{progress_str}\%【" + (char_in * (index/1).floor).ljust(100, char_out) + "】Total: #{total_size} M"
94
+ index = 40.0 * index_num / total_num
95
+ download_message = "已下载:#{progress_str}\%【" + (char_in * (index/1).floor).ljust(40.0, char_out) + "】Total: #{total_size} M"
96
96
  Funlog.instance.fancyinfo_update(download_message)
97
97
 
98
98
  }) do |file|