pindo 4.7.2 → 4.7.3

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: c21050abb1c90a03a0692aac01e408ff0bbce3968b89677358bec75c1e903c7e
4
+ data.tar.gz: '0235831d8df25e4c7227a4980339a858aa8d271f72480ac6f9afc727d1898cae'
5
5
  SHA512:
6
- metadata.gz: 7395a2bb7ebda1d191e6122ad27d51cd546a1954d6fc8c392fd738815d5f9f940d9575f46ef26dbd6e0c9188dcf8154f5d89a57cdf920f1890a067c6993dc294
7
- data.tar.gz: a4fc02fa9c1f567c4e37e9ad9fba752cfb95efaa1ecee8ca1f5e54307804f61ff94df1ba514199ce1ddb3b4f4fcbebe91b050b66fc4b1ce333a39e0600c01046
6
+ metadata.gz: 3b2b2a2a3e7efdcfe0882510269d7bb8b10ab49a571c15f01f5a6538f64a909fd90b91d246d100b1f9883462adec0f25ae0fda3f5c8640cba235009bd94bbbe0
7
+ data.tar.gz: 2fa34d8dd3cc0f7c4d0ab76354b63a5bde85307990f33cb08fa7a8fc7654a0eff88b7a2faf882325ba61431ee6b211e3fccdffcca062fe9556b2344300e1fc87
@@ -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,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|