This script compares and sorts pod versions using the cocoapods-core
package, it may be used to test the precedence of the Semantic Versioning in CocoaPods.
- Run
bundle install
if the CocoaPods is not globally installed on your system - Edit
sort.rb
, fill versions being sorted - Run
./sort.rb
to see the sorted result
versions: 1.2.0 1.2.0-alpha 1.2.0-1 1.2.0.100 1.2.0-100 1.2.1 1.2.0-RC 1.2.0.1 1.2.0-beta 1.2.0-beta.1
sorted versions: 1.2.0-RC < 1.2.0-alpha < 1.2.0-beta < 1.2.0-beta.1 < 1.2.0 < 1.2.0-1 < 1.2.0.1 < 1.2.0-100 < 1.2.0.100 < 1.2.1