billymeltdown / nsdate-helper

A category to extend Cocoa's NSDate class with some convenience functions.
http://www.zetetic.net/blog/
456 stars 107 forks source link

Please add semantic version tags #8

Closed jk closed 10 years ago

jk commented 12 years ago

I’ve recently added NSDate+Helper to the CocoaPods package manager repo.

CocoaPods is a tool for managing dependencies for OSX and iOS Xcode projects and provides a central repository for iOS/OSX libraries. This makes adding libraries to a project and updating them extremely easy and it will help users to resolve dependencies of the libraries they use.

However, NSDate+Helper doesn't have any version tags. I’ve added the current HEAD as version 0.0.1, but a version tag will make dependency resolution much easier.

Semantic version tags (instead of plain commit hashes/revisions) allow for resolution of cross-dependencies.

In case you didn’t know this yet; you can tag the current HEAD as, for instance, version 1.0.0, like so:

$ git tag -a 1.0.0 -m "Tag release 1.0.0"
$ git push --tags
billymeltdown commented 10 years ago

Sorry that I never replied to this, for some reason I wasn't getting notifications of Issues, and thanks for the tip and adding this to CocoaPods! I've just updated the master branch with some important performance fixes, so it might be time to update the version (tag) number. If I do so now will it mess anything up WRT CocoaPods?

jk commented 10 years ago

Nope it will not mess up anything. I added a 0.0.1 - all version numbers below 1.0.0 are subject to change and don't have the strict constrains. If you add a semantic version number, a new podfile can be created referencing that version tag. So please tag your latest release.

billymeltdown commented 10 years ago

Alrighty, tag 1.0.0 pushed!

jk commented 10 years ago

Thanks, I'll merge it.

Reference: https://github.com/CocoaPods/Specs/pull/9847