cocoapods-byte-panglem-beta 0.0.5 → 0.0.7

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: 8aa1be8bb86023e285512b86b90b95139338f2361cec0fbd43ad4148e5cd8340
4
- data.tar.gz: 0d6cf13cfb6530cee7dbe61d4b14db595cab8659c5ed3786adcf3c1db07334a4
3
+ metadata.gz: 1a6c5e75a80d0a83377d24e7bac384550441ec91d02856abe945c7527e3c7233
4
+ data.tar.gz: 726fc89778286a3fba77cabe9fa8c3151a6f82acdc9abbb9072141c308fe5856
5
5
  SHA512:
6
- metadata.gz: 99571044b39a588e4d0714cdc3f9c4c43189399b00afb92712c3f4d55a884058e8d824674f07645fcf352c55e8dddee99b71a049a7ced2a65874f2a83cfc6db4
7
- data.tar.gz: cc0dc9d7392e8ed8c568b5522d4527bc972909e325ad653ad58b4eb141485974034ae8c80dfc94f35ff544e33e1928795fd74ae8dd78234ecef84541e95e42d9
6
+ metadata.gz: 749b4cd58cb1ee252c28a758db798e1593f4fb734d79d7e2f36bf67fc73073866fee79a3d1f77e9d569973c80b567e049708c65f23f6c0fd6281656b1c529a92
7
+ data.tar.gz: e54778c794a191708f75c749e48d677ff53de82bb3dd85ffe1377f2f516cb03024cc4ea4dda463225613c9df65a9380dfcb74c1c333908b21db7dfc0c9f6fc28
@@ -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.7"
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"
@@ -51,7 +51,7 @@ module PM
51
51
  project.targets.map(&:build_configuration_list).map(&:build_configurations).each do |item|
52
52
  package_name_list << item[1].simple_attributes_hash['buildSettings']['PRODUCT_BUNDLE_IDENTIFIER']
53
53
  end
54
- package_name_list.uniq
54
+ package_name_list.uniq.compact
55
55
  else
56
56
  raise Informative, 'Could not automatically select an Xcode project. ' \
57
57
  "Specify one in your Podfile like so:\n\n" \
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.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - zhangtianhao.1230@bytedance.com