@@ -40,33 +40,3 @@ task :test, [:os] do |t, args|
40
40
sh xcodebuild ( scheme : "Example" , version : args [ :os ] , action : "clean test" )
41
41
exit $?. exitstatus if not $?. success?
42
42
end
43
-
44
-
45
- desc "Bump versions"
46
- task :bump , [ :version ] do |t , args |
47
- version = args [ :version ]
48
- unless version
49
- puts %(Usage: rake "bump[version]")
50
- next
51
- end
52
-
53
- FileUtils . mv "ICInputAccessory.xcodeproj" , "ICInputAccessory.tmp"
54
- sh %(xcrun agvtool new-marketing-version #{ version } )
55
- FileUtils . mv "ICInputAccessory.tmp" , "ICInputAccessory.xcodeproj"
56
-
57
- FileUtils . mv "Example.xcodeproj" , "Example.tmp"
58
- sh %(xcrun agvtool new-marketing-version #{ version } )
59
- FileUtils . mv "Example.tmp" , "Example.xcodeproj"
60
-
61
- podspec = "ICInputAccessory.podspec"
62
- text = File . read podspec
63
- File . write podspec , text . gsub ( %r(\" \d +\. \d +\. \d +\" ) , "\" #{ version } \" " )
64
- puts "Updated #{ podspec } to #{ version } "
65
-
66
- jazzy = ".jazzy.yml"
67
- text = File . read jazzy
68
- File . write jazzy , text . gsub ( %r(:\s \d +\. \d +\. \d +) , ": #{ version } " )
69
- puts "Updated #{ jazzy } to #{ version } "
70
-
71
- sh %(bundle exec pod install)
72
- end
0 commit comments