pod_updater 0.4.5 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.idea/pod_updater.iml +2 -1
- data/.idea/workspace.xml +120 -19
- data/README.md +4 -0
- data/lib/pod_updater.rb +3 -2
- data/lib/pod_updater/pod_push.rb +8 -0
- data/lib/pod_updater/pod_updater_file.rb +73 -0
- data/lib/pod_updater/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c97a7ed45357f2201daf7addd9ec91d2d738d068
|
4
|
+
data.tar.gz: 2626cc46e2591249207ff7fe547f4a466b4a1e5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b306d8358eee7b7e5a38db5d98965d64a09616dd456a625cf00928d4804649411571df1fb34a4bfdb7b5f4c1415875de973d35512e1bcec5251edc72afd44780
|
7
|
+
data.tar.gz: bd186a90f1a04b3d7aeceb7a025723987584d2cfc4c6c481254b7b6f87ba356bbd7788f71a14d3dce85f99f1265362a119518cafedb69bffdd02cedf131d51b2
|
data/.gitignore
CHANGED
data/.idea/pod_updater.iml
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
19
19
|
</COVERAGE_PATTERN>
|
20
20
|
</EXTENSION>
|
21
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/pod_updater.rb" />
|
21
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/pod_updater/pod_updater_file.rb" />
|
22
22
|
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
23
23
|
<method />
|
24
24
|
</configuration>
|
@@ -30,5 +30,6 @@
|
|
30
30
|
<orderEntry type="sourceFolder" forTests="false" />
|
31
31
|
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.16.0, ruby-2.0.0-p648) [gem]" level="application" />
|
32
32
|
<orderEntry type="library" scope="PROVIDED" name="colorize (v0.8.1, ruby-2.0.0-p648) [gem]" level="application" />
|
33
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, ruby-2.0.0-p648) [gem]" level="application" />
|
33
34
|
</component>
|
34
35
|
</module>
|
data/.idea/workspace.xml
CHANGED
@@ -2,14 +2,8 @@
|
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
4
|
<list default="true" id="8b4c5081-a273-4936-8512-c65f7be04a48" name="Default" comment="">
|
5
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR
|
6
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR
|
7
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/pod_updater/git_tag_flow.rb" afterPath="$PROJECT_DIR$/lib/pod_updater/git_tag_flow.rb" />
|
8
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/pod_updater/modify_podspec.rb" afterPath="$PROJECT_DIR$/lib/pod_updater/modify_podspec.rb" />
|
9
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/pod_updater/pod_push.rb" afterPath="$PROJECT_DIR$/lib/pod_updater/pod_push.rb" />
|
10
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/pod_updater/ui.rb" afterPath="$PROJECT_DIR$/lib/pod_updater/ui.rb" />
|
11
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/pod_updater/version.rb" afterPath="$PROJECT_DIR$/lib/pod_updater/version.rb" />
|
12
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/pod_updater.gemspec" afterPath="$PROJECT_DIR$/pod_updater.gemspec" />
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/pod_updater.iml" afterPath="$PROJECT_DIR$/.idea/pod_updater.iml" />
|
6
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
13
7
|
</list>
|
14
8
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
15
9
|
<option name="TRACKING_ENABLED" value="true" />
|
@@ -19,7 +13,7 @@
|
|
19
13
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
20
14
|
</component>
|
21
15
|
<component name="CoverageDataManager">
|
22
|
-
<SUITE FILE_PATH="coverage/pod_updater@pod_updater.coverage" NAME="pod_updater Coverage Results" MODIFIED="
|
16
|
+
<SUITE FILE_PATH="coverage/pod_updater@pod_updater.coverage" NAME="pod_updater Coverage Results" MODIFIED="1518426780187" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/lib" MODULE_NAME="pod_updater" />
|
23
17
|
</component>
|
24
18
|
<component name="DatabaseView">
|
25
19
|
<option name="SHOW_INTERMEDIATE" value="true" />
|
@@ -76,11 +70,21 @@
|
|
76
70
|
</provider>
|
77
71
|
</entry>
|
78
72
|
</file>
|
79
|
-
<file leaf-file-name="pod_updater.rb" pinned="false" current-in-tab="
|
73
|
+
<file leaf-file-name="pod_updater.rb" pinned="false" current-in-tab="false">
|
80
74
|
<entry file="file://$PROJECT_DIR$/lib/pod_updater.rb">
|
81
75
|
<provider selected="true" editor-type-id="text-editor">
|
82
|
-
<state relative-caret-position="
|
83
|
-
<caret line="
|
76
|
+
<state relative-caret-position="285">
|
77
|
+
<caret line="15" column="0" lean-forward="true" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
|
78
|
+
<folding />
|
79
|
+
</state>
|
80
|
+
</provider>
|
81
|
+
</entry>
|
82
|
+
</file>
|
83
|
+
<file leaf-file-name="pod_updater_file.rb" pinned="false" current-in-tab="true">
|
84
|
+
<entry file="file://$PROJECT_DIR$/lib/pod_updater/pod_updater_file.rb">
|
85
|
+
<provider selected="true" editor-type-id="text-editor">
|
86
|
+
<state relative-caret-position="190">
|
87
|
+
<caret line="10" column="11" lean-forward="true" selection-start-line="10" selection-start-column="11" selection-end-line="10" selection-end-column="11" />
|
84
88
|
<folding />
|
85
89
|
</state>
|
86
90
|
</provider>
|
@@ -111,6 +115,13 @@
|
|
111
115
|
<component name="Git.Settings">
|
112
116
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
113
117
|
</component>
|
118
|
+
<component name="IdeDocumentHistory">
|
119
|
+
<option name="CHANGED_PATHS">
|
120
|
+
<list>
|
121
|
+
<option value="$PROJECT_DIR$/lib/pod_updater/pod_updater_file.rb" />
|
122
|
+
</list>
|
123
|
+
</option>
|
124
|
+
</component>
|
114
125
|
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
|
115
126
|
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
|
116
127
|
<component name="JsGulpfileManager">
|
@@ -138,8 +149,8 @@
|
|
138
149
|
<foldersAlwaysOnTop value="true" />
|
139
150
|
</navigator>
|
140
151
|
<panes>
|
141
|
-
<pane id="Scratches" />
|
142
152
|
<pane id="Scope" />
|
153
|
+
<pane id="Scratches" />
|
143
154
|
<pane id="ProjectPane">
|
144
155
|
<subPane>
|
145
156
|
<PATH>
|
@@ -166,6 +177,24 @@
|
|
166
177
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
167
178
|
</PATH_ELEMENT>
|
168
179
|
</PATH>
|
180
|
+
<PATH>
|
181
|
+
<PATH_ELEMENT>
|
182
|
+
<option name="myItemId" value="pod_updater" />
|
183
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
184
|
+
</PATH_ELEMENT>
|
185
|
+
<PATH_ELEMENT>
|
186
|
+
<option name="myItemId" value="pod_updater" />
|
187
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
188
|
+
</PATH_ELEMENT>
|
189
|
+
<PATH_ELEMENT>
|
190
|
+
<option name="myItemId" value="lib" />
|
191
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
192
|
+
</PATH_ELEMENT>
|
193
|
+
<PATH_ELEMENT>
|
194
|
+
<option name="myItemId" value="pod_updater" />
|
195
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
196
|
+
</PATH_ELEMENT>
|
197
|
+
</PATH>
|
169
198
|
</subPane>
|
170
199
|
</pane>
|
171
200
|
</panes>
|
@@ -202,7 +231,7 @@
|
|
202
231
|
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
203
232
|
</COVERAGE_PATTERN>
|
204
233
|
</EXTENSION>
|
205
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/pod_updater.rb" />
|
234
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/pod_updater/pod_updater_file.rb" />
|
206
235
|
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
207
236
|
<method />
|
208
237
|
</configuration>
|
@@ -334,6 +363,12 @@
|
|
334
363
|
<method />
|
335
364
|
</configuration>
|
336
365
|
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
366
|
+
<node-interpreter>project</node-interpreter>
|
367
|
+
<node-options />
|
368
|
+
<gulpfile />
|
369
|
+
<tasks />
|
370
|
+
<arguments />
|
371
|
+
<envs />
|
337
372
|
<method />
|
338
373
|
</configuration>
|
339
374
|
<configuration default="true" type="js.build_tools.npm" factoryName="npm">
|
@@ -365,11 +400,12 @@
|
|
365
400
|
<updated>1513599903377</updated>
|
366
401
|
<workItem from="1513599905300" duration="1426000" />
|
367
402
|
<workItem from="1513605012930" duration="88000" />
|
403
|
+
<workItem from="1518426595603" duration="269000" />
|
368
404
|
</task>
|
369
405
|
<servers />
|
370
406
|
</component>
|
371
407
|
<component name="TimeTrackingManager">
|
372
|
-
<option name="totallyTimeSpent" value="
|
408
|
+
<option name="totallyTimeSpent" value="1783000" />
|
373
409
|
</component>
|
374
410
|
<component name="TodoView">
|
375
411
|
<todo-panel id="selected-file">
|
@@ -382,8 +418,9 @@
|
|
382
418
|
</component>
|
383
419
|
<component name="ToolWindowManager">
|
384
420
|
<frame x="20" y="23" width="1260" height="688" extended-state="0" />
|
421
|
+
<editor active="true" />
|
385
422
|
<layout>
|
386
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.
|
423
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25496688" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
387
424
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
388
425
|
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
389
426
|
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
@@ -392,7 +429,7 @@
|
|
392
429
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
393
430
|
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
394
431
|
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
395
|
-
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.
|
432
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.0" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
396
433
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
397
434
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
398
435
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
@@ -413,6 +450,62 @@
|
|
413
450
|
<watches-manager />
|
414
451
|
</component>
|
415
452
|
<component name="editorHistoryManager">
|
453
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
454
|
+
<provider selected="true" editor-type-id="text-editor">
|
455
|
+
<state relative-caret-position="0">
|
456
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
457
|
+
<folding />
|
458
|
+
</state>
|
459
|
+
</provider>
|
460
|
+
</entry>
|
461
|
+
<entry file="file://$PROJECT_DIR$/pod_updater.gemspec">
|
462
|
+
<provider selected="true" editor-type-id="text-editor">
|
463
|
+
<state relative-caret-position="0">
|
464
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
465
|
+
<folding />
|
466
|
+
</state>
|
467
|
+
</provider>
|
468
|
+
</entry>
|
469
|
+
<entry file="file://$PROJECT_DIR$/lib/pod_updater/git_tag_flow.rb">
|
470
|
+
<provider selected="true" editor-type-id="text-editor">
|
471
|
+
<state relative-caret-position="0">
|
472
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
473
|
+
<folding />
|
474
|
+
</state>
|
475
|
+
</provider>
|
476
|
+
</entry>
|
477
|
+
<entry file="file://$PROJECT_DIR$/lib/pod_updater/modify_podspec.rb">
|
478
|
+
<provider selected="true" editor-type-id="text-editor">
|
479
|
+
<state relative-caret-position="247">
|
480
|
+
<caret line="13" column="0" lean-forward="false" selection-start-line="13" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
|
481
|
+
<folding />
|
482
|
+
</state>
|
483
|
+
</provider>
|
484
|
+
</entry>
|
485
|
+
<entry file="file://$PROJECT_DIR$/lib/pod_updater/version.rb">
|
486
|
+
<provider selected="true" editor-type-id="text-editor">
|
487
|
+
<state relative-caret-position="0">
|
488
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
489
|
+
<folding />
|
490
|
+
</state>
|
491
|
+
</provider>
|
492
|
+
</entry>
|
493
|
+
<entry file="file://$PROJECT_DIR$/lib/pod_updater/pod_push.rb">
|
494
|
+
<provider selected="true" editor-type-id="text-editor">
|
495
|
+
<state relative-caret-position="0">
|
496
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
497
|
+
<folding />
|
498
|
+
</state>
|
499
|
+
</provider>
|
500
|
+
</entry>
|
501
|
+
<entry file="file://$PROJECT_DIR$/lib/pod_updater.rb">
|
502
|
+
<provider selected="true" editor-type-id="text-editor">
|
503
|
+
<state relative-caret-position="285">
|
504
|
+
<caret line="15" column="0" lean-forward="false" selection-start-line="8" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
|
505
|
+
<folding />
|
506
|
+
</state>
|
507
|
+
</provider>
|
508
|
+
</entry>
|
416
509
|
<entry file="file://$PROJECT_DIR$/Gemfile">
|
417
510
|
<provider selected="true" editor-type-id="text-editor">
|
418
511
|
<state relative-caret-position="0">
|
@@ -511,8 +604,16 @@
|
|
511
604
|
</entry>
|
512
605
|
<entry file="file://$PROJECT_DIR$/lib/pod_updater.rb">
|
513
606
|
<provider selected="true" editor-type-id="text-editor">
|
514
|
-
<state relative-caret-position="
|
515
|
-
<caret line="
|
607
|
+
<state relative-caret-position="285">
|
608
|
+
<caret line="15" column="0" lean-forward="true" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
|
609
|
+
<folding />
|
610
|
+
</state>
|
611
|
+
</provider>
|
612
|
+
</entry>
|
613
|
+
<entry file="file://$PROJECT_DIR$/lib/pod_updater/pod_updater_file.rb">
|
614
|
+
<provider selected="true" editor-type-id="text-editor">
|
615
|
+
<state relative-caret-position="190">
|
616
|
+
<caret line="10" column="11" lean-forward="true" selection-start-line="10" selection-start-column="11" selection-end-line="10" selection-end-column="11" />
|
516
617
|
<folding />
|
517
618
|
</state>
|
518
619
|
</provider>
|
data/README.md
CHANGED
data/lib/pod_updater.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
lib = File.expand_path("../../lib", __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
3
|
|
4
4
|
require "pod_updater/version"
|
5
5
|
require "pod_updater/pod_push"
|
@@ -13,3 +13,4 @@ module PodUpdater
|
|
13
13
|
|
14
14
|
end
|
15
15
|
|
16
|
+
PodUpdater.run('4.3.3', nil)
|
data/lib/pod_updater/pod_push.rb
CHANGED
@@ -2,6 +2,7 @@ require 'pod_updater/git_tag_flow'
|
|
2
2
|
require 'pod_updater/modify_podspec'
|
3
3
|
require 'pod_updater/ui'
|
4
4
|
require 'pod_updater/cp_podspec'
|
5
|
+
require 'pod_updater/pod_updater_file'
|
5
6
|
|
6
7
|
module PodUpdater
|
7
8
|
|
@@ -23,6 +24,13 @@ module PodUpdater
|
|
23
24
|
copy_podspec(podFilePath, cp_path,version)
|
24
25
|
end
|
25
26
|
|
27
|
+
pod_updater_file = PodUpdaterFile.new(File.dirname(podFilePath))
|
28
|
+
if pod_updater_file.paths
|
29
|
+
pod_updater_file.paths.each_with_index do |elem, index|
|
30
|
+
copy_podspec(podFilePath,elem.to_s, version)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
26
34
|
git_tag_flow(path,msg,version)
|
27
35
|
|
28
36
|
cmd = []
|
@@ -0,0 +1,73 @@
|
|
1
|
+
require 'pod_updater/ui'
|
2
|
+
|
3
|
+
module PodUpdater
|
4
|
+
|
5
|
+
class PodUpdaterFile
|
6
|
+
attr_accessor :paths
|
7
|
+
|
8
|
+
def initialize(path)
|
9
|
+
_path = File.expand_path(path)
|
10
|
+
return nil unless File.exist?(_path)
|
11
|
+
|
12
|
+
pod_updater_path = PodUpdaterFile.find_podupdater_file_path(_path)
|
13
|
+
if pod_updater_path
|
14
|
+
self.paths = PodUpdaterFile.parser_podupdater_file(pod_updater_path)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.find_podupdater_file_path(path)
|
19
|
+
_path = File.expand_path(path)
|
20
|
+
return nil unless File.exist?(_path)
|
21
|
+
|
22
|
+
pod_updater_path = _path
|
23
|
+
unless _path =~ /\/podUpdater$/
|
24
|
+
if File.directory?(_path)
|
25
|
+
pod_updater_paths = Dir.glob("#{_path}/podUpdater")
|
26
|
+
if pod_updater_paths.length == 0
|
27
|
+
# UI.err "无法找到podUpdater文件"
|
28
|
+
pod_updater_path = nil
|
29
|
+
elsif pod_updater_paths.length == 1
|
30
|
+
pod_updater_path = pod_updater_paths.first
|
31
|
+
else
|
32
|
+
UI.msg "目录下找到多个podUpdater文件!"
|
33
|
+
pod_updater_paths.each_with_index do |elem, index|
|
34
|
+
basename = File.basename(elem)
|
35
|
+
UI.msg %(#{index}.#{basename} )
|
36
|
+
end
|
37
|
+
puts "请指定您当前需要的操作的文件,输入它的序号:"
|
38
|
+
i = gets.to_i
|
39
|
+
case i
|
40
|
+
when 0 .. (podfiles.length-1)
|
41
|
+
pod_updater_path = podfiles[i.to_i]
|
42
|
+
else
|
43
|
+
UI.err "输入错误❌"
|
44
|
+
pod_updater_path = nil
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
pod_updater_path
|
51
|
+
end
|
52
|
+
|
53
|
+
def self.parser_podupdater_file(filePath)
|
54
|
+
if !filePath || !(filePath =~ /\/podUpdater$/)
|
55
|
+
return nil
|
56
|
+
end
|
57
|
+
|
58
|
+
paths = []
|
59
|
+
File.open(filePath, "r") do |f|
|
60
|
+
f.each_line do |line|
|
61
|
+
if line.to_s =~ /["']path["']\s*,\s*["'](.*)["']/
|
62
|
+
paths << $1.to_s
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
paths
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
71
|
+
|
72
|
+
|
73
|
+
end
|
data/lib/pod_updater/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pod_updater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hwzss
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -87,6 +87,7 @@ files:
|
|
87
87
|
- lib/pod_updater/git_tag_flow.rb
|
88
88
|
- lib/pod_updater/modify_podspec.rb
|
89
89
|
- lib/pod_updater/pod_push.rb
|
90
|
+
- lib/pod_updater/pod_updater_file.rb
|
90
91
|
- lib/pod_updater/ui.rb
|
91
92
|
- lib/pod_updater/version.rb
|
92
93
|
- pod_updater.gemspec
|