cocoapods-byte-panglem-beta 0.0.5 → 0.0.6

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: 8aa1be8bb86023e285512b86b90b95139338f2361cec0fbd43ad4148e5cd8340
4
- data.tar.gz: 0d6cf13cfb6530cee7dbe61d4b14db595cab8659c5ed3786adcf3c1db07334a4
3
+ metadata.gz: e4bd2a2219eead13c16643aa40588e2e1d05559ca9189095f44e430e2e4846f6
4
+ data.tar.gz: cb781a1445e60a47c7425284693b2fc8ca16aec419f97237a92625efc91547e9
5
5
  SHA512:
6
- metadata.gz: 99571044b39a588e4d0714cdc3f9c4c43189399b00afb92712c3f4d55a884058e8d824674f07645fcf352c55e8dddee99b71a049a7ced2a65874f2a83cfc6db4
7
- data.tar.gz: cc0dc9d7392e8ed8c568b5522d4527bc972909e325ad653ad58b4eb141485974034ae8c80dfc94f35ff544e33e1928795fd74ae8dd78234ecef84541e95e42d9
6
+ metadata.gz: 2a118c8a514f25595d2ea76219abd483d4a99122c040e4d66972c26b456d0f955046e242f68f8dbab72c34d3ccb1dc65275cac69501b84e64213888c303214ac
7
+ data.tar.gz: 7c9b8c8f356b4d336bad3694e68ffbb03346f46a71083116218b6bdcf432ec78702a48494061faadf41d14a208f9b5f1557d801840d544e2b1d28ae8df59f5f2
@@ -130,7 +130,6 @@ module PM
130
130
  }
131
131
 
132
132
  if result.is_rely_update
133
-
134
133
  specs.delete_if{|spec|
135
134
  Pod::Specification.root_name(spec.spec.name) == result.rely_name && spec.spec.version.version == result.rely_original_version
136
135
  }
@@ -140,7 +139,7 @@ module PM
140
139
  end
141
140
  specs.sort_by!{|spec| spec.spec.name}
142
141
  is_update_finish = true
143
- # request_track result.sdk_original_version, result.sdk_target_version, result.sdk_target_version, response_data["code"], response_data["message"]
142
+ request_track result.sdk_original_version, result.sdk_target_version, result.sdk_target_version, response_data["code"], response_data["message"]
144
143
 
145
144
  else
146
145
  wish_info = {"no_auto_update"=>true,"timestamp" =>Time.now.to_i}
@@ -2,7 +2,7 @@
2
2
  ##SPDX-License-Identifier: MIT
3
3
 
4
4
  module CocoapodsBytePanglem
5
- VERSION = "0.0.5"
5
+ VERSION = "0.0.6"
6
6
  class Version
7
7
  def self.version
8
8
  VERSION
@@ -23,15 +23,16 @@ module PMPlugin
23
23
  end
24
24
 
25
25
  def PMPlugin.update()
26
- # puts "[cocoapods-byte-panglem][debug]checking for updates..."
27
- command = 'gem install cocoapods-byte-panglem-beta'
28
- stdout, stderr, status = Open3.capture3(command)
29
-
30
- if status.success?
31
- # puts "[cocoapods-byte-panglem][debug] update sucess"
32
- else
33
- # puts "[cocoapods-byte-panglem][debug] update fail message:#{stderr}"
26
+ if PM::Recorder.instance.is_auto_update
27
+ puts "[cocoapods-byte-panglem-beta]checking for updates..."
28
+ command = 'gem install cocoapods-byte-panglem-beta'
29
+ stdout, stderr, status = Open3.capture3(command)
30
+
31
+ if status.success?
32
+ puts "[cocoapods-byte-panglem-beta]update sucess"
33
+ end
34
34
  end
35
+
35
36
  end
36
37
 
37
38
  end
@@ -156,7 +157,11 @@ module Pod
156
157
  PM::Recorder.instance.set_plugin_load true
157
158
  case options
158
159
  when Hash
159
- PM::Recorder.instance.set_is_debug options[:is_debug]
160
+ PM::Recorder.instance.set_is_debug options[:is_debug] if options.has_key?(:is_debug)
161
+ PM::Recorder.instance.set_is_auto_update options[:is_auto_update]if options.has_key?(:is_auto_update)
162
+ m = PM::Recorder.instance.is_debug
163
+ n = PM::Recorder.instance.is_auto_update
164
+ c = 1
160
165
  end
161
166
 
162
167
  PMPlugin.update
@@ -314,11 +314,14 @@ module PM
314
314
  attr_reader :plugin_version
315
315
  attr_reader :lockfile_data
316
316
  attr_reader :is_debug
317
+ attr_reader :is_auto_update
318
+
317
319
 
318
320
 
319
321
  def initialize()
320
322
  @adapter_list = []
321
323
  @is_debug = false
324
+ @is_auto_update = false
322
325
  end
323
326
 
324
327
  def set_plugin_load(is_load)
@@ -330,6 +333,10 @@ module PM
330
333
  @is_debug = is_debug
331
334
  end
332
335
 
336
+ def set_is_auto_update(is_auto_update)
337
+ @is_auto_update = is_auto_update
338
+ end
339
+
333
340
  def add_global_note(note)
334
341
  @global_note = note
335
342
  end
@@ -454,7 +461,6 @@ module PM
454
461
  result.sdk_target_version = target_sdk_root_spec.version.version
455
462
  PM::Recorder.instance.sdk_original_version = result.sdk_original_version
456
463
  PM::Recorder.instance.sdk_target_version = result.sdk_target_version
457
- ss_temp = original_sdk_spec.spec
458
464
  target_rely_version = target_sdk_root_spec.get_rely_version
459
465
  original_rely_version = original_sdk_spec.spec.get_rely_version
460
466
  # target_rely_version = "0.2.0.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-byte-panglem-beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - zhangtianhao.1230@bytedance.com