File tree Expand file tree Collapse file tree 1 file changed +8
-23
lines changed
Expand file tree Collapse file tree 1 file changed +8
-23
lines changed Original file line number Diff line number Diff line change @@ -54,30 +54,11 @@ begin
5454 # Post release
5555 #-----------------------------------------------------------------------------#
5656
57- desc 'Updates the last know version of CocoaPods in the specs repo'
57+ desc 'Updates the last known version of CocoaPods in the specs repo'
5858 task :post_release do
59- title 'Updating last known version in Specs repo'
60- specs_branch = 'master'
61- Dir . chdir ( '../Specs' ) do
62- puts Dir . pwd
63- sh "git checkout #{ specs_branch } "
64- sh 'git pull'
65-
66- yaml_file = 'CocoaPods-version.yml'
67- unless File . exist? ( yaml_file )
68- $stderr. puts red ( "[!] Unable to find #{ yaml_file } !" )
69- exit 1
70- end
71- require 'yaml'
72- cocoapods_version = YAML . load_file ( yaml_file )
73- cocoapods_version [ 'last' ] = gem_version
74- File . open ( yaml_file , 'w' ) do |f |
75- f . write ( cocoapods_version . to_yaml )
76- end
77-
78- sh "git commit #{ yaml_file } -m 'CocoaPods release #{ gem_version } '"
79- sh 'git push'
80- end
59+ puts yellow ( "\n [!] The `post_release` task of CocoaPods no longer updates the master specs repo last known version. " \
60+ 'This is because of how slow it has become which can break the release process. ' \
61+ "Please use the GitHub UI to update it to the #{ gem_version } version.\n " )
8162 end
8263
8364 # Spec
402383def red ( string )
403384 "\033 [0;31m#{ string } \e [0m"
404385end
386+
387+ def yellow ( string )
388+ "\033 [0;33m#{ string } \e [0m"
389+ end
You can’t perform that action at this time.
0 commit comments