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 +4 -4
- data/lib/cocoapods-byte-panglem-beta/analyzer.rb +1 -2
- data/lib/cocoapods-byte-panglem-beta/gem_version.rb +1 -1
- data/lib/cocoapods-byte-panglem-beta/panglem.rb +14 -9
- data/lib/cocoapods-byte-panglem-beta/recorder.rb +7 -1
- data/lib/cocoapods-byte-panglem-beta/tool.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a6c5e75a80d0a83377d24e7bac384550441ec91d02856abe945c7527e3c7233
|
4
|
+
data.tar.gz: 726fc89778286a3fba77cabe9fa8c3151a6f82acdc9abbb9072141c308fe5856
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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}
|
@@ -23,15 +23,16 @@ module PMPlugin
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def PMPlugin.update()
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
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" \
|