Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version listening idea #3

Closed
thecb4 opened this issue Feb 18, 2019 · 6 comments
Closed

Version listening idea #3

thecb4 opened this issue Feb 18, 2019 · 6 comments

Comments

@thecb4
Copy link

thecb4 commented Feb 18, 2019

Not sire if there is value here, but I've created a SemanticVersion framework that is focused on listening for changes and then updating the various places where you may have used the Semantic Version. The intent is for libraries where you have to list our your version in multiple places but only want to update it once.

https://gitlab.com/thecb4/SemVerSwift

Thoughts?

@mxcl
Copy link
Owner

mxcl commented Feb 18, 2019

I don’t really understand the usage. But either way, this library is a value type only and will not go beyond that. Thanks though.

@mxcl mxcl closed this as completed Feb 20, 2019
@mxcl
Copy link
Owner

mxcl commented Feb 20, 2019

Would like to understand the usage you are talking about better though.

@thecb4
Copy link
Author

thecb4 commented Feb 20, 2019

The use case is that I have various locations where I update the version of a piece of SW. ChangeLog, README, etc. I would a central place to update the version of a piece of SW and then as that version is updated, any subsequent files are updated as well.

example: SomeLibraryKit (supports, Carthage, Cocoa Pods, Swift Package Manager)
step: update version.yml file
step: automatically update CHANGELOG.md
step: automatically update podspec
step: automatically update README.md

each automatic update step represents a listener that does a regex for the Version and substitutes in the latest info.

1 similar comment
@thecb4
Copy link
Author

thecb4 commented Feb 20, 2019

The use case is that I have various locations where I update the version of a piece of SW. ChangeLog, README, etc. I would a central place to update the version of a piece of SW and then as that version is updated, any subsequent files are updated as well.

example: SomeLibraryKit (supports, Carthage, Cocoa Pods, Swift Package Manager)
step: update version.yml file
step: automatically update CHANGELOG.md
step: automatically update podspec
step: automatically update README.md

each automatic update step represents a listener that does a regex for the Version and substitutes in the latest info.

@mxcl
Copy link
Owner

mxcl commented Feb 20, 2019

K I see, yeah this is outside the scope of this library. Though your thing would be a useful tool for continuous delivery IMO.

@thecb4
Copy link
Author

thecb4 commented Feb 20, 2019

Yes. That is my intent. I've been trying to find ways to automate a lot of those tasks using Swift just to see what's possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants